new script for opening opensim ports
authorChris Koeritz <fred@gruntose.com>
Fri, 12 May 2017 20:23:09 +0000 (16:23 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 12 May 2017 20:23:09 +0000 (16:23 -0400)
tuned for my server and ports.

scripts/opensim/allow_opensim_firewall_access.sh [new file with mode: 0644]

diff --git a/scripts/opensim/allow_opensim_firewall_access.sh b/scripts/opensim/allow_opensim_firewall_access.sh
new file mode 100644 (file)
index 0000000..0583ce6
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# main port
+sudo ufw allow 9000
+
+#also needed?
+#sudo ufw allow 8002
+
+# open ports for all the regions.
+i=10008; while [ $i -le 10022 ]; do echo $i ; sudo ufw allow $i; ((i++)); done
+
+# get the new rules loaded up and restart the firewall.
+sudo ufw reload
+sudo ufw disable
+sudo ufw enable
+
+