1
3
I am trying to setup a wireless router and make use of a vpn. As I am fairly new to this secific topic. I hope somebody here can give me a hint or if possible a practical solution. I have searched the web up and down, but I did not find a convincing solution to the following problem:
I have a ubuntu based device with two wireless interfaces (wlan0 and wlan1) as well as a physical network interface (eth0) which is connected to the internet. I also plan to connect to a vpn (openvpn to an vpn provider I'll have to buy first) which will probably be tun0 or something. I want any traffic from devices connecting to wlan1 to be piped through the vpn and all traffic on wlan0 to be routed directly to the internet.
Here are my questions: a) is this possible at all? b) if ( a == yes ) how would I do it?
I need a reliable solution so please no dirty hacks if possible.
Thanks in advance, Peer
Dear Paul, you are my hero!!! I finally figured out how to run multiple vpn clients on my mini pc ubuntu router and forward each client's traffic to a separate wlan access point!! thank you !! – Mehdi – 2019-08-07T20:08:07.417
Can I still apply iptables rules to wlan1 before the traffic is routed out to the VPN? And do the hosts.deny and hosts.allow files still apply? – peer – 2013-12-25T15:02:57.693
Yes, this is just routing, so everything else works as expected. – Paul – 2013-12-26T00:03:14.557