Joerg Morbitzer wrote:
> JRRadtke wrote:
>
>
>>Im a bit new to Linux so this may be a very elementary task.
>>I have a RH 7.2 box with the latest Samba software installed.
>>The Linux box acts as a file server for Windows workstations.
>>Everything works well.
>>
>>Now I need to know if there is a way to have the windows workstations
>>connect to the internet (via dial up connection) by going through the
>>Linux box.
>>
>>Since the modem will be connected to the Linux box, and all the work
>>stations are connected to the Linux box by a Linksys 10/100 switch,
>>the linux box has to know when a Windows workstation wants to make the
>>dial up connection and then make the actual connection.
>>
>>I've done this with two Windows machines using WinProxy, but don't
>>know how to do it on the Linux box.
>>
>>Can it be done? (I gotta believe so)
>>Can it be done with the RH 7.2 distribution software?
>>
>>Any suggestions on where to start will be greatly appreciated.
>>
>>JR
>
>
> Of course it can be donne. If you want to access the internet with ftp and
> http protocol (for downloading software and surfing the internet) the
> easiest way would be to install a proxy server, squid would be the perfect
> choice. If you also want to run other software like P2P or whatever you
> should try to setup your Linux box as a masquerading router. For general
> information concerning Linux and masquerading check out this page:
>
> http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/
>
> And here is a example page describing masquerading with RH 6.X:
>
> http://linux-rep.fnal.gov/howtos/min...i-HOWTO-3.html
>
> Kind regards, Joerg.
>
I am using RH 7.2 (with a slightly later kernel) as a router firewall
and I run a mixed net of Linux and PCs. You do not need to install a
proxy server because the kernel can do that for you.
(IP-Masquerade-HOWTO). I am not sure if the kernel comes with IP
masquading compiled in as default on RH7.2. May be someone else
in this group can answer that question.
That you already have samba working means that you are 3/4 of the way
there.
On the PCs set them up so that the default route is via the IP number
of the Linux Box.
On the linux Box you will need to set up a modem. This can be tricky
if you do not use an external modem. I have been using a
pci "Lucent Microelectronics 56k WinModem" with ltmodem-8.26a9.tar.gz
software. It has been working at 50K+ every time.
http://www.linmodems.org/
Most of the ppp setup can be done via the Gnome Redhat menu interface:
foot->programs->internet
I found that their fire wall section program->system->firewall was not
upto much and had to code that by hand.
Also I can not remember whether the pppd came with the active-filter
option compiled in. Maybe someone else does.
You need to set the active filter to ignore some packets otherwise the
ppp connection will not drop. eg in /etc/active/options:
active-filter 'outbound and not ((tcp[13] & 4 !=0) or (icmp[0] = 3) or
(icmp[0] = 0))'
Because I am am old UNIX hacker I tend to edit the files directly
and not use the gui interfaces. If you need copies of any files
eg a fire wall example, then email the spam catcher address at
the top (please put some heading other than "busty blond" or
"I am a scam artist please help me transfer money" :-)