[LARTC] HTB: Filtering flat out not working :(

Linux Advanced Routing and Traffic Control

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

 



> 4 computers on a LAN in my house, having IPs 192.168.0.7,
> 192.168.0.50, 192.168.0.52, 192.168.0.58. A router/linux-box (which
> runs the shaping/tc_commands), which is the default gateway of the 4
> machines: 192.168.0.1. It masquerades the internet connection.
> Internet connection: ADSL PPPoE. The ADSL modem is connected to eth0
> of the router, and PPPoE makes ppp0. eth1 is the LAN.  Yes, kernel is
> compiled correctly (has advanced router option, patched with HTB,
> etc).
>[...] 
> tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.0.52/32 flowid 1:13
> 
> The PROBLEM: no matter how hard I try, NO packets EVER get onto any
> flow but the default, 1:14. Eg. my computer (192.168.0.7) can send
> many packets thru the gateway, and none of them get put on flow 1:10
> like they should, they all go onto 1:14, the default.  Why?

eth1 is your LAN so that you are QoSing packets going toward you.
Then use "dst 192.168.0.52/32" instead of "src 192.168.0.52/32"
in your filters.
 
> Add'l QUESTIONS: Which interface should I be using?! Ideally i'd like
> to use ppp0, but I guess I can't because i'm masquerading? Therefore I
> should use eth1, the internal lan-side ethernet card? Also, have I got

depends what direction you want to masquerade ;)
devik



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux