Forwarding traffic from wlan0 to tun0 in Raspbian

This forum is for general conversation and user-user networking.

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

Post Reply
richardz
OpenVpn Newbie
Posts: 5
Joined: Sun Jan 14, 2018 7:09 pm

Forwarding traffic from wlan0 to tun0 in Raspbian

Post by richardz » Sun Jan 14, 2018 7:10 pm

Hi,

I'm running a raspberry pi model 3 with built in WiFi with raspbian stretch lite as my operating system ( fresh install ) and i have Stunnel and OpenVPN installed and running

My intent is to use my raspberry pi as a wireless SSL VPN router.

I followed this guide to bridge my wlan0 traffic to eth0 traffic via br0
https://www.raspberrypi.org/documentati ... s-point.md

which works but its not taping into the OpenVPN tunnel I've created as it's routing the traffic to my ISP ( probably due to the eth0 bridge i made with wlan0), in reality what i want is my wlan0 traffic to access my tun0 interface that OpenVPN uses to access the SSL OpenVPN encryption

I've done a bunch of reading and i'm kinda stuck any advice or HOWTO's that you can recommend.

Thank you !!!!

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Forwarding traffic from wlan0 to tun0 in Raspbian

Post by TinCanTech » Mon Jan 15, 2018 11:47 am

Where is your openvpn server located ?

richardz
OpenVpn Newbie
Posts: 5
Joined: Sun Jan 14, 2018 7:09 pm

Re: Forwarding traffic from wlan0 to tun0 in Raspbian

Post by richardz » Mon Jan 15, 2018 6:41 pm

The SSL OpenVPN server would be hosted off site through a third party commerical VPN operator that I would be connecting too.

Any help with this would be extremely appreciated as I've done a bunch of searching and this topic isn't covered about on the internet it would seem....

Basically I want my Raspberry PI to become SSL OpenVPN router....

Cheers

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Forwarding traffic from wlan0 to tun0 in Raspbian

Post by TinCanTech » Mon Jan 15, 2018 6:59 pm

richardz wrote:
Sun Jan 14, 2018 7:10 pm
its not taping into the OpenVPN tunnel I've created as it's routing the traffic to my ISP
richardz wrote:
Mon Jan 15, 2018 6:41 pm
SSL OpenVPN server would be hosted off site
Where is it currently ?

richardz
OpenVpn Newbie
Posts: 5
Joined: Sun Jan 14, 2018 7:09 pm

Re: Forwarding traffic from wlan0 to tun0 in Raspbian

Post by richardz » Mon Jan 15, 2018 8:26 pm

I pay a fee each year to a company that provides a VPN service with multiple servers around the world that I can connect to.

Hope that helps?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Forwarding traffic from wlan0 to tun0 in Raspbian

Post by TinCanTech » Mon Jan 15, 2018 8:50 pm

So what you actually want is to route all your LAN data to the VPN service provider because you do not have your own OpenVPN Server ..

richardz
OpenVpn Newbie
Posts: 5
Joined: Sun Jan 14, 2018 7:09 pm

Re: Forwarding traffic from wlan0 to tun0 in Raspbian

Post by richardz » Tue Jan 16, 2018 1:47 am

Yes, exactly !

I basically wish to use my Raspberry Pi as a SSL VPN router so i can use my cell phone and tablet on the internet with SSL OpenVPN encryption as a means to avoid data mining from my ISP.

My Stunnel and OpenVPN client connect to my commercial SSL OpenVPN provider no problem my issue is getting my wifi connections wlan0 to pass their traffic through the SSL tunnel tun0.

Again any help with this is much apprecaited as i can find a bunch of info on briding wlan0 to eth0 but nothing on wlan0 to tun0.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Forwarding traffic from wlan0 to tun0 in Raspbian

Post by TinCanTech » Tue Jan 16, 2018 1:35 pm

richardz wrote:
Tue Jan 16, 2018 1:47 am
i can find a bunch of info on briding wlan0 to eth0
Did you try it ?

richardz
OpenVpn Newbie
Posts: 5
Joined: Sun Jan 14, 2018 7:09 pm

Re: Forwarding traffic from wlan0 to tun0 in Raspbian

Post by richardz » Tue Jan 16, 2018 6:23 pm

Yes the wlan0 > eth0 bridge works

Post Reply