• 配置选项 auto = ignore | add | route | start

英文文档:
https://wiki.strongswan.org/projects/strongswan/wiki/ConnSection

auto = ignore | add | route | start

what operation, if any, should be done automatically at IPsec startup.

auto=add loads a connection without starting it.
auto=route loads a connection and installs kernel traps. If traffic is detected between leftsubnet and rightsubnet, a connection is established.
auto=start loads a connection and brings it up immediately.
auto=ignore ignores the connection. This is equal to deleting a connection from the config file. Relevant only locally, other end need not agree on it.

译文1

选项 含义
auto=add 进程启动时仅读取连接配置参数, 不主动发起连接。适用于服务器端等待客户端主动发起连接请求的情况。
auto=route 直到左右两端子网的任意主机向对方发起访问请求时才会创建 IPsec 连接。
auto=start 进程主动时立即建立 IPsec 安全连接。
auto=ignore 该条配置将被忽略。

配置选项 esp = <cipher suites>

comma-separated list of ESP encryption/authentication algorithms to be used for the connection, e.g:

esp=aes128-sha256

The notation is encryption-integrity[-dhgroup][-esnmode].

For IKEv2, multiple algorithms (separated by -) of the same type can be included in a single proposal.

IKEv1 only includes the first algorithm in a proposal. Only either the ah or the esp keyword may be used, AH+ESP bundles are not supported.

Defaults to aes128-sha256 (aes128-sha1, 3des-sha1 before 5.4.0). The daemon adds its extensive default proposal to this default or the configured value. To restrict it to the configured proposal an exclamation mark (!) can be added at the end.

Note:
As a responder, the daemon defaults to selecting the first configured proposal that's also supported by the peer. By disabling charon.prefer_configured_proposals in strongswan.conf this may be changed to selecting the first acceptable proposal sent by the peer instead.
In order to restrict a responder to only accept specific cipher suites, the strict flag (!, exclamation mark) can be used, e.g:

esp=aes256-sha512-modp4096!

If dh-group is specified, CHILD_SA rekeying and initial negotiation include a separate Diffe-Hellman exchange (since 5.0.0 this also applies to IKEv1 Quick Mode). However, for IKEv2, the keys of the CHILD_SA created implicitly with the IKE_SA will always be derived from the IKE_SA's key material. So any DH group specified here will only apply when the CHILD_SA is later rekeyed or is created with a separate CREATE_CHILD_SA exchange. Therefore, a proposal mismatch might not immediately be noticed when the SA is established, but may later cause rekeying to fail.

Valid values for esnmode are esn and noesn. Specifying both negotiates extended sequence number support with the peer, the default is noesn.

Refer to IKEv1CipherSuites and IKEv2CipherSuites for a list of valid keywords.

译文2: ESP 选项

encryption-integrity[-dhgroup][-esnmode]

对称加密算法-校验算法[-会话密钥交换算法][-有无ESN模式]
参见 https://wiki.strongswan.org/projects/strongswan/wiki/IKEv2CipherSuites

  • esp=null-sha256 允许传输不加密的数据。
  • esp=aes128-sha256 选择使用对称加密 AES128 搭配完整性校验 (HMAC)SHA256 算法,如果对端不支持则继续尝试其他组合。
  • esp=aes256-sha512-modp4096!叹号表示强制使用某算法组,如果对端不接受则终止本次会话, 不再尝试其他算法组合。

配置选项 ike = <cipher suites>

comma-separated list of IKE/ISAKMP SA encryption/authentication algorithms to be used, e.g:

aes128-sha256-modp3072

The notation is encryption-integrity[-prf]-dhgroup. In IKEv2, multiple algorithms and proposals may be included, such as aes128-aes256-sha1-modp3072-modp2048,3des-sha1-md5-modp1024.

The ability to configure a PRF algorithm different to that defined for integrity protection was added with 5.0.2.

If no PRF is configured, the algorithms defined for integrity are proposed as PRF. The prf keywords are the same as the integrity algorithms, but have a prf prefix (such as prfsha1, prfsha256 or prfaesxcbc).

Defaults to:

aes128-sha256-modp3072

(aes128-sha1-modp2048,3des-sha1-modp1536 before 5.4.0) for IKEv1.

The daemon adds its extensive default proposal to this default or the configured value. To restrict it to the configured proposal an exclamation mark (!) can be added at the end.

Refer to IKEv1CipherSuites and IKEv2CipherSuites for a list of valid keywords.

Note: As a responder both daemons accept the first supported proposal received from the peer. In order
to restrict a responder to only accept specific cipher suites, the strict flag (!, exclamation mark)
can be used, e.g:

aes256-sha512-modp4096!

译文3: IKE选项

encryption-integrity[-prf]-dhgroup

对称加密算法-校验算法[-prf]-会话密钥交换算法
参见 https://wiki.strongswan.org/projects/strongswan/wiki/IKEv2CipherSuites

  • 默认IKE协商算法为 aes128-sha256-modp3072 如果对端不支持则继续尝试其他组合。
  • PRF: 默认套用哈希算法相一致的算法(例如sha1对应prfsha1)
  • ! 叹号表示强制使用某算法组,如果对端不接受则终止本次会话, 不再尝试其他算法组合。

