Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Gáspár Lajos" <swifty@freemail.hu>
To: Marco Coda <marco.coda7@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: [half_OT]Traffic shaping with tc and iptables
Date: Thu, 08 Sep 2011 13:20:43 +0200	[thread overview]
Message-ID: <4E68A50B.5000901@freemail.hu> (raw)
In-Reply-To: <CAGRr-qm4gF8ZzvE9D5vXb-RLKXiELsj_P8KrOk9aOHTWRK01kQ@mail.gmail.com>


2011-09-08 12:54 keltezéssel, Marco Coda írta:
>> IPTABLES=/sbin/iptables
>> nic=eth0
>> port=25
>> upload=10kbit
>> bandwith=2Mbit
>>
>> $IPTABLES -t mangle -A OUTPUT -p tcp -o $nic --sport $port -j MARK --set-mark 1
AAAAAAAAAAArrrrrghhhh!!!! :D

If you SEND a mail FROM your server to an ANOTHER server then the 
DESTINATION port will be 25 !!!! :D

$IPTABLES -t mangle -A OUTPUT -p tcp -o $nic --dport $port -j MARK 
--set-mark 1

Try again!!! :D

Swifty

  reply	other threads:[~2011-09-08 11:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08  7:44 [half_OT]Traffic shaping with tc and iptables Marco Coda
2011-09-08  9:14 ` Gáspár Lajos
2011-09-08  9:17   ` Gáspár Lajos
2011-09-08 10:54   ` Marco Coda
2011-09-08 11:20     ` Gáspár Lajos [this message]
2011-09-08 12:10       ` Marco Coda
2011-09-08 12:22         ` Gáspár Lajos
2011-09-08 14:00           ` Marco Coda
2011-09-08 14:52             ` Gáspár Lajos
2011-09-08 14:57             ` Nikolay Kichukov
2011-09-08 15:38               ` Marco Coda
2011-09-08 12:40         ` Nikolay Kichukov

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=4E68A50B.5000901@freemail.hu \
    --to=swifty@freemail.hu \
    --cc=marco.coda7@gmail.com \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox