Hi all,

I think I have a question when using l2tpv3tun 0.2 tool to establish tunnel
between two LAN.
What should I set in l2tpv3 host machines as routers to forward packets
from local clients to remote
servers through l2tpv3 tunnel?

Client1(2,3,4...) LAN <------->   (l2tpv3 HostA)  <-----Internet---->
(l2tpv3 HostB)  <------->  Server1(2,3,4...)LAN

Client1(2.3.4...) LAN
Private IP 2.2.2.0/255.255.255.0

HostA
Public IP: 172.5.5.127
Private IP: 10.5.5.1

HostA
Public IP: 172.5.5.111
Private IP: 10.5.5.2

Server1(2.3.4...) LAN
Private IP 2.2.2.0/255.255.255.0

According to the article "Using L2TPv3 unmanaged tunnels"
http://www.openl2tp.org/pipermail/openl2tp-users/2010-April/000836.html
I can establish unmanaged l2tpv3 tunnel between two l2tpv3 hosts by
following command.

HostA:
# l2tpv3tun add tunnel tunnel_id 42 peer_tunnel_id 45 udp_sport 5000
udp_dport 6000 \
     encap udp local 172.5.5.127 remote 172.5.5.111
 # l2tpv3tun add session tunnel_id 42 session_id 128 peer_session_id 519
 # l2tpv3tun add 10.5.5.1/32 peer 10.5.5.2/32 dev l2tpeth0
 # ifconfig l2tpeth0 up

HostB:
# l2tpv3tun add tunnel tunnel_id 45 peer_tunnel_id 42 udp_sport 6000
udp_dport 5000 \
   encap udp local 172.5.5.111 remote 172.5.5.127
# l2tpv3tun add session tunnel_id 45 session_id 519 peer_session_id 128
#  l2tpv3tun add 10.5.5.2/32 peer 10.5.5.1/32 dev l2tpeth0
# ifconfig l2tpeth0 up

After above, I can only ping HostB 10.5.5.2 success from HostA 10.5.5.1 .
But ping server1(2,3,4...) from client1(2,3,4..) through l2tpv2 tunnel
doesn't work.
What should I set in both side?

May someone help me?
Thanks for all help.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openl2tp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openl2tp-users

Reply via email to