Network questions part III
Nicolas Linkert
linkert at fastmail.fm
Sun Dec 23 09:39:34 CET 2007
Hi,
another question concerning my network settings: I have successfully
established a connection with the Neo, and I can login etc. The only
"problem" is that I always have to manually submit the routing:
route add -host 192.168.0.202/32 dev usb0
My entry in /etc/network/interfaces:
allow-hotplug usb0
iface usb0 inet static
address 192.168.0.200
netmask 255.255.255.0
network 192.168.0.0
post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s
192.168.0.0/24
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up_iptables -P FORWARD ACCEPT
Is there a way to automatically add the routing to a script? Or am I
missing something?
Best regards,
Nicolas
More information about the community
mailing list