Routing Problem
Hi,
I have 2 Machines connected to the Internet via DSL. The first machine is the default gateway on all machines in the LAN. I've 2 Machines because i want to use the second as a fallback. But now i want to route a few services over the second machine, like E-Mail.
For testing i wanted to route a host over the second machine. I followed the Adv-Routing-HOWTO and placed:
iptables -I PREROUTING -i eth0 -t mangle -p tcp -s host -j MARK --set-mark 1 echo 201 test >> /etc/iproute2/rt_tables
ip rule add fwmark 1 table test
ip route add default via xxx.xxx.xxx.xxx dev eth2 table test
xxx.xxx.xxx.xxx is the IP of the second Machine connected to the first via a Crossover-Cable. This works fine, both machines can ping the other.
This setup didn't work. Did i miss something?
Hope anybody can help me out.
Regards, Tom
Signature · 4 lines
Tom Fischer ABH Marketingservice GmbH System Administrator Weisshaustrasse 23a Tel: 0221-94400446 50939 Koeln http://www.abh.de