Re: IPTABLES + PREROUTING + --set-mark + Ubuntu

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

 



Hello,

The Media Server a écrit :
> Hi I can't get my PREROUTING iptables rule to mark my packets via
> --set-mark on Ubuntu
> 
> iptables -t mangle -A PREROUTING -p tcp --sport 80 -j MARK --set-mark 2
> rule add fwmark 2 table 2
> 
> iptables -t mangle -A PREROUTING -j MARK --set-mark 2
> iptables -t mangle -A INPUT -j MARK --set-mark 2
> iptables -t nat -A INPUT -j MARK --set-mark 2
> iptables -t nat -A PREROUTING -j MARK --set-mark 2
> 
> None of the above pass trough the table2
> 
> but this does pass trough the table 2 with this rule:
> ip rule add from 192.168.2.0/24 table 2

What do you want to achieve with these rules ?
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux