[Fwd: Re: [Openswan Users] openswan + l2tpd and pppd problem]

Tomasz Grzelak tgrzelak at wktpolska.com.pl
Thu Apr 7 12:22:41 CEST 2005


Stanislav Nedelchev wrote:

> i have win Xp box witj 192.168.65.1 ip netmask 25.255.255.0 behind NAT
>i get 192.168.0.205 from l2tpd
>NAT box with real wip
>here is firewall with openswan +l2tpd an ppp
>witj real IP on eth0
>local l2tpd IP is 192.168.0.2
>one local IP on eth1 is 192.168.0.1
>and for third IP on et2 is 192.168.2.1
>i'm connecting without problem but i can only ping iP addresses
>starting with 192.168.0.1 to 255
>i cat't ping 192.168.2.1 and 192.168.2.2
>i try with changing option.l2tpd
>yo defaltroute and nodefault route but without succseed
>here is route for ppp0
>192.168.0.205   *               255.255.255.255 UH    0      0        0 ppp0
>and ifconfig for ppp0
>ppp0      Link encap:Point-to-Point Protocol
>          inet addr:192.168.0.2  P-t-P:192.168.0.205  Mask:255.255.255.255
>  
>
I don't think I understand you well, but you need a route to a network 
to ping hosts in that network. You wrote you wanted to ping 192.168.2.x, 
but was there a route to the network in the routing table?

what is the output of 'route -n' or 'ip route show'? this would be the 
answer to your question probably...

And notice, 192.168.0.0/24 and 192.168.2.0/24 are different networks! It 
means you need to have different routes for these networks, or an 
aggreagte route, for example 'ip route add 192.168.0.0/16 via ethX'

Tomasz Grzelak






More information about the Users mailing list