I have a Ubiquiti RS Pro running KAMIKAZE (bleeding edge, r23118). The router works correctly, including
DNS name resolution, except as follows:
In some cases I need to connect the router thru an OpenVPN tunnel to a service provider with a VPN server, and
when I invoke the VPN connection, name resolution stops working. Ie thereafter I can access the internet from the
router by numeric address but not by name.
When connected thru my ISP and further thru OpenVPN, my hookup is as follows, and my ifconfig is below
PC clients/LAN -> OpenWRT Router -> pppoe thru ISP's modem -> internet
.... AND ..... OpenVPN client tunnel from OpenWRT Router to service provider's VPN server
I note I am new to OpenVPN and I have had difficulties configuring name resolution in my OpenWRT router, even
prior to getting the OpenVPN tunnel working. Per my "find" command below, I see seven different resolv.conf files
on my router, I'm thoroughly confused as to how to configure any or all of them, and it's possible in my attempts
I've screwed up the name resolution/resolv.conf files/links.
What's the right way to set up name resolution on the OpenWRT router in this situation?
root@OpenWrt:~# find / -name resolv.conf
/etc/ppp/resolv.conf
/etc/resolv.conf
/overlay/etc/ppp/resolv.conf
/overlay/etc/resolv.conf
/rom/etc/ppp/resolv.conf
/rom/etc/resolv.conf
/tmp/resolv.conf
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr 00:15:6D:56:11:4D
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::6488:beff:fed1:924b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2073 errors:0 dropped:0 overruns:0 frame:0
TX packets:1612 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:338854 (330.9 KiB) TX bytes:616677 (602.2 KiB)
br-wan Link encap:Ethernet HWaddr 00:15:6D:C4:27:09
inet6 addr: fe80::b4d8:4bff:fe80:c98a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2877 errors:0 dropped:0 overruns:0 frame:0
TX packets:2884 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:646006 (630.8 KiB) TX bytes:377479 (368.6 KiB)
eth0 Link encap:Ethernet HWaddr 00:15:6D:C4:27:09
inet6 addr: fe80::215:6dff:fec4:2709/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2877 errors:0 dropped:0 overruns:0 frame:0
TX packets:2890 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:686284 (670.1 KiB) TX bytes:377999 (369.1 KiB)
Interrupt:4
eth1 Link encap:Ethernet HWaddr 00:15:6D:C4:27:0A
inet6 addr: fe80::215:6dff:fec4:270a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2074 errors:0 dropped:0 overruns:0 frame:0
TX packets:1621 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:368004 (359.3 KiB) TX bytes:617293 (602.8 KiB)
Interrupt:5
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:574 (574.0 B) TX bytes:574 (574.0 B)
mon.wlan0 Link encap:UNSPEC HWaddr 00-15-6D-56-11-4D-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2270 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:136848 (133.6 KiB) TX bytes:0 (0.0 B)
pppoe-wan Link encap:Point-to-Point Protocol
inet addr:189.163.77.47 P-t-P:200.38.193.226 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:1419 errors:0 dropped:0 overruns:0 frame:0
TX packets:1419 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:567488 (554.1 KiB) TX bytes:301624 (294.5 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.142 P-t-P:10.8.0.141 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:232 (232.0 B) TX bytes:41006 (40.0 KiB)
wlan0 Link encap:Ethernet HWaddr 00:15:6D:56:11:4D
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:14630 (14.2 KiB)