tc filter rules matching source IP and route?
Hi,
I'm trying to set up a tc filter rule matching the following conditons:
source ip is 192.168.0.68 and only packets shall be matched going out on the internet connection.
My first try was
"protocol ip u32 match ip src 192.168.0.68 ! match ip dst 192.168.0.0/24"
but obviously tc doesn't like the NOT ... ;-)
I also tried the route classifier, but it cannot be combined with the match of a source address.
network setup:
network 192.168.0.0
netmask 255.255.255.0
gateway 192.168.0.1
Anyone having an idea how to match all packets of a specific host going the default route?
Thanx for any answer
Rene Bartsch
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 4 lines
My first try was
"protocol ip u32 match ip src 192.168.0.68 ! match ip dst 192.168.0.0/24" but obviously tc doesn't like the NOT ... ;-)
Will work with ematches.
Quoted 2 lines
I also tried the route classifier, but it cannot be combined with the match of a source address.
Please see mark_in_u32 at:
http://kernel.umbrella.ro/net/
Quoted 11 lines
network setup:
network 192.168.0.0
netmask 255.255.255.0
gateway 192.168.0.1Anyone having an idea how to match all packets of a specific host going the default route?
Quoted 9 lines
Thanx for any answer
Rene Bartsch
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc