Jump to content
Not connected, Your IP: 184.73.14.222
kbps

Raspberry Pi3 as VPN access point

Recommended Posts

I want to have my Pi3 act as a WiFi access point with any client that connects to it getting all their traffic routed through Air (or another provider). I have seen guides to get the pi to be an access point but not one that is also a vpn. Is there a way? Are there guides available.

Share this post


Link to post

I don't have a tutorial for you but its very simple. First you'll want to setup your openvpn client as a service (https://www.smarthomebeginner.com/guide-configure-openvpn-autostart-linux/). Then fallow https://github.com/SurferTim/documentation/blob/6bc583965254fa292a470990c40b145f553f6b34/configuration/wireless/access-point.md but instead of using

"sudo iptables -t nat -A  POSTROUTING -o eth0 -j MASQUERADE"

use

"sudo iptables -t nat -A  POSTROUTING -o tun0 -j MASQUERADE"

That should do the trick. Make sure "tun0" is the correct tunnel assignment being used with the "ifconfig" first. Hope that helps

Share this post


Link to post

I don't have a tutorial for you but its very simple. First you'll want to setup your openvpn client as a service (https://www.smarthomebeginner.com/guide-configure-openvpn-autostart-linux/). Then fallow https://github.com/SurferTim/documentation/blob/6bc583965254fa292a470990c40b145f553f6b34/configuration/wireless/access-point.md but instead of using

"sudo iptables -t nat -A  POSTROUTING -o eth0 -j MASQUERADE"

use

"sudo iptables -t nat -A  POSTROUTING -o tun0 -j MASQUERADE"

That should do the trick. Make sure "tun0" is the correct tunnel assignment being used with the "ifconfig" first. Hope that helps

 

 

Thanks.  Thats my project for the day!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...