[LARTC] I need some help with u32 filter

Linux Advanced Routing and Traffic Control

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

 



Thank very much Stef.
It works.

Best Regards

Remus

----- Original Message ----- 
From: "Stef Coene" <stef.coene@docum.org>
To: "Remus" <rmocius@auste.elnet.lt>; <lartc@mailman.ds9a.nl>
Sent: Thursday, February 13, 2003 8:49 PM
Subject: Re: [LARTC] I need some help with u32 filter


> > ##############
> > tc filter add dev imq0 parent 1:0 protocol ip prio 100 u32 match ip
sport
> > 25 0xffff classid 1:20
> > Is it enough to have only sport 25 on download link or I need the dport
as
> > well?
 You never told us what's redirected to the imq device.  But I suppose it's
 incoming traffic from the internet.  If you want to match mail coming from
 the internet to your smtp server, you need dport 25.  All traffic is sended
 to your smtp and that's server is running on port 25.
>
> > ##############
> > tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip
sport
> > 25 0xffff classid 1:20
> > tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip
sport
> > 110 0xffff classid 1:20
> > The same question on eth0 (upload link)
> > Is it enough to have only sport 25 and 110 on upload link or I need the
> > dport as well?
 You connect to port 25 and it's for traffic leaving the server, so you need
 sport 25.
>
> Stef



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