Ok i have zipped all my notes and scripts into a zip file and uploaded them to dropbox. Link below. might be easier than to copy and pasting in here less messy. If anyone has other ideas in making in more streamlined be my gest and edit and share on here you outcomes. I will be changing the way i implement the Kill Switch and to use the Jail cron instead of the Freenas GUI Cron, and will try and use the pia folders for all scripts to make it easier for others to use the guide.
https://www.dropbox.com/s/2zvthd615mp3quz/OpenVpn Install.7z?dl=0
This was really helpful, thank you.
I'm pretty sure I have the kill switch running now.
Running
Code:
wget http://smart-ip.net/myip -O - -q ; echo
just returns an empty line, but since it's running in quiet mode I think that's par for the course? Correct me if I'm wrong, please.
I also got the cron job running, thank you for clarifying the commands. Again, I realize it's a really dumb thing to have issues with, but I'm just not that familiar with all this yet. I appreciate you spelling it out for me.
After updating my port_forward.sh and running it manually, it returned the following:
Code:
root@transmission_1:/ # ./port_forward.sh
./port_forward.sh: line 8: tun0: command not found
Transmission Port Forward 2017-01-17-20:46:15
Connection to google.com 80 port [tcp/http] succeeded!
VPN connection up.
Closed port detected
cut: bad delimiter
Garbled data: null
root@transmission_1:/
This doesn't look like quite what I think it's supposed to print, but again, I may be wrong. I had to edit some of the lines manually to clean up the spacing (when copying from notepad++ some of the wrapping was weird, but I made sure they looked the same after updating all the paths and addresses. I'll take another look at it, but wasn't sure if there was anything specific that needed to be pointed out. (e.g., the issue with line 8 was a wrapping problem that has since been corrected.)
Using transmission in practice, I've been able to hit my peak speeds, albeit not consistently (though I suspect this has more to do with a lack of seeders than any other issues!). However, my ports are still claiming they're closed, due to a firewall issue, despite having updated rc.conf to reflect the new ipfw_rules.
When checking pia.log, all it contains is three lines of
Code:
/usr/local/bin/bash: /transmission_1/port_forward.sh: No such file or directory found
However, I do have port_forward.sh in the root folder for transmission_1, as evidenced by:
Code:
root@transmission_1:/ # ls
.cshrc boot media rescue usr
.plugins dev mnt root var
.profile etc port_forward.sh sbin
COPYRIGHT lib portforward.sh sys
bin libexec proc tmp
root@transmission_1:/ #
So I'm not sure what's up with that.
EDIT: I updated the cron job that write to pia.log to reflect it's actual location. I think I was initially trying to point to transmission_1/transmission_1/port_forward.sh, rather than just transmission_1/port_forward.sh. So I guess that's one issue fixed.
As always, a huge thanks for helping me get this far!