8 ms·
Yep, rather straight-forward. Little bit of iptables forwarding and you're all set: echo 1 > /proc/sys/net/ipv4/ip_forward iptables -A FORWARD -i eth0 -o w
by pmccarren 5y ago
Yep, rather straight-forward. Little bit of iptables forwarding and you're all set:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
I'd recommend wireguard[0] in preference to openvpn.
refs: [0]https://www.wireguard.com/ https://www.wireguard.com/
- CogitoCogito 5y agoGreat thanks for the info!
- archontes 5y agoMay I ask where I might start learning things like this?
- hatware 5y agoStand up a few useful services around the home and harden them. Stuff like Plex/Emby, Paperless-ng, *arr's, etc. Self hosting is addicting and one of the best teachers.
- giobox 5y agoThe tutorials provided by VPS providers like Digital Ocean are a pretty good way to learn how to setup a VPN or any other common webservice yourself. They have a pretty well maintained library: https://www.digitalocean.com/community/tutorials/how-to-create-a-point-to-point-vpn-with-wireguard-on-ubuntu-16-04 https://www.digitalocean.com/community/tutorials/how-to-crea... etc. I'd also second a recommendation of wireguard over OpenVPN - it's far simpler to configure too.