[3095] in linux-net channel archive
Proxy or Masquerade or what?
daemon@ATHENA.MIT.EDU (Harvey J. Stein)
Mon Jun 3 20:32:40 1996
Date: Mon, 3 Jun 1996 18:50:27 +0200
From: "Harvey J. Stein" <abel@netvision.net.il>
To: kambiz@malibu.concord.ca.us
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <KAMBIZ.96Jun03034737@booboo.malibu.Concord.CA.US>
Kambiz Aghaiepour writes:
> I have a linux system connected to the internet via local ISP. I have
> been assigned only a single IP address and I would like to be able to
> have my friends make PPP connections to my system and see the internet
> from their own machines using my linux box as a gateway to the internet
> (I have an ISDN connection).
>
> I know I can make up the IP addresses for the PPP connection (Isn't
> there a class C reserved for internal use written up in the RFCs?) but
> how would the reply packets be routed to my PPP peer if the source
> address is coming from an IP that is meant for internal use? Do I need
> to use proxy services, masquerading or what?
Yes. That's exactly what you need (unless you do some sort of port
mapping which I've never understood). The more powerful technique
would be to use ip masqerading. Otherwise you could use proxy servers
& use SOCKS.
If you use SOCKS, the friends that connect to your machine would have
to use socksified clients. This won't be a problem with netscape,
since it already supports socks. For other services, they'd have to
get socksified clients, or (if they're using MS Windoze) a socksified
winsock.
For socks, you'll can start by looking at ftp.nec.com, in directory
/pub/security/socks.cstc.
Good luck,
Dr. Harvey J. Stein
Berger Financial Research
abel@netvision.net.il