From: Rene Gallati <lartc@draxinusom.ch>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] iptables mark + openvpn will the mark survive ?
Date: Thu, 05 Aug 2004 09:40:28 +0000 [thread overview]
Message-ID: <4112008C.3040508@draxinusom.ch> (raw)
In-Reply-To: <200408041718.01844.etienne@unix.za.org>
Hello,
> I want to setup bandwidth restrictions for a few clients that use openvpn to
> connect to my server. I'm using iptables to mark the packets in the mangle
> table (PRE/POSTROUTING) on eth0 before they get sent via the tunnel. Will the
> mark survive even if the packets then get routed via an openvpn tunnel (tunX)
> out the box or does openvpn change it removing the mark ?
openVPN is just a userspace process that - depending on configuration -
doesn't even need root access to run. (provided the device nodes are set
up accordingly).
Depending on what you do, the mark should survive (never tested this),
or not.
If you are just forwarding to a tun/tap, the mark should survive like
usual. There is no difference between a tun/tap device and another
ethernet device with regard to this point.
However, once a packet reaches the tun/tap, it gets transfered to
openVPN which encrypts it and sends it out using udp (or tcp, depending
on configuration) of a real interface. These outgoing packets are not
having the mark on them, primarily because they are completely different
packets that were generated by openVPN and not really directly related
to what went into the tun/tap device. I suspect that is however what
you'd like to achieve. Note that openVPN does has its own shaping
directive (--shaper n) which may help you in this case.
--
C U
- -- ---- ----- -----/\/ René Gallati \/\---- ----- --- -- -
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2004-08-05 9:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-04 15:18 [LARTC] iptables mark + openvpn will the mark survive ? Etienne Ledoux
2004-08-05 9:40 ` Rene Gallati [this message]
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=4112008C.3040508@draxinusom.ch \
--to=lartc@draxinusom.ch \
--cc=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.