I'll try to take a quick try at a howto. This assumes that your Linux and
Windows computers are connected with a TCP/IP class C network, 192.168.1., and
that is already working.

1) Download the diald '.rpm' package from "http://rpmfind.net".  Install it
as root like so:
        rpm -i diald.rpm

2) edit the "/etc/diald.conf" file to look something like this, without the
comments (of course):

mode ppp                             <-- We will be using a ppp connection
connect /etc/diald/connect     <-- This is the chat script to connect to the ISP
device /dev/modem               <-- Serial device your modem is attached to.
speed 115200                       <-- Max speed serial port and modem can use.
modem                                  <-- Treat the serial device as a modem
crtscts                    <-- Specifies hardware handshaking with modem
local 192.168.0.1                  <-- Address of dummy network interface. 
remote 192.168.0.2         <-- Address of dummy gateway.
-buffer-packets                   <-- Switch off packet buffering
buffer_size 0                         <-- Really try to switch it off
defaultroute                          <-- Dummy interface will be default route
fifo /etc/diald/diald.ctl           <-- fifo for communication with diald daemon
include /usr/lib/diald/standard.filter  <-- Packet monitoring specification file

Notes: Make sure the dummy network interface is NOT part of your local network.
For example,  my local network is a class C network (netmask 255.255.255.0)
addresses 192.168.1.0 through 192.168.1.254.

If you are running Redhat 6.2, add "noauth" to the "/etc/ppp/options" file.
Diald will NOT work if you don't do this.

3) Next you will need to use IP chains to set up IP masqeurading.  Here is my
"/etc/sysconfig/ipchains" file:

:input ACCEPT
:forward DENY
:output ACCEPT
:acctin -
:acctout -
:acctboth -
:inp -
:out -
:fwd -
:IpFwAdM! -
-A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j ACCEPT -f
-A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j acctin
-A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j acctboth
-A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j inp
-A forward -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j ACCEPT -f
-A forward -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j fwd
-A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j ACCEPT -f
-A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j acctout
-A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j acctboth
-A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j out
-A fwd -s 192.168.1.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -j MASQ -m 10001
-A IpFwAdM! -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -m 10000
-A IpFwAdM! -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -m 10002

Start IPchains:

        /etc/rc.d/init.d/ipchains start

4) Edit your "/etc/diald/connect" script and supply your login information. 
Test it by simply invoking it from a command shell:

        sh /etc/diald/connect

5) Start diald:

        /etc/rc.d/init.d/diald start

Verify that "diald" is working by checking for the dummy interface:

        /sbin/ifconfig

If it's there, then try to ping an address outside of your local network, i.e.

        ping 208.211.173.30
This should cause "diald" to connect to your ISP, and start pppd.

------------- Performance tips -----------------------------

Run a local caching proxy on the Linux computer like "squid", and point all
your browsers to it.

Set up a caching DNS server on the LInux computer and point your clients to it. 
This will reduce the DNS lookup traffic over the dialup link.

Edit the "/usr/lib/diald/standard.filter" file to change the timeouts to
something like 600 seconds.  In particular, the default timeout of 120 seconds
for tcp.www is not enough time to read a news page before diald closes the link.


On Sun, 06 Aug 2000, you wrote:
> Okay List, no activity for a while, I'll add some.....
> 
> I have two computers, one operates as a Linux server, the other as a Windows
> workstation, I want to move the modem from the Windows box to the Linux box,
> mostly to see if it can be done.  I would like to move more and more
> internet to the Linux box, like operating it as a mail server and news
> server, as time goes on.
> 
> Anyone know of a simple step by step guide on how to set this up, I am sure
> such a pass through connection is a very common occurance.  If not, anyone
> want to write one, sort of a daild for morons.  I have noticed that most
> HOWTOs are either very specific or very old....  I don't really have much
> time to get this working, I would have to give up, if it can't be done in a
> couple of hours.
> 
> Paul
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]
-- 
=============================================================
John D. Robertson, Computer / Engineering Consultant
Robertson & Robertson Consultants, Inc.
3637 West Georgia Rd.
Pelzer, SC  29669

Phone: (864) 243-2436
  Fax: (864) 243-3023
Email: [EMAIL PROTECTED]
  WWW: http://www.rrci.com

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to