FireBrick to Openswan Strongswan IPsec (Howto): Difference between revisions
Appearance
Content deleted Content added
→strongSwan: More text |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<indicator name="Tunnels">[[File:Menu-IPsec.svg|link=:Category:FireBrick IPsec|30px|Back up to the FireBrick IPsec Tunnels Category Page]]</indicator> |
<indicator name="Tunnels">[[File:Menu-IPsec.svg|link=:Category:FireBrick IPsec|30px|Back up to the FireBrick IPsec Tunnels Category Page]]</indicator> |
||
See also: [[FireBrick Road Warrior strongSwan]] |
|||
=Linux (CentOS Openswan) Example Using IKE2 and Preshared keys= |
=Linux (CentOS Openswan) Example Using IKE2 and Preshared keys= |
||
| Line 7: | Line 8: | ||
(strongswan is much nicer, but not in yum on centos5. On centos6, use strongswan) |
(strongswan is much nicer, but not in yum on centos5. On centos6, use strongswan) |
||
In /etc/ipsec.conf uncomment |
In <tt>/etc/ipsec.conf</tt> uncomment |
||
include /etc/ipsec.d/*.conf |
include /etc/ipsec.d/*.conf |
||
Put following two files in /etc/ipsec.d/ |
Put following two files in <tt>/etc/ipsec.d/</tt>: |
||
file: myFireBrick.conf: |
file: myFireBrick.conf: |
||
| Line 36: | Line 37: | ||
Put the following in the FB at the other end: |
Put the following in the FB at the other end: |
||
<syntaxhighlight lang="xml"> |
<syntaxhighlight lang="xml"> |
||
<connection name="IPSec" peer-ips="CentOS.IP.Address" auth-method="Secret" secret="YourSecretHere" |
<connection name="IPSec" peer-ips="CentOS.IP.Address" auth-method="Secret" secret="YourSecretHere" local-ip="FireBrick.LAN.IP.Address" routes="CentOS.IP.Address" log="default"/> |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
| Line 43: | Line 44: | ||
file: /etc/ipsec.conf |
file: /etc/ipsec.conf |
||
<syntaxhighlight lang="bash"> |
<syntaxhighlight lang="bash"> |
||
conn myFireBrick |
|||
authby=secret |
authby=secret |
||
auto=start |
auto=start |
||
| Line 63: | Line 64: | ||
Put the following in the FB at the other end: |
Put the following in the FB at the other end: |
||
<syntaxhighlight lang="xml"> |
<syntaxhighlight lang="xml"> |
||
<connection name="IPSecTostrongSwan" peer-ips="strongSwan.IP" auth-method="Secret" secret="YourSecretHere" |
<connection name="IPSecTostrongSwan" peer-ips="strongSwan.IP" auth-method="Secret" secret="YourSecretHere" local-ip="FireBrick.LAN.IP.Address" routes="strongSwan.IP" log="default"/> |
||
</syntaxhighlight> |
</syntaxhighlight> |
||