Javier Gálvez Guerrero a écrit :
sudo iptables -A OUTPUT -t mangle -p tcp --dport 60301 -j MARK --set-mark 1
sudo iptables -A OUTPUT -t mangle -p tcp --dport 60302 -j MARK --set-mark 2
These rules match the destination port. Replace --dport with --sport to
match the source port.
Sorry, 60301 and 60302 are both destination port. I made a mistake
when explaining it. I need to route packets depending on the
DESTINATION port.
Did you check that the iptables rules actually match packets ? Are the
associated counters shown by iptables -vL or iptables-save -c incrementing ?
--
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