Vi$ta reported LAN connection "Local Only" [solved]
David A. Bandel
david.bandel at gmail.com
Mon Dec 14 03:17:59 PST 2009
2009/12/14 Man-wai Chang <toylet at changmw.com>:
>> run `ip addr` to see if ppp0 is now ppp1 following a reload or
>> something. Stranger things have happened. If you only have one pppX
>> connection, you could use: OUTIF=ppp+ and that would cover if the ppp
>> interface changed.
>
> Mr. Bandel to the rescue again! :)
>
> I can't use ppp+ as ppp0 is the ISP interface while ppp1 is for
> dialing-in via 56k modem.
>
> OK, I admit that I copied rule [A} from some iptables tutorial. The
> reason why those tutorials use "-o" in SNAT is beyond me.... :)
>
To specify which outgoing (-o) interface to use. Otherwise, the SNAT
rule could match even internally routed traffic, and that could be a
problem, or as in the case of my router, have several incoming (local)
and multiple outgoing (downstream-connected) interfaces. I must
specify which NAT rules apply to which interfaces and for what
traffic.
Ciao,
David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
Visit my blog at: http://www.pananix.com/cgi-bin/blosxom
More information about the Linux-users
mailing list