Hello
I have a little problem with CRON task for updating PIA forwarding Port and /etc/openvpn/portforward.sh script.
If i launch it (sudo /etc/openvpn/portforward.sh) i have Success message and it's ok with transmission . Port is open.
If i wait few hours, transmission tell me port closed ??
I look at /var/log/pia_portforward.log and the cron task work well every 2 hours (IP=ok, Port=ok ) with message {"arguments":{},"result":"success"}
I look at /var/log/syslog for the cron task and i have this message every two hours:
: (root) CMD (/etc/openvpn/portforward.sh | while IFS= read -r line; do echo "$(date) $line"; done >> /var/log/pia_portforward.log 2>&1 #PIA Port Forward)
If i lauch script with my user account and sudo Port become again open
If i lauch script with root user without sudo Port become again open
But If i wait few hours, transmission tell me port closed (however there are shared torrent active files) ????
What can i do or check
Thanks in advance.
I have a little problem with CRON task for updating PIA forwarding Port and /etc/openvpn/portforward.sh script.
If i launch it (sudo /etc/openvpn/portforward.sh) i have Success message and it's ok with transmission . Port is open.
If i wait few hours, transmission tell me port closed ??
I look at /var/log/pia_portforward.log and the cron task work well every 2 hours (IP=ok, Port=ok ) with message {"arguments":{},"result":"success"}
I look at /var/log/syslog for the cron task and i have this message every two hours:
: (root) CMD (/etc/openvpn/portforward.sh | while IFS= read -r line; do echo "$(date) $line"; done >> /var/log/pia_portforward.log 2>&1 #PIA Port Forward)
If i lauch script with my user account and sudo Port become again open
If i lauch script with root user without sudo Port become again open
But If i wait few hours, transmission tell me port closed (however there are shared torrent active files) ????
What can i do or check
Thanks in advance.