Seperate instance on openwrt

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

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

Post Reply
Coldstream
OpenVpn Newbie
Posts: 2
Joined: Thu Apr 16, 2015 10:52 am

Seperate instance on openwrt

Post by Coldstream » Thu Apr 16, 2015 11:07 am

Hello guys,

First of all i am not sure if this is the right section to ask. If not, im sorry.

For the last few days i have been busy trying to get OpenVPN running well over my router running openwrt.
I am trying to get a seperate radio/wifi instance in the air that uses the OpenVPN client, while the other instances use my regular connection.
My networking knowledge is not enough to pull this off myself and ive pulled many hairs so far :(
From what i understand, this should be done with adjusting ip tables to route the traffic properly.

I will sketch my current situation and i have no clue what all has been configured properly.

ROUTER OPENWRT -|-> WIFI SSID #1 2,4Ghz --> INTERNET
-> WIFI SSID #2 5Ghz --> INTERNET
-> WIFI SSID #3 5Ghz --> OPENVPN

Right now, SSID1&2 are set on own dhcp server with range 192.168.1.0
The interface on ssid 3 has its own dhcp server in range 192.168.55.0

I have set up a tun0 aswell, which works when i connect to openvpn but obviously everything then goes through the openvpn.
I've had a look at http://wiki.openwrt.org/doc/networking/routing but whenever i try to add "ip route add 192.168.51.0/24 dev tun0" it says it cant find tun0?

After using google and searching forums ive found out that this solution was too easy thought but i dont have any solution.
What should i do, and where should i look at to make this work?

Thanks for any help!

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

Re: Seperate instance on openwrt

Post by Traffic » Thu Apr 16, 2015 12:24 pm

Let's start with the basics .. what version of OpenWRT are you using .. be precise !

Coldstream
OpenVpn Newbie
Posts: 2
Joined: Thu Apr 16, 2015 10:52 am

Re: Seperate instance on openwrt

Post by Coldstream » Thu Apr 16, 2015 12:57 pm

Chaos Calmer r45179 with openvpn 2.3.6-3

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Seperate instance on openwrt

Post by maikcat » Thu Apr 16, 2015 4:36 pm

CC version....

this reminds me another thread... ;)

Michael.

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

Re: Seperate instance on openwrt

Post by Traffic » Thu Apr 16, 2015 5:08 pm

maikcat wrote:this reminds me another thread... ;)
that is why i had to ask :mrgreen:

@Coldstream: see this thread for details of Michael's comment:
topic18475.html

With regard to your query:
Coldstream wrote:not sure if this is the right section to ask
to be honest this is not even the right forum .. we provide support for OpenVPN Open Source version.

OpenWRT uses a customised version of OpenVPN not the open source version.
Coldstream wrote:I am trying to get a seperate radio/wifi instance in the air that uses the OpenVPN client, while the other instances use my regular connection.
this make very little sense to me ..

I suggest you start with the basics and get a normal openvpn instance running on your router and then build up from there. We can help with OpenVPN but not OpenWRT .. especially Chaos Calmer as it is an even more customised version for ARM architecture which we do not have access to.

Post Reply