[Openswan Users] Problem connecting with a Linux client
Adrian Chapela
achapela.rexistros at gmail.com
Mon Oct 18 07:39:19 EDT 2010
Hello,
I have configurated a Linux IPSEC/L2TP server. I can connect Ok with a
Windows 7 but I can't connect with a Linux client. When I use Linux I
can see the the tunnel and the ppp0 interface created OK, as you can see
below:
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.10.10.1 P-t-P:10.10.10.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:246 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:19801 (19.3 KiB) TX bytes:1832 (1.7 KiB)
But when I use the Linux client the result is the next:
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.10.10.1 P-t-P:192.168.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:246 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:19801 (19.3 KiB) TX bytes:1832 (1.7 KiB)
Why the Linux is not getting a correct IP ?
Client config:
[global]
ipsec saref = yes
port = 1701
[lac test]
lns = 192.168.0.1
require pap = yes
require authentication = yes
pppoptfile = /etc/ppp/options.l2tpd.client
length bit = yes
hostname = tomcat2
ppp debug = yes
Server config:
[global]
ipsec saref = yes
port = 1701
auth file = /etc/xl2tpd/l2tp-secrets
debug tunnel = yes
debug avp = yes
debug packet = yes
debug network = yes
debug state = yes
[lns default]
exclusive = no
ip range = 10.10.10.2 - 10.10.10.20
local ip = 10.10.10.1
assign ip = yes
require authentication = yes
require pap = yes
;require chap = yes
ppp debug = yes
pppoptfile = /etc/ppp/options.l2tpd
I don't know what is happening.
Thank you!
More information about the Users
mailing list