Network configuration
Paul Lewis
paul.lewis at st-annes.oxford.ac.uk
Sun Jan 15 20:08:32 CET 2006
Hi,
Sorry, I forgot to mention that. Yes, the "echo 1 >
/proc/sys/net/ipv4/ip_forward" has been set to run in rc.local script on
every boot.
Cheers,
Paul
---
Paul Lewis (paul.lewis at st-annes.ox.ac.uk)
Part II Student
Department Of Materials
University Of Oxford
-----Original Message-----
From: netfilter-bounces at lists.netfilter.org
[mailto:netfilter-bounces at lists.netfilter.org] On Behalf Of Rob Sterenborg
Sent: 15 January 2006 19:03
To: netfilter at lists.netfilter.org
Subject: RE: Network configuration
> I have tried setting up routing using these commands:
>
> echo "ISP_1" >> /etc/iproute2/rt_tables
> echo "ISP_2" >> /etc/iproute2/rt_tables
>
> ip route add 192.168.4.0/22 dev eth2 src 192.168.7.253 table ISP_1
> ip route add default via 192.168.100.253 table ISP_1
> ip route add 192.168.0.0/22 dev eth1 src 192.168.3.253 table ISP_2
> ip route add default via 192.168.20.253 table ISP_2
>
> ip rule add from 192.168.7.253 table ISP_1
> ip rule add from 192.168.3.253 table ISP_2
>
> However, this yielded no success. I have also tried a simple iptables
> forwarding configuration (without the routing config above):
>
> iptables -A FORWARD -i eth0 -o eth2 -j ACCEPT
> iptables -A FORWARD -i eth2 -o eth0 -j ACCEPT
> iptables -A FORWARD -i eth1 -o eth3 -j ACCEPT
> iptables -A FORWARD -i eth3 -o eth1 -j ACCEPT
>
> # default policy
> iptables -P FORWARD DROP
Not looking at your routing rules ; did you also do :
echo 1 > /proc/sys/net/ipv4/ip_forward
Gr,
Rob
More information about the netfilter
mailing list