Problem routing in Fedora 12 and 13

Bruno de Oliveira Bastos kidboy at brturbo.com.br
Fri Jun 18 11:16:24 UTC 2010


I have a fedora 13 with two Internet links, but I'm having problems in
configuring them. In the past 11 fedora works fine, on Redhat, Centos,
only fedora 13 and 12 is not working the same configuration posted
below. I dont know what to do, if someone can help me.

# File rc.local

ip route add 200.20.150.192 dev eth0 src 200.20.150.194 table 1
ip route add default via 200.20.150.193 table 1

ip route add 192.168.2.0 dev eth3 src 192.168.2.2 table 2
ip route add default via 192.168.2.254 table 2

ip route add 200.20.150.192 dev eth0 src 200.20.150.194
ip route add 192.168.2.0 dev eth3 src 192.168.2.2

ip rule add from 200.20.150.194 table 1
ip rule add from 192.168.2.2 table 2

ip rule add fwmark 1 lookup 1
ip rule add fwmark 2 lookup 2

ip route flush cached

# The route default is to link 1 ( 200.20.150.193 )

# Some configuration basic tested and not work with iptables
iptables -t mangle -A PREROUTING -i eth3 -s 192.168.0.0/24 -j MARK --set-mark 2
iptables -t nat -A POSTROUTING -o eth0
iptables -t nat -A POSTROUTING -o eth1

My iptables do the identification mark of the packets, but some things
happen that it could not do the routing of packages in Fedora 13 and
12, I dont really know what can be, I tried everything I knew.


More information about the users mailing list