@echo off title Abrir Portas - SouthHost color 0A echo ========================================== echo Abrindo portas automaticamente echo ========================================== echo. echo Abrindo portas 30120, 3306, 8080 e 80... :: 30120 netsh advfirewall firewall add rule name="30120 TCP" dir=in action=allow protocol=TCP localport=30120 netsh advfirewall firewall add rule name="30120 UDP" dir=in action=allow protocol=UDP localport=30120 netsh advfirewall firewall add rule name="30120 TCP" dir=out action=allow protocol=TCP localport=30120 netsh advfirewall firewall add rule name="30120 UDP" dir=out action=allow protocol=UDP localport=30120 :: 3306 netsh advfirewall firewall add rule name="3306 TCP" dir=in action=allow protocol=TCP localport=3306 netsh advfirewall firewall add rule name="3306 UDP" dir=in action=allow protocol=UDP localport=3306 netsh advfirewall firewall add rule name="3306 TCP" dir=out action=allow protocol=TCP localport=3306 netsh advfirewall firewall add rule name="3306 UDP" dir=out action=allow protocol=UDP localport=3306 :: 8080 netsh advfirewall firewall add rule name="8080 TCP" dir=in action=allow protocol=TCP localport=8080 netsh advfirewall firewall add rule name="8080 UDP" dir=in action=allow protocol=UDP localport=8080 netsh advfirewall firewall add rule name="8080 TCP" dir=out action=allow protocol=TCP localport=8080 netsh advfirewall firewall add rule name="8080 UDP" dir=out action=allow protocol=UDP localport=8080 :: 80 netsh advfirewall firewall add rule name="80 TCP" dir=in action=allow protocol=TCP localport=80 netsh advfirewall firewall add rule name="80 UDP" dir=in action=allow protocol=UDP localport=80 netsh advfirewall firewall add rule name="80 TCP" dir=out action=allow protocol=TCP localport=80 netsh advfirewall firewall add rule name="80 UDP" dir=out action=allow protocol=UDP localport=80 echo. echo ========================================== echo Portas liberadas com sucesso! echo ========================================== echo. pause