summary refs log tree commit diff stats
path: root/bin/port-forwarding
diff options
context:
space:
mode:
Diffstat (limited to 'bin/port-forwarding')
-rwxr-xr-xbin/port-forwarding3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/port-forwarding b/bin/port-forwarding
new file mode 100755
index 0000000..c904110
--- /dev/null
+++ b/bin/port-forwarding
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+while true ; do date ; natpmpc -a 1 0 udp 60 -g 10.2.0.1 && natpmpc -a 1 0 tcp 60 -g 10.2.0.1 || { echo -e "ERROR with natpmpc command \a" ; break ; } ; sleep 45 ; done