Routing / ip rule / fwmark

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I'm setting up a box with one default route and another handling only web connection.
Here my conf :


iptables -t mangle -A PREROUTING -p tcp --dport 80 -j MARK --set-mark 3

0: from all lookup local
32766: from all lookup main <- wich contain route to my lan and internet inferfaces
32767: from all fwmark 3 lookup webbox <- wich contain only the default route for wen traffic
32768: from all lookup default <- which contain only the other default route


The problem : Packets to port 80 go tough the webbox thanks to fwmark but the reply from webbox don't cross the fw...
What's the reason ?


Thanks !

Guillaume from france

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux