Routing problem with VPN
I have a FC5 server as internet server with two interfaces:
eth0 = 200.x.x.x (my public ip)
eth1 = 192.168.10.2 (interface to may lan)
In my lan I have a file server
eth0 = 192.168.10.1
In the internet server I have too a OpenVPN server working with a 10.10.10.0/24 address pool. So this server have a virtual interface:
tun0 = 10.10.10.1
When I connect to VPN a client take the addresss 10.10.10.6.
If this client ping 10.10.10.1 the result is ok. If this client ping the 192.168.10.2 (another interface of the internet server) the result is ok because I configure in the OpenVPN the 'push "route 192.168.10.0 255.255.255.0"' int the conf file (from VPN to LAN)
But if I ping 192.168.10.1 (the another file server in the lan) I take a timeout. I try make a route in the internet server:
route add -net 10.10.10.0/24 gw 192.168.10.2
With that I can't ping from the client to 192.168.10.1, 192.168.10.2 and even 10.10.10.1!!
What's wrong with my route?
Thanks,
Max
|