Please help. I am running SuSE 6.3 and can't get wvdial.dod to work. If I start wvdial it connects fine, but if I start wvdial.dod and try to connect nothing happens. Where can I start checking ? Thanks John Charls -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
John - Where did you get the wvdial.dod script? The script from the english support database doesn't work. I copied the one from the german support page and have been using it successfully for a couple of months. I can email my copy later if that would help. Harry On Thu, 30 Mar 2000, John Charls wrote:
Please help.
I am running SuSE 6.3 and can't get wvdial.dod to work. If I start wvdial it connects fine, but if I start wvdial.dod and try to connect nothing happens. Where can I start checking ?
Thanks
John Charls
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Please help.
I'll take a break from my please help request and try to help you with yours. :-) I have wvdial.dod working perfectly with wvdial. First, please execute the command "rpm -q wvdial" for me. You need to be running version 1.4 or later. If you're not, please get the latest version from a SuSE ftp site near you. Here's one site I'm fond of, complete with the link to the rpm you'd need: ftp://ftp.twoguys.org/SuSE/current/suse/n1/wvdial.rpm Next, compare your /etc/wvdial.conf with mine. You can NOT have any sections in it for wvdial.dod to work properly. I don't know why this is, it just is. I ran into this problem myself. = = = cut here - begin /etc/wvdial.conf - cut here = = = [Dialer Defaults] Modem = /dev/modem Baud = 57600 Init1 = ATZ Init2 = AT M0 L0 Q0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 Area Code = Phone = 5551212 Username = suse Password = suse Dial Command = ATDT Stupid Mode = 1 New PPPD = 1 = = = cut here - end /etc/wvdial.conf - cut here = = = Obviously I changed the phone number, username and password from their real values. :-) Next, let's look at the /sbin/init.d/wvdial.dod file. Here's mine, and I'm hoping that wordwrap won't bite you. If it does, let me know and I'll file attach it over to you. = = = cut here - begin /sbin/init.d/wvdial.dod - cut here = = = #! /bin/bash # # Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. All rights reserved. # # # parameters # start section section section # restart section section section # start or restart the daemon with parameters found in /etc/wvdial.conf # section is the name of a section in the /etc/wvdial.conf file # (see man wvdial) # stop # stop the pppd # hangup # hang up the telephone line # additional Parameters in /etc/wvdial.conf could be # Idle: sets the idle-time for waiting before hang up (default 300 seconds - 5 minutes) # Remote IP: remote IP-address (default 192.168.99.99) # Local IP: local IP-address (default 192.168.99.1) # Defaultroute: no: pppd will not set the default route to the remote ip # (default yes) function log() { # logs the messages to system log HEAD=$0[$$] echo $MESSAGE logger -t $HEAD "$MESSAGE" } function setpppdparam() { # time to sleep for pppd to come up WAITFORPPPD=2 CONFFILE="/etc/wvdial.conf" TMPFILE="/tmp/wvdial.dod.tmp" # extract subsection cat /etc/wvdial.conf | sed -n "/Dialer.*$SECTION/{:x;p;n;/Dialer/q;bx}" > $TMPFILE VALUE=`cat $TMPFILE | grep "Modem" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Modem=$VALUE; fi VALUE=`cat $TMPFILE | grep "Baud" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Baud=$VALUE; fi VALUE=`cat $TMPFILE | grep "Username" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Username=$VALUE; fi VALUE=`cat $TMPFILE | grep "Remote IP" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Remote_IP=$VALUE; fi VALUE=`cat $TMPFILE | grep "Local IP" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Local_IP=$VALUE; fi VALUE=`cat $TMPFILE | grep "Idle" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Idle=$VALUE; fi VALUE=`cat $TMPFILE | grep "Defaultroute" | cut -f2 -d"="` if [ X$VALUE = XNo -o X$VALUE = XNO -o X$VALUE = Xno ]; \ then DEFAULTROUTE="nodefaultroute"; fi rm -f $TMPFILE } function killpppd() { if [ -e $PIDFILE ]; then MESSAGE="killing pppd process " PID=`cat $PIDFILE` MESSAGE=$MESSAGE"PID=$PID" log kill -15 $PID 2>/dev/null #kill -9 $PID 2>/dev/null rm $PIDFILE fi } function startpppd() { # set defaults, no defaults for # Username, Modem, Baud Local_IP="192.168.99.1" Remote_IP="192.168.99.99" Idle=300 DEFAULTROUTE="defaultroute" # get params from section "Dialer Default" SECTION=Defaults setpppdparam # parse given section ([Dailer xxx]) parameters while [ ! -z $1 ]; do SECTION=$1 setpppdparam shift done # start pppd in demand mode PPPPDPARAMS="$Local_IP:$Remote_IP $Modem $Baud modem crtscts $DEFAULTROUTE -detach user $Username ipcp-accept-local ipcp-accept-remote call wvdial demand idle $Idle" MESSAGE="starting pppd $PPPPDPARAMS connect \"/usr/bin/wvdial --chat $WVPARAMS\"... " pppd $PPPPDPARAMS connect "/usr/bin/wvdial --chat $WVPARAMS" &>/dev/null & PPPDPID=$! echo $PPPDPID > $PIDFILE MESSAGE=$MESSAGE"PID=$PPPDPID" log # setting dynamic - parameter for ppp - device # waiting pppd to come up sleep $WAITFORPPPD ls /var/run/ppp?.pid | while read PIDFILE ; do if [ X$PPPDPID = X`cat $PIDFILE` ]; then DEVICE=`echo $PIDFILE | cut -c 10-13` MESSAGE="setting $DEVICE dynamic " ifconfig $DEVICE dynamic ifconfig $DEVICE | grep "DYNAMIC" -q RES=$? if [ $RES -gt 0 ]; then MESSAGE=$MESSAGE"failed" exit 1 fi MESSAGE=$MESSAGE"done" log fi done exit 0 } # main LINKNAME=dod PIDFILE=/var/run/pppd.$LINKNAME.pid ACTION=$1 shift WVPARAMS=$@ case "$ACTION" in start) # make sure to start even when uncleanly stopped killpppd netstat --inet -p startpppd $@ netstat --inet -p ;; stop) # handle stop killpppd exit 0 ;; reload|restart) killpppd startpppd $@ ;; hangup) if [ -e $PIDFILE ]; then MESSAGE="hangup pppd connection " PID=`cat $PIDFILE` MESSAGE=$MESSAGE"PID=$PID" log kill -SIGHUP $PID #2>/dev/null exit 0 fi MESSAGE="no pppd connection" log exit 1 ;; # status) # ;; *) echo "Usage: /sbin/init.d/wvdial.dod {start [section [section [..]]]|hangup|stop|restart}" exit 1 ;; esac = = = cut here - end /sbin/init.d/wvdial.dod - cut here = = = Lastly, I'm also running Marc Heuse's SuSEfirewall 2.1 package, so there's an added requirement if you're doing that as well. In /etc/ppp/ip-up, you need to place the statement "/sbin/init.d/firewall start" as the second line in the script. Let me know if this helped you any. Argentium -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Thankyou very much for your help, it works. Regards John Charls ----- Original Message ----- From: Argentium G. Tiger <agtiger@coolnet.net> To: <suse-linux-e@suse.com> Cc: John Charls <john@microsound.co.za> Sent: Thursday, March 30, 2000 7:21 PM Subject: Re: [SLE] re: wvdial
Please help.
I'll take a break from my please help request and try to help you with yours. :-) I have wvdial.dod working perfectly with wvdial.
First, please execute the command "rpm -q wvdial" for me. You need to be running version 1.4 or later. If you're not, please get the latest version from a SuSE ftp site near you.
Here's one site I'm fond of, complete with the link to the rpm you'd need:
ftp://ftp.twoguys.org/SuSE/current/suse/n1/wvdial.rpm
Next, compare your /etc/wvdial.conf with mine. You can NOT have any sections in it for wvdial.dod to work properly. I don't know why this is, it just is. I ran into this problem myself.
= = = cut here - begin /etc/wvdial.conf - cut here = = = [Dialer Defaults] Modem = /dev/modem Baud = 57600 Init1 = ATZ Init2 = AT M0 L0 Q0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 Area Code = Phone = 5551212 Username = suse Password = suse Dial Command = ATDT Stupid Mode = 1 New PPPD = 1 = = = cut here - end /etc/wvdial.conf - cut here = = =
Obviously I changed the phone number, username and password from their real values. :-)
Next, let's look at the /sbin/init.d/wvdial.dod file. Here's mine, and I'm hoping that wordwrap won't bite you. If it does, let me know and I'll file attach it over to you.
= = = cut here - begin /sbin/init.d/wvdial.dod - cut here = = = #! /bin/bash # # Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. All rights reserved. # # # parameters # start section section section # restart section section section # start or restart the daemon with parameters found in /etc/wvdial.conf # section is the name of a section in the /etc/wvdial.conf file # (see man wvdial) # stop # stop the pppd # hangup # hang up the telephone line
# additional Parameters in /etc/wvdial.conf could be # Idle: sets the idle-time for waiting before hang up (default 300 seconds - 5 minutes) # Remote IP: remote IP-address (default 192.168.99.99) # Local IP: local IP-address (default 192.168.99.1) # Defaultroute: no: pppd will not set the default route to the remote ip # (default yes)
function log() { # logs the messages to system log HEAD=$0[$$] echo $MESSAGE logger -t $HEAD "$MESSAGE" }
function setpppdparam() { # time to sleep for pppd to come up WAITFORPPPD=2 CONFFILE="/etc/wvdial.conf" TMPFILE="/tmp/wvdial.dod.tmp" # extract subsection cat /etc/wvdial.conf | sed -n "/Dialer.*$SECTION/{:x;p;n;/Dialer/q;bx}" > $TMPFILE VALUE=`cat $TMPFILE | grep "Modem" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Modem=$VALUE; fi VALUE=`cat $TMPFILE | grep "Baud" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Baud=$VALUE; fi VALUE=`cat $TMPFILE | grep "Username" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Username=$VALUE; fi VALUE=`cat $TMPFILE | grep "Remote IP" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Remote_IP=$VALUE; fi VALUE=`cat $TMPFILE | grep "Local IP" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Local_IP=$VALUE; fi VALUE=`cat $TMPFILE | grep "Idle" | cut -f2 -d"="` if [ ! -z "$VALUE" ]; then Idle=$VALUE; fi VALUE=`cat $TMPFILE | grep "Defaultroute" | cut -f2 -d"="` if [ X$VALUE = XNo -o X$VALUE = XNO -o X$VALUE = Xno ]; \ then DEFAULTROUTE="nodefaultroute"; fi rm -f $TMPFILE }
function killpppd() { if [ -e $PIDFILE ]; then MESSAGE="killing pppd process " PID=`cat $PIDFILE` MESSAGE=$MESSAGE"PID=$PID" log kill -15 $PID 2>/dev/null #kill -9 $PID 2>/dev/null rm $PIDFILE fi }
function startpppd() { # set defaults, no defaults for # Username, Modem, Baud Local_IP="192.168.99.1" Remote_IP="192.168.99.99" Idle=300 DEFAULTROUTE="defaultroute"
# get params from section "Dialer Default" SECTION=Defaults setpppdparam
# parse given section ([Dailer xxx]) parameters while [ ! -z $1 ]; do SECTION=$1 setpppdparam shift done
# start pppd in demand mode PPPPDPARAMS="$Local_IP:$Remote_IP $Modem $Baud modem crtscts $DEFAULTROUTE -detach user $Username ipcp-accept-local ipcp-accept-remote call wvdial demand idle $Idle" MESSAGE="starting pppd $PPPPDPARAMS connect \"/usr/bin/wvdial --chat $WVPARAMS\"... " pppd $PPPPDPARAMS connect "/usr/bin/wvdial --chat $WVPARAMS" &>/dev/null & PPPDPID=$! echo $PPPDPID > $PIDFILE MESSAGE=$MESSAGE"PID=$PPPDPID" log # setting dynamic - parameter for ppp - device
# waiting pppd to come up sleep $WAITFORPPPD ls /var/run/ppp?.pid | while read PIDFILE ; do if [ X$PPPDPID = X`cat $PIDFILE` ]; then DEVICE=`echo $PIDFILE | cut -c 10-13` MESSAGE="setting $DEVICE dynamic " ifconfig $DEVICE dynamic ifconfig $DEVICE | grep "DYNAMIC" -q RES=$? if [ $RES -gt 0 ]; then MESSAGE=$MESSAGE"failed" exit 1 fi MESSAGE=$MESSAGE"done" log fi done exit 0 }
# main LINKNAME=dod PIDFILE=/var/run/pppd.$LINKNAME.pid ACTION=$1 shift WVPARAMS=$@
case "$ACTION" in start) # make sure to start even when uncleanly stopped killpppd netstat --inet -p startpppd $@ netstat --inet -p ;; stop) # handle stop killpppd exit 0 ;; reload|restart) killpppd startpppd $@ ;; hangup) if [ -e $PIDFILE ]; then MESSAGE="hangup pppd connection " PID=`cat $PIDFILE` MESSAGE=$MESSAGE"PID=$PID" log kill -SIGHUP $PID #2>/dev/null exit 0 fi MESSAGE="no pppd connection" log exit 1 ;; # status) # ;; *) echo "Usage: /sbin/init.d/wvdial.dod {start [section [section [..]]]|hangup|stop|restart}" exit 1 ;; esac = = = cut here - end /sbin/init.d/wvdial.dod - cut here = = =
Lastly, I'm also running Marc Heuse's SuSEfirewall 2.1 package, so there's an added requirement if you're doing that as well.
In /etc/ppp/ip-up, you need to place the statement "/sbin/init.d/firewall start" as the second line in the script.
Let me know if this helped you any.
Argentium
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
download the version from the GERMAN web page. I don't know what the difference is (didn't bother running diff over them) but the one from suse.de works. On Thu, 30 Mar 2000, John Charls wrote:
Please help.
I am running SuSE 6.3 and can't get wvdial.dod to work. If I start wvdial it connects fine, but if I start wvdial.dod and try to connect nothing happens. Where can I start checking ?
Thanks
John Charls
-- This sig brought to you by SuSE 6.3 and sendmail. Linux - you know it makes sense. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (4)
-
agtiger@coolnet.net
-
bc550@scn.org
-
john@microsound.co.za
-
wulfie@wulfric7.co.uk