editor
700
edits
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!
mNo edit summary |
|||
(20 intermediate revisions by 2 users not shown) | |||
<indicator name="
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/
<syntaxhighlight>▼
<syntaxhighlight lang="bash">
conn myFireBrick
authby=secret
</syntaxhighlight>
CentOS.IP.Address FireBrick.IP.Address : PSK "YourSecretHere"
Put the following in the FB at the other end:
<syntaxhighlight lang="xml">
<connection name="IPSec" peer-ips="CentOS.IP.Address" auth-method="Secret" secret="YourSecretHere"
▲</syntaxhighlight>
=strongSwan=
file: /etc/ipsec.conf
<syntaxhighlight lang="bash">
authby=secret
auto=start
right=FireBrick.IP
rightid=FireBrick.IP
rightsubnet=
lifetime=2m
</syntaxhighlight>
file: /etc/ipsec.secrets
<syntaxhighlight lang="bash">
strongSwan.IP FireBrick.IP : PSK "YourSecretHere"
</syntaxhighlight>
Put the following in the FB at the other end:
<syntaxhighlight lang="xml">
<connection name="IPSecTostrongSwan" peer-ips="strongSwan.IP" auth-method="Secret" secret="YourSecretHere" local-ip="FireBrick.LAN.IP.Address" routes="strongSwan.IP" log="default"/>
</syntaxhighlight>
[[Category:
|