Displaying 1 result from an estimated 1 matches for "if_inet".
Did you mean:
af_inet
2005 Nov 24
1
ftp connmark
...saw this snippet from
Daniel Chemko dchemko@smgtec.com
Mon, 31 May 2004 09:30:43 -0700
# Egress marking (mostly for QOS operations)
iptables -t mangle -A POSTROUTING -j CONNMARK --restore-mark
iptables -t mangle -A POSTROUTING -m mark ! --mark 0 -j ACCEPT
iptables -t mangle -A POSTROUTING -o ${if_inet} --dport 21 -j MARK
--set-mark 0x111
iptables -t mangle -A POSTROUTING -j CONNMARK --save-mark
I want to mark many packets, including FTP.
So above these lines, I have a few more lines in my script. Like the following...
iptables -t mangle -A POSTROUTING -p icmp -j MARK --set-mark 0x110
ipta...