From 5e6d99b975ac242f9682200f307b43ac61d63c57 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 12 May 2017 16:23:09 -0400 Subject: [PATCH] new script for opening opensim ports tuned for my server and ports. --- .../opensim/allow_opensim_firewall_access.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/opensim/allow_opensim_firewall_access.sh diff --git a/scripts/opensim/allow_opensim_firewall_access.sh b/scripts/opensim/allow_opensim_firewall_access.sh new file mode 100644 index 00000000..0583ce64 --- /dev/null +++ b/scripts/opensim/allow_opensim_firewall_access.sh @@ -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 + + -- 2.34.1