Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

FireBrick to Openswan Strongswan IPsec (Howto): Difference between revisions

mNo edit summary
 
(14 intermediate revisions by 2 users not shown)
<indicator name="FireBrick Tunnels">[[File:FBimgtunnelMenu-IPsec.svg|link=:Category:FireBrick_TunnelsFireBrick 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=
 
(strongswan is much nicer, but not in yum on centos5. On centos6, use strongswan)
 
In <tt>/etc/ipsec.conf</tt> uncomment
include /etc/ipsec.d/*.conf
 
 
Put following two files in <tt>/etc/ipsec.d/ </tt>:
 
file: myFireBrick.conf:
 
<syntaxhighlight lang="bash">
conn myFireBrick
authby=secret
 
Put the following in the FB at the other end:
<syntaxhighlight languagelang="xml">
<connection name="IPSec" peer-ips="CentOS.IP.Address" auth-method="Secret" secret="YourSecretHere" internallocal-ipv4ip="FireBrick.LAN.IP.Address/24" routes="CentOS.IP.Address" log="default"/>
</syntaxhighlight>
 
 
file: /etc/ipsec.conf
<syntaxhighlight languagelang="linux-configbash">
conn myFireBrick
authby=secret
auto=start
file: /etc/ipsec.secrets
 
<syntaxhighlight languagelang="linux-configbash">
strongSwan.IP FireBrick.IP : PSK "YourSecretHere"
</syntaxhighlight>
 
Put the following in the FB at the other end:
<syntaxhighlight languagelang="xml">
<connection name="IPSecTostrongSwan" peer-ips="strongSwan.IP" auth-method="Secret" secret="YourSecretHere" internallocal-ipv4ip="FireBrick.LAN.IP.Address/24" routes="strongSwan.IP" log="default"/>
</syntaxhighlight>
 
[[Category:FireBrick_Tunnels|IPv6 Tunnels]]
[[Category:FireBrick IPsec|Strongswan]]
editor
699

edits