[Pkg-utopia-maintainers] Bug#820891: wrong servers for dns=dnsmasq and VPN

Matus UHLAR - fantomas uhlar at fantomas.sk
Wed Apr 13 11:29:52 UTC 2016


Package: network-manager
Version: 0.9.10.0-7

when using "dns=dnsmasq" with VPN connection, the dnsmasq is pointed to
VPN-provided DNS servers VPN-provided domain and reverse IPs, even if all
traffic is directed to VPN (edited):

environment in if-up.d scripts:

VPN_IP4_ADDRESS_0=10.b.c.d/32 ga.te.wa.y
VPN_IP4_DOMAINS=vpn.domain
VPN_IP4_NAMESERVERS=10.x.x.x 10.y.y.y
VPN_IP4_NUM_ADDRESSES=1
VPN_IP4_NUM_ROUTES=0
VPN_IP_IFACE=vpn0

dnsmasq configuration:

server=/vpn.domain/10.x.x.x
server=/10.in-addr.arpa/10.x.x.x
server=/vpn.domain/10.y.y.y
server=/10.in-addr.arpa/10.y.y.y
server=192.168.66.1

solution:
when all traffic is routed to VPN connection (VPN_IP4_NUM_ROUTES=0), all DNS
should be pointed to VPN nameservers, since original DNS servers may not be
reachable through the VPN connection:

server=10.x.x.x
server=10.y.y.y

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Your mouse has moved. Windows NT will now restart for changes to take
to take effect. [OK]



More information about the Pkg-utopia-maintainers mailing list