Displaying 1 result from an estimated 1 matches for "fwmak".
Did you mean:
fwmark
2005 Feb 03
1
why fwmark don''t work
...-A PREROUTING -p tcp --dport 25 -j MARK --set-mark 1
then i create a table called smtp:
echo 200 smtp >> /etc/iproute2/rt_tables
after that i set PC2 as default via for my smtp table:
ip route add default via 192.168.0.2 table smtp
and finally i make the rule for smtp table
ip rule add fwmak 1 table smtp
this would have to work, but is not redirecting nothing...
i can see that is making the packets with 1 using the command iptables -t mangle -L PREROUTING -v but is not working, any one can help me?