From: Glen Huang <curvedmark@gmail.com>
To: netfilter@vger.kernel.org
Subject: How are tunneled interfaces masqueraded?
Date: Wed, 1 Jul 2015 22:55:49 +0800 [thread overview]
Message-ID: <CB9FFA86-278F-4EB5-9C90-9EBFF70DF32C@gmail.com> (raw)
Hi,
I'm having difficulty wrapping my head around the concept of masquerading a tunneled interface. I'd be grateful if someone could shed some light on it.
First, just to make sure I understand the masquerade target right. If I masquerade a pppoe interface that connects a host to its ISP, and although ethernet frames encapsulating ppp frames travel through this interface, netfilter digs into the ppp frames and translate the encapsulated IP packets. Is this correct?
If so, what about the case where the ppp interface is tunneled? Let's take pptp for an example. If a ppp interface is created with pppd, then tunneled through GRE by pptpd, and i masquerade that ppp interface, as outbound packets travel through it, what packets are translated? The ones that travels in the virtual ppp interface or the ones that is generated by pptpd and get sent to the outside world?
Thank you very much.
next reply other threads:[~2015-07-01 14:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-01 14:55 Glen Huang [this message]
2015-07-02 21:42 ` How are tunneled interfaces masqueraded? Pascal Hambourg
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=CB9FFA86-278F-4EB5-9C90-9EBFF70DF32C@gmail.com \
--to=curvedmark@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