Hi All, ive a strange problem in routing: ive a complex net:
Lan: 10.128.0.0/255.255.255.0 gw->10.128.0.1 (ubuntu as firewall)
a terminal server in the lan ->10.128.0.203
this terminal server with wvdial takes up a ppp0 interfaces to another server outside (ppp0 up is 192.168.0.5, remore is 192.168.0.2).
I want to contact the remote server from lan (so from 10.128.0.89, my pc, to 192.168.0.2). I set up so:
a static route in the firewall (route add -net 192.168.0.0 gw 10.128.0.203)
in terminal server i added a line in iptables for having a SNAT from 10.128.0.0 to 192.168.0.5, and a route similar to this->route add -net 192.168.0.0 gw 192.168.0.5, this because i want to contact other pcs behind the remote server.
The link is ok, from terminal server i can ping remote server, and the pcs behind it, but from lan i cant. Any idea?
Thanks u all!!
P.S. sorry for my english :)
ok i solved the problem, i feel veeeeeeery STUPID. i forgot the magic command
echo 1 >sys/proc/net/ipv4/ip_forwarding
and all went ok :)