All of lore.kernel.org
 help / color / mirror / Atom feed
From: bert hubert ahu@ds9a.nl
To: lartc@vger.kernel.org
Subject: [LARTC] I can control traffic based on IP ADDRESS but not on PROTOCOL
Date: Tue, 24 Oct 2000 11:41:22 +0000	[thread overview]
Message-ID: <marc-lartc-98373938216833@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373938216832@msgid-missing>

<PRE>On Mon, Oct 23, 2000 at 06:31:30PM -0400, Peter Frischknecht wrote:

&gt;<i> However, if I attempt to filter by protocol instead, it does not work.
</I>&gt;<i> I will disregard the fact that this filter will manipulate both TCP and UDP
</I>&gt;<i> sessions destined to the specific port.
</I>&gt;<i> I am attaching to a server on port 8080 (0x1f90).
</I>&gt;<i> 
</I>&gt;<i> tc filter add dev eth1 parent 1:0 protocol ip prio 25 u32 match tcp src
</I>&gt;<i> 0x1f90 0xffff flowid 1:100
</I>
Well, I don't really see what's wrong with this command. Try verifying your
assumptions, are there really packets GOING OUT on eth1 with source port
8080?

&gt;<i> A connection to the above port will yield the default bandwidth of 10Mbit.
</I>&gt;<i> Not the desired effect.
</I>
You might be able to use ipchains or iptables to mark your packets (fwmark),
and try to filter on the mark.

&gt;<i> I have used many examples copied strainght out of the sources, in all of
</I>&gt;<i> them, the IP address matching works, but the TCP matching never does.
</I>
Otherwise ask Jamal Hadi, his address is in the HOWTO. Please forward his
answer to this list (with his permission). Would be good for the archive.

Regards,

bert hubert

-- 
PowerDNS                     Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet


</PRE>

  reply	other threads:[~2000-10-24 11:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-23 22:31 [LARTC] I can control traffic based on IP ADDRESS but not on PROTOCOL Peter
2000-10-24 11:41 ` bert [this message]
2000-10-24 16:35 ` Peter
2000-10-26 18:30 ` [LARTC] I can control traffic based on IP ADDRESS but not on Suhail

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-98373938216833@msgid-missing \
    --to=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.