参考文档:

  • https://wiki.strongswan.org/projects/strongswan/wiki/ConnSection
  • https://github.com/strongswan/strongswan/blob/master/README_LEGACY.md

strongswan 配置文件 /etc/ipsec.conf 速查手册1相关推荐

  1. 【收藏】Linux系统常用命令速查手册(附赠PDF档)

    给大家收集整理了日常常用的Linux系统命令,仅供大家参考. 大家如果觉得文章看起来不太方便,获取<Linux系统常用命令速查手册>.PDF版. 联系小姐姐,备注"liunx命令 ...

  2. 【收藏】Linux系统常用命令速查手册(附PDF下载链接)

    给大家收集整理了日常常用的Linux系统命令,仅供大家参考. 大家如果觉得文章看起来不太方便,可以在+qq. 2 3 5 53 3 1 0 4 6 备注"liunx命令",即可获取 ...

  3. linux常用命令速查手册PDF下载

    Linux常用命令速查手册 需要该PDF文档的朋友扫码关注下方二维码[入门小站],后台回复 「1001」 自取 点击下面标题即可获取对应资料 LeetCode刷题开源手册 LeetCode题解[jav ...

  4. linux常用命令速查手册

    Linux常用命令速查手册 需要该PDF文档的朋友扫码关注下方二维码[入门小站],后台回复 「1001」 自取 点击下面标题即可获取对应资料 LeetCode刷题开源手册 LeetCode题解[jav ...

  5. 《Linux命令速查手册》笔记

    写在前面:我看过很多技术相关的书籍,但是很少有全部看完的.大部分都是看了一小半,甚至是一大半.但是印象中,没有哪一本是全部读完的,哪怕的通读. 不过这本<Linux命令速查手册>,我倒是很 ...

  6. Linux 系统常用命令速查手册,值得收藏!

    Linux 系统常用命令速查手册,值得收藏! 给大家收集整理了日常常用的 Linux 系统命令,仅供大家参考. 文章目录 Linux 系统常用命令速查手册,值得收藏! 系统信息 date 显示系统日期 ...

  7. Linux命令行命令速查手册(整理)

    Linux命令行命令速查手册 [作者原创]Jan [ls] 2017-02-09 ls命令会列出当前所在目录的内容 2017-02-09 ls music 注 想要看看music目录中有什么内容,那么 ...

  8. Linux命令速查手册

    一. 启动,关机,登入,登出相关命令 <login> 登录 <logout> 登出 <exit> 登出 <shutdown> 停止系统 <halt ...

  9. 极客的Linux常用命令速查手册

    Linux常用命令速查手册 1.1 写在前面的话 1.2 Linux 常用命令速查手册 1.2.1 mkdir创建一个文件夹 1.2.2 cd进入一个文件夹 1.2.3 rmdir删除一个文件夹 1. ...

最新文章

  1. 【POJ】【2449】Remmarguts' Date
  2. DPDK如何释放大页内存(巨页内存hugepage)
  3. python写入excel表格数据绘制图表_(原创)xlsxwriter,python excel 写入数据\图表等操作_图表操作(二)...
  4. Java Web学习总结(23)——Distributed Configuration Management Platform(分布式配置管理平台)...
  5. LinkedIn会成为下一个诺基亚吗?
  6. 大数据应用需要注意什么问题
  7. windows系统bat批处理 打开乱码
  8. js每隔5分钟执行一次ajax请求的实现方法
  9. Java 18 新特性
  10. 互联网广告与计算广告学
  11. 谷歌大牛Jeff Dean单一作者撰文:深度学习研究的黄金十年
  12. 求当前时间的三种方法(Java)
  13. Blender程序化建模简明教程【PCG】
  14. 猜拳php代码,微信猜拳游戏源码
  15. android桌面 vulkan,Vulkan 设计指南
  16. 摄影师陈景河教你5个简单技巧 加强照片冲击力
  17. 报错 Error from server (InternalError): an error on the server (““) has prevented the request from suc
  18. vue点击按钮打开新页签,并传参
  19. CAPL 封装了的SeedKey解锁函数,高复用性
  20. 利用js求s=a+aa+aaa+aaaa+aa...a的值,其中a是一个数字。例如2+22,3+33+333,4+44+444+4444...

热门文章

  1. 传统存储方式_相机传到手机的3种方式,没WiFi的相机也能用
  2. Arduino采集Microzone遥控器信号(ROSMicrozoneBridge)
  3. jmeter java性能_使用JMeter进行性能测试(Java请求)
  4. qt opengl 2d绘图效率_Qt趣味开发之打造一个3D名字渲染小工具
  5. 关于使用MYSQL出现的内存泄漏问题
  6. vue 引入自定义js方法并调用
  7. oracle 导出01455,使用exp命令导出报EXP-00008 和ORA-01455的解决方法
  8. python的dataframe的groupby_python pandas.DataFrame.groupby()方法详解
  9. python 遍历_Python中遍历列表的方法总结
  10. Python抖音机器人制作!让你有看不完的小姐姐