Router + Openvpn Client

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
yetanotherlogin
OpenVpn Newbie
Posts: 3
Joined: Sat Aug 29, 2015 8:45 am

Router + Openvpn Client

Post by yetanotherlogin » Sat Aug 29, 2015 9:15 am

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.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Router + Openvpn Client

Post by Traffic » Mon Sep 07, 2015 4:18 pm

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 ..

Post Reply