AUTORE : PIATEDA
Comando per xp :
comando per vista :
alla prossima
ciao ciao
Comando per xp :
@echo off
rem FTP Server
netsh firewall add portopening protocol=TCP port=21 name="My_FTP(21)" mode=ENABLE scope=ALL
rem SSH Server
netsh firewall add portopening protocol=TCP port=22 name="My_SSH(22)" mode=ENABLE scope=ALL
rem Web Server
netsh firewall add portopening protocol=TCP port=80 name="My_Web(80)" mode=ENABLE scope=ALL
rem Web Server secondario
netsh firewall add portopening protocol=TCP port=8080 name="My_WebSecondario(8080)" mode=ENABLE scope=ALL
rem eMuleTCP
netsh firewall add portopening protocol=TCP port=48005 name="My_eMuleTCP(48005)" mode=ENABLE scope=ALL
rem eMuleUDP
netsh firewall add portopening protocol=UDP port=50477 name="My_eMuleUDP(50477)" mode=ENABLE scope=ALL
rem uTorrent
netsh firewall add portopening protocol=TCP port=59274 name="My_uTorrent(59274)" mode=ENABLE scope=ALL
rem Remote Desktop, solo da locale
netsh firewall add portopening protocol=TCP port=3389 name="My_RDP(3389)" mode=ENABLE scope=SUBNET
rem VNC, solo da locale
netsh firewall add portopening protocol=TCP port=5900 name="My_VNC(5900)" mode=ENABLE scope=SUBNET
pause
comando per vista :
@echo off
rem FTP Server
netsh advfirewall firewall add rule name="My_FTP(21)" dir=in action=allow protocol=tcp localport=21 remoteip=any
rem SSH Server
netsh advfirewall firewall add rule name="My_SSH(22)" dir=in action=allow protocol=tcp localport=22 remoteip=any
rem Web Server
netsh advfirewall firewall add rule name="My_Web(80)" dir=in action=allow protocol=tcp localport=80 remoteip=any
rem Web Server secondario
netsh advfirewall firewall add rule name="My_WebSecondario(8080)" dir=in action=allow protocol=tcp localport=8080 remoteip=any
rem eMuleTCP
netsh advfirewall firewall add rule name="My_eMuleTCP(48005)" dir=in action=allow protocol=tcp localport=48005 remoteip=any
rem eMuleUDP
netsh advfirewall firewall add rule name="My_eMuleUDP(50477)" dir=in action=allow protocol=tcp localport=50477 remoteip=any
rem uTorrent
netsh advfirewall firewall add rule name="My_uTorrent(59274)" dir=in action=allow protocol=tcp localport=59274 remoteip=any
rem Remote Desktop, solo da locale
netsh advfirewall firewall add rule name="My_RDP(3389)" dir=in action=allow protocol=tcp localport=3389 remoteip=LocalSubnet
rem VNC, solo da locale
netsh advfirewall firewall add rule name="My_VNC(5900)" dir=in action=allow protocol=tcp localport=5900 remoteip=LocalSubnet
pause
alla prossima
ciao ciao
Ultima modifica: