Strongswan ikev1 xauth psk: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Install xauth modul= *apt-get install strongswan strongswan-plugin-xauth-generic =/etc/ipsec.conf= <pre> config setup cachecrls=yes uniqueids=yes con…“)
 
Zeile 27: Zeile 27:
 
someone : XAUTH "anotherpassword"
 
someone : XAUTH "anotherpassword"
 
</pre>
 
</pre>
 +
=Source=
 +
*https://trick77.com/strongswan-5-vpn-ubuntu-14-04-lts-psk-xauth/

Version vom 7. September 2017, 15:22 Uhr

Install xauth modul

  • apt-get install strongswan strongswan-plugin-xauth-generic

/etc/ipsec.conf

config setup
    cachecrls=yes
    uniqueids=yes

conn xauth-android
    keyexchange=ikev1
    authby=xauthpsk
    xauth=server
    left=%defaultroute
    leftsubnet=0.0.0.0/0
    leftfirewall=yes
    right=%any
    rightsubnet=10.7.0.0/24
    rightsourceip=10.7.0.2/24
    rightdns=4.2.2.1
    auto=add

/etc/ipsec.secret

10.84.252.31 %any : PSK "suxer"

xinux : XAUTH "oimel"
someone : XAUTH "anotherpassword"

Source