L2TP: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 14: Zeile 14:
 
     auto=add
 
     auto=add
 
     type=transport
 
     type=transport
     left=217.91.41.188
+
     left=XXX.XXX.XXX.XXX
 
     leftprotoport=17/1701
 
     leftprotoport=17/1701
 
     right=%any
 
     right=%any
 
     rightprotoport=17/%any
 
     rightprotoport=17/%any
  
 +
cat /etc/ipsec.secrets
 +
XXX.XXX.XXX.XXX  %any : PSK "1234"
  
 
~                                                                                                                 
 
~                                                                                                                 

Version vom 16. Oktober 2012, 09:30 Uhr

Installation

apt-get install  xl2tpd ppp openswan

Openswan

cat /etc/ipsec.conf
version 2.0
config setup
    nat_traversal=yes
    virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12
    oe=off
    protostack=netkey
conn l2tp
   authby=secret
   pfs=no
   auto=add
   type=transport
   left=XXX.XXX.XXX.XXX
   leftprotoport=17/1701
   right=%any
   rightprotoport=17/%any
cat /etc/ipsec.secrets 
XXX.XXX.XXX.XXX  %any : PSK "1234"

~ ~ ~


Quellen: