Hey,
I battled with this program for too long to get it working. This great software should have a simple to use GUI that is easy to configure and use your diald, just an idea... I agree with previous people stating that the documentation needs more effort for people new to Linux as with myself. So this is where I come in... I will be listing all the needed information for you to configure RHL 6.0 box for diald and IP Masquerading (refer to "troutman" for further information about this). My ISP uses PAP and I use the most basic connect script, and it works fine.
Most, if not all of my information is from http://www.troutman.org/linux/ (RHL 5.2) This site is great ! This site show's you step by step how to setup your network which includes diald, samba, etc. There are differences between 5.2 and 6.0 for configuring IP Masquerading as the 2.2.x kernels use ipchains, etc....
You will have to build your kernel to enable support for IP Forwarding
/ Firewall / IP Masquerading, refer to "troutman" for the step-by-step.
After you have compiled your kernel, install the appropriate diald
(0.16.5a) and ipfwadm (2.3.0) RPM's. For instructions on how to install
and obtain these RPM files, goto the "troutman" site.
So for the configuration files..., copy / paste / edit / save the following files to the stated path:
/etc/diald/diald.conf:
debug 77
accounting-log /var/log/diald.log
speed 115200
device /dev/modem
modem
lock
crtscts
fifo /etc/diald/diald.ctl
pppd-options name <your internet account> noauth noipdefault
connect 'chat -v "" atdt<isp-tel-#> "CONNECT"'
mode ppp
local 192.168.0.1
remote 192.168.0.2
two-way
dynamic
defaultroute
proxyarp
include /etc/diald/standard.filter
up-delay 5
redial-timeout 10
Notes:
For simplicity... use ttyS0 for com1, S1 for 2, etc in "device" line
in your diald.conf ie: device /dev/ttyS1. Replace
< your internet
account > and <isp-tel-#> with your ISP's dialup number.
Don't use < > as they are just a marker for where your input is needed.
We
are going to use 192.168.x.x for diald and 10.x.x.x for your LAN. Make
absolutely sure that you change all of your boxes (computers) to have their
own unique ip address. IE: Linux Box is 10.0.0.1 and Windoze box #1 is
10.0.0.2, # 2 is 10.0.0.3, you get the point right? Copy the standard.filter
and diald.ctl files listed to the /etc/diald directory or change the path(s)
in the diald.conf to where your files are located. The type the following
command: cd /etc ; ln -s diald/diald.conf diald.conf.
Leave your /etc/ppp/options file blank or have everything commented by
using " # ". If you need to add more options, append them to the " pppd-options
name <your internet account> noauth noipdefault " line. Make sure there
is a space between each pppd option stated, refer to diald man for which
pppd options NOT to use with diald.
/etc/ppp/pap-secrets:
# Secrets for authentication using PAP
# client server secret IP addresses
<your internet account>
* <your password>
Append the following in the " /etc/rc.d/rc.local " file:
# this is the adapter that will be masqued
echo "ip_masq 10.0.0.1"
# this verifies ipforwarding is on
echo "1" > /proc/sys/net/ipv4/ip_forward
# checks module dependency
/sbin/depmod -a
# adds ftp & irc ability
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_masq_irc.o
# by default, deny forwarded packets
/sbin/ipfwadm-wrapper -F -p deny
#forward all from ethernet side
/sbin/ipfwadm-wrapper -F -a m -S 10.0.0.0/24
-D 0.0.0.0/0
# The following statement sets the address of
the ethernet card. If you have
# more than one card, you could set them all
here.
/sbin/ifconfig eth0 10.0.0.1 netmask 255.255.255.0
broadcast 10.0.0.255
# This statement sets the proper route for the
card. Additional routes could be set here as well.
# There are cleaner ways to do this, but this
surely gets the job done.
/sbin/route add -n 10.0.0.0 gw 10.0.0.1
First, make sure all connected LAN hosts are entered into Linux.
/etc/hosts
# IPADDR host.domain.com nickname
127.0.0.1 <localhost localhost.localdomain>
10.0.0.1 <yourlinuxhostname.yourdomainname.com
yourlinuxhostname>
10.0.0.2 <windozehostname.yourdomainname.com
windozehostname>
/etc/resolve.conf:
search <yourdomainname.com yourisp.com>
nameserver 10.0.0.1
# My ISP is IBM so their info is as follows...
nameserver <165.87.194.244>
nameserver <165.87.201.244>
Now back to the Windoze workstations....
After entering appropriate ip number...
Gateway = 10.0.0.1
Enable DNS = yes... enter appropriate info for
each field.
This should get you up and running. I am now working with the filter options for diald... if anyone has a good script... please post it.
Because I'm not fully perfect yet ;)... let me
know if there is an error or if any improvements can be made on the above
information. It would be nice if this info was polished and ready to consume
for New Linux Users to Diald... as it makes the learning curve, etc, more
enjoyable.
