![]() |
pppd on maemo help
So ive been trying to use pppd in n900 over bluetooth dun (with kp53) to connect to internet via nokia 2690 phone with instructions from Matans thread and googling a lot of sites. I finally made it work after getting the right chat script and it was working just fine... until for some reason while conected via pppd my phone froze and had to restart it. After that it never worked fully again, fully because i can ping/access any site via ip but in not able to visit domains, also im unable to ping my peer it results in 100% packet loss, i can ping nameservers successfully. I think its probably a dns or route problem, what do you guys think.
My chat script: Code:
ABORT 'BUSY' Code:
#dump Code:
nameserver 127.0.0.1 Code:
abort on (BUSY) Code:
ppp0 Link encap:Point-to-Point Protocol Code:
Kernel IP routing table Code:
Kernel IP routing table |
Re: pppd on maemo help
there is no gateway set for the packets
i don't have 'replacedefaultroute' in my working config, but have 'nodefaultroute' :) It works on my config |
Re: pppd on maemo help
tried that already makes no diffrence, the strange thing is i can only ping/access sites ip's not domains(dns problem?), also im unable to ping my peer. Can you post /etc/resolv.conf , default one from your phone?
|
Re: pppd on maemo help
my /etc/resolv.conf is same as yours.
add the gateway manually then. Code:
ip route add default dev ppp0 |
Re: pppd on maemo help
ah .. so you can ping remote IPs? (i had not noticed that before)
your route is fine. actually i've just tested on mine, and yes, my previous comment regarding there being no gateway was incorrect. your route is correct. create a /var/run/resolv.conf file and add your desired DNS server, e.g. 8.8.8.8. You may have to stop and start dnsmasq afterwards |
Re: pppd on maemo help
Tried, still doesnt work, i no longer have any idea what is the problem here, i even built newer pppd from debian jessi, same problem. Is there any other way to use dun without pppd or rpppoe? wvdial does not works on fremantles glibc, wvstream gives some gettext assertion fail.
|
Re: pppd on maemo help
you can still ping remote IP addresses?
attach the contents of these files: Code:
/etc/resolv.conf |
Re: pppd on maemo help
yes i can ping remote ips. /etc/resolv.conf is in first post, i dont have /var/run/resolv.conf, ive tried copying /etc/resolv.conf to /var/run/ , coping /etc/ppp/resolv.conf to /var/run/, creating a resolv.conf with custom dns in /var/run/ with 8.8.8.8 as nameservers and restarting dnsmasq after that, that didnt work.
My /etc/dnsmasq.conf Code:
domain-needed |
Re: pppd on maemo help
You seem to have the correct files everywhere, and pinging remote IPs says you are online.
Maybe your provider enforces their own DNS servers (some do). Try to copy the dns servers that pppd receives (103.8.45.5/103.8.45.6), and put them in either /var/run/resolv.conf or /var/run/resolv.conf.ppp0 Also, just test if you can resolve domain names using dig or nslookup, e.g. Code:
dig @8.8.8.8 example.com |
Re: pppd on maemo help
It finally worked! adding dns manually to /var/run/resolv.conf didnt work so i added this:
Code:
echo nameserver $DNS1 > /var/run/resolv.conf Code:
echo nameserver $DNS1 > /var/run/resolv.conf.ppp0 EDIT:- Adding : Code:
local |
All times are GMT. The time now is 23:09. |
vBulletin® Version 3.8.8