VPN with Pi-Star

Help setting up WiFi
Post Reply
N4GWB
Posts: 25
Joined: Thu Sep 06, 2018 11:09 pm
Location: Dallas, GA

VPN with Pi-Star

Post by N4GWB » Sun Nov 24, 2019 3:08 am

Can a VPN service be installed on the front end of rapsbian with Pi-Star to always use a VPN service?

So, I have figured out how to get my Pi-Star spot to connect to a WIFI hotspot that requires no password or encryption (WITH lots of help here). I also have been using a travel router with my VPN to get by blocked ports on the public wifi that has not allowed Pi-Star to work. But, I would rather use the hotspot directly with public WIFI and a VPN to get around the port blocks without having to use the travel router JUST for the purpose of using the VPN.

I have searched and found no information on whether this would work. VPN is not built in to Pi-Star (although it would be nice). Can I install other VPN software (I use IPVANISH) to automatically connect every time via the raspberry pi with Pi-Star?

REPHRASING to make my question more clear.... I know a VPN can be used with a raspberry pi... I am asking if anything can coexist with Pi-Star and work properly?

Thanks!
Bill
N4GWB

DG0OFZ
Posts: 6
Joined: Thu Jun 07, 2018 6:53 pm

Re: VPN with Pi-Star

Post by DG0OFZ » Sun Nov 24, 2019 11:58 am

Hi Bill,

I'm using OpenVPN with my Pi-Star 3 based repeater since several months here. No problems so far.
It can easily installed via "apt-get install ...". After the configuration you have to modify the firewall rules of Pi-Star to let the daemon communicate.
73s de Thomas, DG0OFZ

N4GWB
Posts: 25
Joined: Thu Sep 06, 2018 11:09 pm
Location: Dallas, GA

Re: VPN with Pi-Star

Post by N4GWB » Mon Nov 25, 2019 7:49 am

Okay... You had me up until the firewall part. I totally understand what you are saying, but as to how to set the firewall rules, I am clueless.

Can you point me to where I might be able to figure this out? I am somewhat more advanced than the clueless and dangerous computer user, but not by a whole heck of a lot.

M1DNS
Posts: 424
Joined: Thu Apr 05, 2018 5:30 am

Re: VPN with Pi-Star

Post by M1DNS » Mon Nov 25, 2019 10:04 am

You'll need to create an entry in the iptable.

Firstly don't forget rpi-rw to make the disk writable.

edit /root/ipv4.fw with the FW rule you need to access for the new port ?


eg.

iptables -A INPUT -p tcp --dport 222 -j ACCEPT



assuming in this example the new port is 222. Using TCP.

Save the file.

apply the changes with
sudo pistar-firewall

restart the pi.


http://wiki.pistar.uk/Adding_custom_fir ... to_Pi-Star

https://www.howtogeek.com/177621/the-be ... -firewall/


Andrew M1DNS, (Mod)




Andrew M1DNS.
Pi-star Admin Team.

DG0OFZ
Posts: 6
Joined: Thu Jun 07, 2018 6:53 pm

Re: VPN with Pi-Star

Post by DG0OFZ » Mon Nov 25, 2019 6:03 pm

There is nothing to add. Andrew explained everything "pi-star special" to implement your own firewall rules.
I've done it the same way.

You have to know, with which protocol and on which port(s) your vpn software is communicating. Maybe you will find this in the documentation of your vpn software.
73s de Thomas, DG0OFZ

N4GWB
Posts: 25
Joined: Thu Sep 06, 2018 11:09 pm
Location: Dallas, GA

Re: VPN with Pi-Star

Post by N4GWB » Tue Nov 26, 2019 7:11 am

Great, thanks for the pointers. It does not appear to be that difficult so I think I will be able to give it a go.

Post Reply