[ale] diald routing
David S. Jackson
dsj at sylvester.dsj.net
Fri Jan 24 17:23:51 EST 2003
I haven't used diald in ages, and I'm having trouble getting it to route
properly. I'm setting up a box for someone else to use as a dialout
server.
PPP seems to be setup properly on this new debian 3.0 box (diald
0.94-5); pon and poff seem to do the right things. But when I start up
diald it creates:
n:/etc/diald# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
127.0.0.4 0.0.0.0 255.255.255.255 UH 0 0 0 sl0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 sl0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 sl0
And then when I bring up the ppp0 interface, I get:
puddin:/etc/diald# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
127.0.0.4 0.0.0.0 255.255.255.255 UH 0 0 0 sl0
209.165.105.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 sl0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 sl0
As you can see, the default route doesn't seem to get set properly. It
should be 0.0.0.0 209.165.105.2 255.255.255.255 UH 0 0 pp0 right?
Also, I thought the sl0 interface was supposed to be replaced altogether
by the ppp0 interface. Why is it still there?
The sl0 doesn't get set properly as the default route either. I have
the following in my diald.defaults (diald.options):
%%%%%%%%%%%%%%%%% SNIP %%%%%%%%%%%%%%%%%%
# /etc/diald/diald.defaults
#
# These settings are global to all diald settings, with any
# ppp configuration.
#
# Edit to match your set up.
#
# dsj
device /dev/ttyS1
# diald log file: do not change.
accounting-log /var/log/diald.log
# diald monitoring pipe: do not change.
fifo /var/run/diald.fifo
# This turns on full debugging.
debug 31
# We have PPP
mode ppp
#dsj
local 127.0.0.5
#dsj
remote 127.0.0.4
#dsj
netmask 255.255.255.0
# Comment out the next line if not a dynamic IP
dynamic
# If the connection gets broken from the ISP, redial only
# if there's outgoing traffic from our side.
two-way
# When the link's up, change routes to point to the real link
# instead of the proxy.
reroute
#dsj
defaultroute
#dsj
connect "/usr/bin/pon"
#connect "/etc/diald/connect"
disconnect "/usr/bin/poff"
# Use this script to run things just before the link goes down;
# for example, you can deregister a dynamic DNS name here.
#ip-goingdown /etc/diald/ip-goingdown
# These two scripts must be executable.
# (You might be better off using a script in /etc/ppp/ip-[up,down].d.)
ip-up /etc/ppp/ip-up
ip-down /etc/ppp/ip-down
# Do UUCP locking.
lock
# dsj
modem
crtscts
speed 115200
# Local tweaking
connect-timeout 90
dial-fail-limit 0
died-retry-count 0
# Dutch PTT timetable: same charge for 2.5 (peak) 5 (night) minutes.
#impulse 280,20
#restrict 08:00:00 18:00:00 1-5 * *
#impulse 130,20
# Filter settings
include /etc/diald/standard.filter
%%%%%%%%%%%%%%%%%%%%%%%%% SNIP %%%%%%%%%%%%%%%%%%
Any ideas on what the problem is and how to correct it?
--
David S. Jackson dsj at dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
We have met the enemy, and he is us.
-- Walt Kelly
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list