Birdybird
Posts: 51
Joined: Tue Sep 10, 2019 12:01 pm

openvpn not working with raspian buster 26/9

Tue Oct 15, 2019 8:48 am

I cannot give command:
curl -L http://install.pivpn.io | bash
anymore it does not work. How to setup openvpn now ?
on my raspberry 3

Kendek
Posts: 145
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: openvpn not working with raspian buster 26/9

Tue Oct 15, 2019 10:10 am

Maybe use another, Debian compatible script, or configure the OpenVPN manually. You just need to install the openvpn package, and generate the contents of the /etc/openvpn directory (on RPi, or put there from another system).
Some iptables rules are required (/etc/rc.local):

Code: Select all

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
modprobe ip_nat_ftp
iptables -A PREROUTING -t raw -p tcp --dport 21 -j CT --helper ftp
and enable packet forwarding for IPv4, so uncomment the following line in the /etc/sysctl.conf:

Code: Select all

net.ipv4.ip_forward=1
The OpenVPN server runs fine on my Pi.

Birdybird
Posts: 51
Joined: Tue Sep 10, 2019 12:01 pm

Re: openvpn not working with raspian buster 26/9

Tue Oct 15, 2019 12:24 pm

Please help me to start the script again
I am a beginner. What to to exactly so that the script Works again or spell it out.

Kendek
Posts: 145
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: openvpn not working with raspian buster 26/9

Tue Oct 15, 2019 12:53 pm

Birdybird wrote:
Tue Oct 15, 2019 12:24 pm
Please help me to start the script again
Unfortinately, I don't know this script. I was lazy and used my installaller script on my Synology router then moved the contents of the etc/openvpn directory.
But there are other scripts, just pick one and try it.

Return to “Troubleshooting”