Page 1 of 1

Router + Openvpn Client

Posted: Sat Aug 29, 2015 9:15 am
by yetanotherlogin
Hi all,

I am trying to set up an Odroid C1+ as a wireless router access point that sends traffic to an external openvpn server. This C1+ router will actually be connected to an existing router via ethernet cable.

I more or less followed these guides:

https://www.maketecheasier.com/set-up-r ... ess-point/
https://gist.github.com/kimus/9315140

Everything runs just fine without openvpn. I can connect to the AP and get access to the internet. I am wondering what I need to do in order to bring openvpn into the mix. The goal is to be able to connect to the AP via wlan0 and end up with my ip address being that of my openvpn server which is in another country.

I think I might just be missing something in the masquerading, but I am not sure.

wlan0 is 192.168.42.1 static ip (the c1+'s dhcp and hostapd are handling data on wlan0)

# interface
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0

# NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 192.168.42.0/24 -o eth0 -j MASQUERADE
COMMIT

I just need some advice about the routing I think (I hope). I am more than happy to provide more details.

Re: Router + Openvpn Client

Posted: Mon Sep 07, 2015 4:18 pm
by Traffic
yetanotherlogin wrote: The goal is to be able to connect to the AP via wlan0 and end up with my ip address being that of my openvpn server which is in another country.
It is easier to install openvpn on the wireless client device (computer) not the wireless access point ..