All of lore.kernel.org
 help / color / mirror / Atom feed
From: /dev/rob0 <rob0@gmx.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: Sharing Limited Internet Connection
Date: Fri, 2 Sep 2005 23:39:54 -0500	[thread overview]
Message-ID: <200509022339.54950.rob0@gmx.co.uk> (raw)
In-Reply-To: <4319243B.3030007@canada.com>

On Friday 2005-September-02 23:19, David Leangen wrote:
> Can somebody please explain something to me?
>
> > # use MASQ if you get dynamic ip
> > iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
>
> What's the difference between using "-o ppp0" and "-o eth0"?
> Obviously, one is using the ppp0 interface while the other is using
> the eth0 interface.

-o specifies the output interface. "-o ppp0" matches packets routed out 
ppp0. I'll leave it as an exercise for the reader to guess which 
packets match "-o eth0".

> But in terms of what happens to the packets, what's the diff?

-o is a matching option, not a target option. The target is the same, 
"-j MASQUERADE".

> Out of curiosity, I tried both: ppp0 works, while eth0 does not.

Not having any idea what your eth0 interface is used for, I cannot 
explain that to you, but I would guess that your default route to the 
Internet uses ppp0.
-- 
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header


  reply	other threads:[~2005-09-03  4:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-02 17:17 Sharing Limited Internet Connection TestMail
2005-09-02  2:39 ` /dev/rob0
2005-09-02 14:57   ` Eduardo Spremolla
2005-09-05 17:52   ` TestMail
2005-09-02  7:13 ` Ruprecht Helms
2005-09-02 11:07   ` Askar
2005-09-03  4:19     ` David Leangen
2005-09-03  4:39       ` /dev/rob0 [this message]
2005-09-02 15:02 ` Tom Sullivan

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=200509022339.54950.rob0@gmx.co.uk \
    --to=rob0@gmx.co.uk \
    --cc=netfilter@lists.netfilter.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.