View Single Post
Posts: 12 | Thanked: 15 times | Joined on Jan 2010
#14
I'm trying to do the same here. It works pretty well, the only missing part is the name resolution.

I have the following config on server and clients.
Code:
cipher AES-256-CBC
client
dev tun
proto udp
remote xx.yy.zz 1194
ping 10
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/n900.crt
key /etc/openvpn/n900.key
ns-cert-type server
comp-lzo
pull
verb 3
# route all traffic through vpn
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.0.254"
192.168.0.254 is the internal address of my router.
When I connect to the VPN I cannot resolve "ping getip.dyndns.org" but when I use its direct IP address (93.232.228.219) on MicroB it works and shows the public internet address on the server side (which is I what I want) so apparently all the traffic is routed through the tunnel (will have to wireshark to verify).

On my ArchLinux desktop I just have to add the following to my /etc/resolv.conf to make it work:
Code:
nameserver 192.168.0.254
However on Maemo/N900 I'm lost on whether I should modify this empty file or another one.

Any recommendations for adding this nameserver?

Thanks
Alphazo

[EDIT] I added the nameserver line to /etc/resolv.conf but that doesn't help to make names to resolve.

[EDIT2] I got it working by adding the new nameserver line to /var/run/resolv.cong.wlan0. It is not the most elegant way to do it as I would probably have to do it again when switching over to GPRS and my assumption is that is not going to be permanent (need a script to automate it).

Last edited by alphazo; 2010-02-04 at 13:06.