Edit: Should have looked at a past reply the last time I tried to get this working.
"You can set up a cron job to do it every hour or so. Go into the regular WebGUI and set up the cron task:
jexec transmission_1 bash /port_forward.sh"
Got this almost working finally. How do I run port_forward.sh as a cron job? Do I run something at the command line, or in the Freenas GUI?
Turns out my issue was how I was copying and pasting to create port_froward.sh. Ended up using nano port_forward.sh, copy and paste into there, delete all the lines with # and make sure no other lines were breaking at the wrong spots. Changed permissions and it worked! Installed openvpn from the first post and changed step #10 to pkg install openvpn.
Used post above, head -n 100 /dev/urandom | md5 | tr -d " -", to get the client id.
"You can set up a cron job to do it every hour or so. Go into the regular WebGUI and set up the cron task:
jexec transmission_1 bash /port_forward.sh"
Got this almost working finally. How do I run port_forward.sh as a cron job? Do I run something at the command line, or in the Freenas GUI?
Turns out my issue was how I was copying and pasting to create port_froward.sh. Ended up using nano port_forward.sh, copy and paste into there, delete all the lines with # and make sure no other lines were breaking at the wrong spots. Changed permissions and it worked! Installed openvpn from the first post and changed step #10 to pkg install openvpn.
Used post above, head -n 100 /dev/urandom | md5 | tr -d " -", to get the client id.
Last edited: