This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey guys,
I wrote my first bash script today! I'm super excited and wanted to share it. It carries out the functions of downloading the PIA OpenVPN configuration files, creating an auth file and modifying a PIA .opvn to use it. It then connects to the PIA VPN server and detects key network information so you can SSH in remotely while connected to the VPN. It also installs deluge-console.
I'm open to critique and ideas to make it better, as right now it's designed to be used pretty much with a fresh install on a Raspi and no special networking rules in place.
Speaking of the networking, I am not 100% clear of how the iproute rules work. This part I am really interested in feedback on how to improve it/make it more secure from any of you. Here are the rules I'm referring to:
ip rule add table 128 from x.x.x.x.
ip route add table 128 to y.y.y.0/24 dev eth0
ip route add table 128 default via z.z.z.z
where; x.x.x.x = private IP address y.y.y.y/24 = network address / CIDR z.z.z.z = default gateway
With that being said, I wouldn't recommend anyone use this script to produce a seedbox and actively use it. It is a personal project related to this topic that I wanted to share and get input on.
Thanks all!
EDIT: It also doesn't account for errors, or anything going wrong...really.
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/seedboxes/c...