I've tried to find some tutorials, but most of them is about setting up OpenWRT server, not client.
So, I just tried to install openswan and xl2tpd and copy good configuration from Linux PC.
Connection goes fine, pppd connects and gets IP address:
Apr 21 10:52:00 OpenWrt daemon.notice pppd[6566]: CHAP authentication succeeded
Apr 21 10:52:00 OpenWrt daemon.notice pppd[6566]: local IP address 192.168.3.65
Apr 21 10:52:00 OpenWrt daemon.notice pppd[6566]: remote IP address 192.168.3.1
But connection does not work. I can't ping remote side (192.168.3.1) and remote side can't ping me. I can't understand where is the problem.
Firewall settings look fine for me:
config zone
option name 'L2TP'
option input 'ACCEPT'
option forward 'REJECT'
option output 'ACCEPT'
option network 'L2TP'
option masq '1'
option mtu_fix '1'
config forwarding
option dest 'lan'
option src 'L2TP'
config forwarding
option dest 'L2TP'
option src 'lan'
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,%v4:25.0.0.0/8,%v6:fd00::/8,%v6:fe80::/10,%v4:!192.168.3.0/24
oe=off
protostack=netkey
conn L2TP-PSK-CLIENT
authby=secret
pfs=no
rekey=yes
keyingtries=3
type=transport
auto=up
dpddelay=20
dpdtimeout=120
dpdaction=clear
ikelifetime=8h
keylife=1h
left=%eth0.3
leftprotoport=17/1701
right=x.x.x.x
rightid=192.168.3.1
rightprotoport=17/1701
xl2tpd.conf:
[global]
port = 1701
auth file = /etc/xl2tpd/xl2tp-secrets
access control = no
[lac L2TPserver]
lns = x.x.x.x
refuse pap = yes
require authentication = yes
name = nap
pppoptfile = /etc/ppp/options.l2tpd.client
length bit = yes
ppp/options.l2tpd.client:
ipcp-accept-local
ipcp-accept-remote
refuse-eap
refuse-chap
noccp
noauth
crtscts
idle 1800
mtu 1410
mru 1410
nodefaultroute
lock
#proxyarp
connect-delay 5000
noipdefault
ifname L2TP
Interface statistics look strange, it looks like system doesn't send packets to that interface at all:
L2TP Link encap:Point-to-Point Protocol
inet addr:192.168.3.65 P-t-P:192.168.3.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:61 (61.0 B) TX bytes:40 (40.0 B)
(Last edited by nap on 22 Apr 2013, 08:37)