FS#14269 - [wvdial] connects and gets IP, but not possible to ping other host

Attached to Project: Arch Linux
Opened by Florian Breitwieser (florianbw) - Thursday, 16 April 2009, 21:50 GMT
Last edited by Thomas Bächler (brain0) - Monday, 08 June 2009, 15:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Thomas Bächler (brain0)
Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Wvdial with correct wvdial.conf connects via ppp. The problem is, the DNS are specified in /etc/ppp/resolv.conf and not in /etc/resolv.conf where they should be.

* package version: x86_64, wvdial 1.60_2

Steps to reproduce:
wvdial (connect, ppp gets IP and connection information)
ping www.archlinux.org (fails)

Steps to fix:
cp /etc/ppp/resolv.conf /etc/resolv.conf

My suggestion:
Add changed ip-up and ip-down to PKG, or tell user what to do after installation.

Thanks!


/etc/ppp/ip-up:
#!/bin/sh
if [ -e /etc/ppp/resolv.conf ]; then
cp /etc/resolv.conf /etc/resolv.conf.pre-ppp
cp /etc/ppp/resolv.conf /etc/resolv.conf
fi
[ -e /var/run/nscd.pid ] && { /etc/rc.d/nscd restart || true ; }

/etc/ppp/ip-down:
#!/bin/sh
if [ -e /etc/resolv.conf.pre-ppp ]; then
mv /etc/resolv.conf.pre-ppp /etc/resolv.conf
fi
[ -e /var/run/nscd.pid ] && { /etc/rc.d/nscd restart || true ; }
This task depends upon

Closed by  Thomas Bächler (brain0)
Monday, 08 June 2009, 15:21 GMT
Reason for closing:  Fixed
Comment by Andrea Scarpino (BaSh) - Friday, 17 April 2009, 00:37 GMT
uhm..the problem is wvdial wrote DNS configuration on /etc/ppp/resolv.conf while reading /etc/resolv.conf

I'll looking for the better solution
Comment by Thomas Bächler (brain0) - Friday, 17 April 2009, 09:27 GMT
We should have proper ip-up and ip-down scripts to deal with DNS. I know this annoyed me a few years back when I used pppd to go online, but then I just wrote the scripts myself.
Comment by Florian Breitwieser (florianbw) - Friday, 17 April 2009, 13:44 GMT
Thanks for the fast answer! Attached are the scripts from Ubuntu in /etc/ppp/ip-up.d and ip-down.d.

PPP/wvdial works out of the box in Ubuntu, took me a while to figure out why it wouldn't in Arch (and Fedora).
Comment by Thomas Bächler (brain0) - Friday, 17 April 2009, 14:04 GMT
That seems like too much stuff being done, I have something much simpler in mind. I may still have my self-made scripts on another computer (in an old 32 bit installation that hopefully survived several hard disk changes), so I'll post them to our subversion later.
Comment by Thomas Bächler (brain0) - Saturday, 16 May 2009, 01:40 GMT
ppp 2.4.4-8 from testing should fix this.
Comment by Thomas Bächler (brain0) - Saturday, 06 June 2009, 17:35 GMT
Ping? Does it work now? It should be fixed (package is in core by now).
Comment by Florian Breitwieser (florianbw) - Monday, 08 June 2009, 09:50 GMT
Thanks Thomas, it works!

Gerardo, I do not think it should be moved out of core, since for some people (eg me) it is necessary to be able to connect to the internet.

Loading...