Re: Linux as a Server

David Fries (dfries@mail.win.org)
Sat, 1 Aug 1998 13:32:30 -0500


On Sat, Aug 01, 1998 at 07:18:15PM +0200, Thorsten J. Lorenz wrote:
> Hello,
>
> i am using Linux on my stationary PC and connect to it using my
> Notebook running Win95 (Sorry, but it is required :(). Now I want
> to connect to the Internet thru Linux (from the Win95 Notebook), but
> my ISP does not allow me to run a net. I could use masquerading, but
> as i understand, i can only use some services that way (ftp, e.g.)
> and Web-surfing is not include. Any suggestions how i could still do
> it. (Connecting the ISP with Linux works fine, no problems there).
>
> I would also appreciate to get my mail thru Linux. Where do i find
> information on how to set up a POP3-server. Will this work when my
> provider allows only client access or can i hide that, too.
>
> Thanx in advance ...
>
> Thorsten Lorenz

Assuming you are connecting your laptop and linux computer with some kind
of ip protocol, (ethernet, ppp), I think you need to take another look at
masquerading. Masquerading will work for most things. There are kernel
modules that must be loaded for some applications. The ones that need it,
are the applications that must negotiate a different tcp port like ftp for
data and ones that expect your local application to be running on a
specific port like quake. For the later 2.1 series kernels cuseeme, irc,
raudio, ftp, quake, vdolive, are supported. I don't think the 2.0 series
has all of them. Most of the other programs you use, telnet, web surfing,
pop3, imap(another form of getting mail), smtp (for sending mail), ICQ, AOL
Instant Messenger, do not require a module specifically for them, you just
need your kernel setup for masquerading and tell it what to masquerade.

To setup masquerading the win95 laptop must be pointing to the linux
computer as a gateway. For later 2.1 series kernels use ipchains to setup
the rules with something like,
ipchains -A input -j ACCEPT -p all -s 0/0 -d 0/0
ipchains -A forward -j MASQ -s 192.168.0.0/24 -d 0/0
ipchains -A output -j ACCEPT -p all -s 0/0 -d 0/0

I'm not sure if the first and last are required, but the middle is.
This is also required on the 2.1 series kernels.
if [ -e /proc/sys/net/ipv4/ip_forward ] ; then
echo "1" > /proc/sys/net/ipv4/ip_forward ; fi

For the 2.0 series use,
ipfwadm -F -a m -P all -S 192.168.0.0/24 -D 0/0

We use it at work for our win95 computers, and the good thing is you don't
even have to worry about setting proxy settings.

I would say to take another look at masquerading, it just might be a much
simplier solution than you think.

-- 
		+---------------------------------+
		|      David Fries                |
		|      dfries@mail.win.org        |
		+---------------------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu