I've only ever used Windows and this is my first time with a Raspberry Pi. All I wanted is to be connected to a VPN while acting as a hotspot so that my devices that connect to it will also be connected to the VPN.
Here's what I've done so far:
- Use this guide: https://howtoraspberrypi.com/create-a-wi-fi-hotspot-in-less-than-10-minutes-with-pi-raspberry/
- Was able to connect but no internet so i had to
Code: Select all
net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -j MASQUERADE
- Use this guide for openvpn: https://pimylifeup.com/raspberry-pi-vpn-access-point/
- Substitute my VPN provider's info, everything connects but there's a DNS leak so I add:
Code: Select all
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
but DNS leak is still there.
Can you guys suggest what should I do?
ping google.com
?