mark all packages from a spesific host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've just started to look into traffic shaping and have the following
environment.


ISP--------eth1-LINUX-eth0----------intranet

I want to mark all traffic coming from host 192.168.0.19 so that i can =
pick
up these packages and filter them before sending out on eth1/ppp0

I've tried things like:

/usr/sbin/iptables -A POSTROUTING -t mangle -s 192.168.0.19 -p tcp \
-o eth0 -j MARK --set-mark 12

/usr/sbin/tc filter add dev eth1 protocol ip parent 1:1 prio 100 \
handle 12 fw classid 1:3

but this dosn't seem to work.....what's am I doing wrong or don't
understand?

-Svein Foss=E5en-
-----------------------------------------------------------------------=
------------------------

This is Unix land.
In quiet nights you can hear ms-windows machines reboot.=





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux