|
|
|
@ -417,6 +417,8 @@ setup_firewall() {
|
|
|
|
# Extract the last 3 digits from the hostname
|
|
|
|
# Extract the last 3 digits from the hostname
|
|
|
|
port_number=$(echo "$host" | grep -oE '[0-9]{3}$')
|
|
|
|
port_number=$(echo "$host" | grep -oE '[0-9]{3}$')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ohai "Firewall port: $port_number"
|
|
|
|
|
|
|
|
|
|
|
|
port1=$((10000 + port_number))
|
|
|
|
port1=$((10000 + port_number))
|
|
|
|
port2=$((20000 + port_number))
|
|
|
|
port2=$((20000 + port_number))
|
|
|
|
port3=$((30000 + port_number))
|
|
|
|
port3=$((30000 + port_number))
|
|
|
|
|