Re: ppp sharing via NAT



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

,--- Unruh writes:
| Fruehwirth@xxxxxxxxx writes:

|| Hello,

|| I want to use NAT to share a ppp Connection.


|| PC1 and PC2 are within a private Subnet connected via 4-Port Hub
|| (integrated within DSL-Modem).

|| PC1 is connected to DSL-Modem via eth0 and establishes PPP-
|| Connection.

|| PC2 is connected to private Subnet via eth0.

|| Is it possible to route Internet Packets from PC2 to PC1 (by setting
|| PC1 as Standard Gateway),
|| PC2 does NAT and forwards packets via ppp?

Did You mean to say, "PC1 does NAT and forwards packets via ppp?", hmm... ?

| Sure. Just do it.
| Make sure forwarding is enabled on PC1. Since you are already connected,
| the router itself is probably doing nat, so there is no need for you to do
| an extra nat ( in fact it would confuse everything).

I don't think in this case, DSL-Modem is acting as router. It is
acting as a bridge. So, OP has to masquerade on ppp interface:

# iptables -t nat -A POSTROUTING -o ppp+ -j MASQUERADE

TIA
- --
Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHc97PHy+EEHYuXnQRAjn7AJ97z+CxB8QqVz5CzrzWlp+wrOr2ywCgkKGk
DlOlBlKSg+BLZ8joDc6ajOY=
=Gbk5
-----END PGP SIGNATURE-----
.



Relevant Pages

  • ppp sharing via NAT
    ... I want to use NAT to share a ppp Connection. ... PC1 and PC2 are within a private Subnet connected via 4-Port Hub ... PC1 is connected to DSL-Modem via eth0 and establishes PPP- ...
    (comp.os.linux.networking)
  • Re: Processs PreciseMail AntiSpam Gateway - any experience so far ?
    ... Client sending system ... >> ISP using dynamic NAT with port overloading. ... >> 10.11.12.1 is the clients real address and it opens a connection from its port ...
    (comp.os.vms)
  • Re: WinRoute Pro
    ... If a RST is sent to a TCP protocol host, ... 1/ Check the NAT table. ... 2/ Open a TCP connection to a host using a port tool. ... Winroute's logs are no substitute for a decent packet sniffer. ...
    (comp.security.firewalls)
  • Re: Establish external trust over a NAT device
    ... suggesting hardware over Windows built-in functionality for a VPN solution. ... even a fairly cheap router will likely have much better throughput ... L2TP and routing over it with or without NAT on that connection. ...
    (microsoft.public.win2000.active_directory)
  • Re: NAT and keepaliveopen connection over TCP
    ... sent after 10 minutes of inactivity on the TCP connection. ... There's no minimum set time how long a NAT router should ... time-out inactive connections at the server. ...
    (microsoft.public.win32.programmer.networks)