Parcourir la source

Update rules.sh

Changed ip of captive portal
Deben Oldert il y a 11 ans
Parent
commit
a4e8663805
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      captiveportal/firewall/rules.sh

+ 2 - 2
captiveportal/firewall/rules.sh

@@ -30,7 +30,7 @@ i=0
 while read ip
 do
         #Shits getting serious now
-        sudo $IPTABLES -t nat -A PREROUTING -s "$ip" -p tcp -j DNAT --to-destination 192.168.50.99:8080
+        sudo $IPTABLES -t nat -A PREROUTING -s "$ip" -p tcp -j DNAT --to-destination 10.111.11.5:8080
         #Print the ip
         echo $ip
         #Increment 1 on i so we can see how many ip where added
@@ -48,7 +48,7 @@ then
         if [[ ! -z "$2" ]]
         then
                 #Delete the rule
-                sudo $IPTABLES -t nat -D PREROUTING -s $2 -p tcp -j DNAT --to-destination 192.168.50.99:$
+                sudo $IPTABLES -t nat -D PREROUTING -s $2 -p tcp -j DNAT --to-destination 10.111.11.5:8080
                 #Tell the system its fine
                 echo "SUCCES"
         else