Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2007
What is wrong in this command(add filter by source and destination)?
match ip src 192.168.1.0/24 \
match ip dst 192.168.2.0/24 flowid 1:2
I need an alternative way, or the correct way for this command, to add a filter by both source address and destination address. Thx
The error i get is RTNETLINK answers: Invalid argument
PS: Is this a correct alternative:
iptables -A PREROUTING -t mangle -s 192.168.1.0/24 -d 192.168.2.0/24 -j MARK --set-mark 254
tc filter add dev $IF_LOCAL parent 1: protocol ip handle 254 pref 100 fw classid 1:2