Displaying 1 result from an estimated 1 matches for "local_internet_ip".
2005 Nov 24
0
htb thingy
...handle 111: sfq perturb 10
now the tree is done
because i use SNAT i can t use the u32 selector to classify the traffic.
so i use the fw filter, after marking the packets that come from each ip
with iptables.
#first we mark the packets leaving the machine
iptables -A OUTPUT -t mangle -o $dev -s $local_internet_ip -j MARK\
--set-mark 1
then we atach a filter that sends this traffic where it needs to go
tc filter add dev $dev parent 1:0 protocol ip prio 1 handle 1\
fw flowid 1:101
#we add rules to mark the packets from the local network
iptables -A FORWARD -t mangle -i eth1 -o eth0 -s 192.168.168.2/32\
-j M...