📄 defaults.txt
字号:
Openswan defaultsIf you have started Openswan for the first time, this normally generatesa default RSA keypair to use. The public key of that pair needs to be(securely!) communicated to the other end before communication can start.You will find the key in /etc/ipsec.secrets. If you don't see any key inthat file, you can generate one by issuing:ipsec newhostkey --output /etc/ipsec.secretsThere are two general sections on the /etc/ipsec.conf file. One is the"config setup" section and the other is the "conn default" section. Anytunnels you want to configure go after these two sections, in their own"conn tunnel-name" section. Be aware that the indentation and white spacein th configuration files is important. Always follow the layout that yousee in the file, and always keep an empty line between different connectiondefinitions.You only need to make changes to these two sections if Openswan cannotdetermine certain settings automatically. The most common case is that themachine has no single default route, so we cannot determine over whichphysical interface the encrypted packets need to go. If you know that youwill want to send encrypted packets over eth0 and ppp0, you can changethe interfaces line accordingly: interfaces="ipsec0=eth0,ipsec1=ppp0"Do not enable the plutodebug or klipsdebug lines unless you are investigatinga problem in the Openswan code. To find out why your configuration doesn'twork, one only needs to look at the syslog messages, often collected in thefile /var/log/secure.In the default section you can put any parameter that stays the same for mostof your tunnel connections, so you don't have to keep copying that option intoall your connection definitions. You can override these options in the actualtunnel connection.Openswan supports a mode called "opportunistic encryption", which often getsin the way of simple static tunnels. If you are just configuring a dedicatedVPN server using Openswan, add the following conns to disable OE.conn OEself auto=ignoreconn clear auto=ignoreconn private auto=ignoreconn private-or-clear auto=ignoreconn clear-or-private auto=ignoreconn block auto=ignoreconn packetdefault auto=ignore
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -