pivpn: Unable to connect to PiVPN
PiVPN Issue Template
Install is successful. All links are pastebin. I removed my ip address from logs containing them.
Issue
Have you searched for similar issues and solutions?
Yes, but none of them worked.
Console output of curl -L install.pivpn.io | bash
https://pastebin.com/7EvKLvdh
Console output of pivpn add
or pivpn add nopass
https://pastebin.com/4TUVsTQr
Console output of pivpn debug
https://pastebin.com/JTDxQ101
Console Output of sudo iptables -t nat -S
https://pastebin.com/rRKR7JEQ
Console Output of sudo iptables -S
https://pastebin.com/rH5QP83v
output of sudo netstat -uanp | grep openvpn
https://pastebin.com/5RZXS5WV
Have you taken any steps towards solving your issue?
Tried googling, and came across sudo systemctl status openvpn@server.service, but I don’t have error output.
The user I’m putting pivpn on is connected by using my RSA passphrase as I have set up a key pair. UFW is installed on the pi. Port 1194 is forwarded to 192.168.1.10[static] which is my RPi3. It is also the only port open. I have Pi-Hole Installed, so I changed the listen-address in dnsmasq to 127.0.0.1, 192.168.1.10, 10.8.0.1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 30 (11 by maintainers)
@sbrl for my understanding iptables-persistent only ensures to any changes to your iptables config, remains when you reboot your O.S. but the same thing does ufw, it ensures to keep your config after reboot, so, I think you have twice the same functions, I think this causes that the rules get mess, when you boot your O.S. and you have to reload the config, just because the mess caused by iptables-persistent and ufw, This is my though, I have removed the iptables-persistent with no secundary effects, and now everything works like a charm on my RPI, best regards. P.S. Sorry about my english.
Hey! I think I’ve run into this bug myself. Here are my observations:
sudo ufw reload
fixes the issue.I’m running on a Raspberry Pi 3 with Raspbian 9.6 (stretch).
Here’s an extract from
/var/log/ufw.log
just after a reboot:Upon executing
sudo ufw reload
, the VPN then works.Steps to reproduce
sudo ufw allow 1194/udp
)/var/log/ufw.log
for evidence that UFW is blocking packetssudo ufw reload
Is there any fix for this?