Jump to content
Not connected, Your IP: 3.145.164.47
FunThomas

Raspberry Pi as VPN Gateway for home devices?

Recommended Posts

Hello,
is there somewhere a good guide how to setup & secure a raspberry pi 4b or 5 to work as VPN Gateway & handle NAT for home devices which can not use VPN software themselfes.

best regards,
Thomas

Share this post


Link to post

It's as simple as enabling ip forwarding in sysctl and running iptables to SNAT/DNAT or MASQUERADE to route the entire NAT via the VPN (wg0 or tun0 or whatever).
The problem is, you need another network card (USB maybe) for the raspberry pi, as it only has 1 gbps port.
Running the NAT on the 1 GBPS wired port and connecting to your ISP to run the VPN over wi-fi might be unreliable. I would get a second network card for usb3 and run on wired.

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