Bug#677873: xt: unrecognized option '--set-mark' / invalid option -- 's'
Hi Andreas, I also tried this method and it reported that he can't find the custom target . 2012/6/29 Andreas Henriksson andr...@fatal.se: Hello YANG Zhe! On Sun, Jun 17, 2012 at 08:26:50PM +0800, YANG Zhe wrote: [...] tc filter add dev wlan0 parent : protocol ip pref 20 u32 match u32 0 0 action xt -s 8.8.8.8 -j MARK --set-mark 1 but neither --set-mark nor -s can be used. Not that I know anything about this, but I think you can /only/ use -j with the tc xt module. To accomplish what you want to do thus do tc xt ... -j MYSETMARK1CHAIN then use iptables to create that chain and add a rule to it that sets the mark to 1 for everything jumping there. Please report back with your result! -- Andreas Henriksson -- Sincerely, Yang Zhe -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677873: xt: unrecognized option '--set-mark' / invalid option -- 's'
Hello YANG Zhe! On Sun, Jun 17, 2012 at 08:26:50PM +0800, YANG Zhe wrote: [...] tc filter add dev wlan0 parent : protocol ip pref 20 u32 match u32 0 0 action xt -s 8.8.8.8 -j MARK --set-mark 1 but neither --set-mark nor -s can be used. Not that I know anything about this, but I think you can /only/ use -j with the tc xt module. To accomplish what you want to do thus do tc xt ... -j MYSETMARK1CHAIN then use iptables to create that chain and add a rule to it that sets the mark to 1 for everything jumping there. Please report back with your result! -- Andreas Henriksson -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677873: xt: unrecognized option '--set-mark' / invalid option -- 's'
Package: iproute Version: 20120521-2 Severity: normal Tags: upstream I'd like to set fwmark to some packet for example from 8.8.8.8: tc filter add dev wlan0 parent : protocol ip pref 20 u32 match u32 0 0 action xt -s 8.8.8.8 -j MARK --set-mark 1 but neither --set-mark nor -s can be used. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.2.0-1-686-pae (SMP w/2 CPU cores) Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages iproute depends on: ii libc6 2.13-17 ii libdb5.1 5.1.29-1 Versions of packages iproute recommends: ii libatm1 1:2.5.1-1.2 Versions of packages iproute suggests: pn iproute-doc none -- Configuration Files: /etc/iproute2/rt_tables changed [not included] -- no debconf information -- Sincerely, Yang Zhe -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org