You are not logged in.

#1 2013-08-11 11:55:59

leetom
Member
Registered: 2013-05-04
Posts: 2

DNS error when route all Internet traffic through VPN

I've created VPN connection with pptpd. The server is centos and client is archlinux.
The connection can be successfully created, but I cannot access a website using domain name. But it's OK when using ip address.
There's some posts said I should add iptables rules on the server to allow the traffic to 53 port. But it doesn't work even after I disabled iptables on centos.
I enabled usepeerdns, and I can see that the client did get the dns configured on the server side.

MPPE 128-bit stateless compression enabled
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 222.29.157.40> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 192.168.92.1>]
sent [IPCP ConfAck id=0x1 <addr 192.168.92.1>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 222.29.157.40> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 192.168.92.11> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
sent [IPCP ConfReq id=0x3 <addr 192.168.92.11> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
rcvd [IPCP ConfAck id=0x3 <addr 192.168.92.11> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
Cannot determine ethernet address for proxy ARP
local  IP address 192.168.92.11
remote IP address 192.168.92.1
primary   DNS address 8.8.8.8
secondary DNS address 8.8.4.4
Script /etc/ppp/ip-up started (pid 6672)
Script /etc/ppp/ip-up finished (pid 6672), status = 0x2

But on the client side, the dns is still the original one. I don't really understand

/usr/bin/resolvconf -a ${IFNAME} </etc/ppp/resolv.conf

this line in /etc/ppp/ip-up.d/00-dns.sh. Is there a specific DNS configuration for each interface? Then what's the meaning of /etc/resolve.conf ?

I use

 ip route add default via 192.168.92.1 

to route all traffic. I'm not sure if I should use client ip 192.168.92.11 or the server side  one "192.168.92.1". I've tried both, but none of them works.

Many thanks for any information.

BTW, I can use the VPN connection on windows, and on ubuntu, it's just OK after I added with network-manager.

Last edited by leetom (2013-08-11 11:58:43)

Offline

Board footer

Powered by FluxBB