Re: OpenVPN configuration problem
From: Steve Horsley (steve.horsley_at_gmail.com)
Date: 06/16/05
- Next message: r.u: "ntpd kills ppp/pppoe/DSL"
- Previous message: hawat.thufir_at_gmail.com: "Re: Wi-Fi networking 101"
- In reply to: Franck: "Re: OpenVPN configuration problem"
- Next in thread: Franck: "Re: OpenVPN configuration problem"
- Reply: Franck: "Re: OpenVPN configuration problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 15 Jun 2005 23:46:24 +0100
Franck wrote:
> Hi,
>
> thanks for your answer.
>
> I've progressed a bit based on your suggestion, but there are still some
> problems.
>
> Here is what I did :
> - I configured tun device driver as mentionned.
> - I setup proper routes in others hosts of each LAN. I added 2 each time :
> *** On server's LAN hosts :
> route to 10.8.0.0 via 192.168.1.1
> route to 192.168.0.0 via 192.168.1.1
>
> *** On client's LAN hosts :
> route to 10.8.0.0 via 192.168.0.1
> route to 192.168.1.0 via 192.168.0.1
>
Looks good...
> Now,
> - when i ping from the client a host on server's LAN, it works.
> - when i ping from the server a host on client's LAN, it works only if add
> the host in the client config file on server. Which is very strange for me
> !!!
Ah! I think I know why this is. There is a virtual router sitting
in the middle of the VPN, with the two IP addreses 10.8.0.2 and
10.8.0.6. Maybe the client config is pushng routes into this
virtual router, telling it which of many possible clients the
192.168.1.x network can be reached on. So I guess the client
config should specify the client network - 192.168.1.0 255.255.255.0.
>
> BUT :
> - if i ping from a host on the client's LAN to a host on server's LAN, it
> doesn't work !
> - if i ping from a host on the server's LAN to a host on client's LAN, it
> doesn't work !
>
> tcpdump -i tun0 on each machine doesn't show any trafic in this case. So it
> means nothing is send via the VPN tunnel when the packet is coming from the
> LAN.
>
> I've checked that ip_forward is enabled on each Linux box.
This I don't understand. We know that forwarding is enabled
because the client can ping the server LAN (proves the server can
forward) and the server can ping the client LAN (proves the
client can forward). It really smells like either missing routes
or firewall entries to me. I would probably use tcpdump to prove
that packets are (not) traversong every interface on every step
of this journey. Prove they arrive on eth0, prove they exit on
tun0 etc. Try to find exactly where they are going missing.
Steve
- Next message: r.u: "ntpd kills ppp/pppoe/DSL"
- Previous message: hawat.thufir_at_gmail.com: "Re: Wi-Fi networking 101"
- In reply to: Franck: "Re: OpenVPN configuration problem"
- Next in thread: Franck: "Re: OpenVPN configuration problem"
- Reply: Franck: "Re: OpenVPN configuration problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|