Networking Forums

Networking Forums > Computer Networking > Linux Networking > ppp sharing via NAT

Reply
Thread Tools Display Modes

ppp sharing via NAT

 
 
Fruehwirth@gmail.com
Guest
Posts: n/a

 
      12-25-2007, 07:06 PM
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?
 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      12-25-2007, 10:01 PM
(E-Mail Removed) 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?


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).

 
Reply With Quote
 
Ashish Shukla आशीष शुक्ल
Guest
Posts: n/a

 
      12-27-2007, 04:20 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

,--- Unruh writes:
| (E-Mail Removed) 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-----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 desktop connected and sharing, 1 laptop connect but not sharing dtappen@rogers.com Wireless Networks 0 09-02-2005 01:58 PM
Setup file sharing and periphial sharing benjyrama Wireless Networks 1 03-19-2005 05:20 PM
File Sharing Intermittent but Pings fine and iTunes Sharing works Chris Clark Wireless Networks 1 12-05-2004 12:07 PM
File Sharing and printer sharing Dellboi Broadband Hardware 1 06-19-2004 02:15 PM
sharing Sam Broadband Hardware 1 05-21-2004 06:22 PM



1 2 3 4 5 6 7 8 9 10 11