Firewall

Aqui você poderá oferecer suas Contribuições, Dicas e Tutoriais (Texto ou Vídeo) que sejam de interesse de todos.

Moderador: Moderadores

Avatar do usuário
dbsh
Usuário Nível 3
Usuário Nível 3
Mensagens: 128
Registrado em: 14 Jul 2004 14:19
Localização: ES

Firewall

Mensagem por dbsh »

Liberar seu sistema do escaneamento/bloqueio do antivirus.

Código: Selecionar todos

:: FC - Frente de Caixa
@echo.
@echo - FC
@echo.

:: netsh advfirewall firewall delete rule name=all protocol=tcp localport=
netsh advfirewall firewall delete rule name="FrenteCaixa"

if /I "%1"=="-D" goto :eof

if exist c:\dbsh\fc\fc.exe      netsh advfirewall firewall add rule name=FrenteCaixa dir=in  program=c:\dbsh\fc\fc.exe action=allow
if exist c:\dbsh\fc\fc.exe      netsh advfirewall firewall add rule name=FrenteCaixa dir=out program=c:\dbsh\fc\fc.exe action=allow
if exist d:\dbsh\fc\fc.exe      netsh advfirewall firewall add rule name=FrenteCaixa dir=in  program=d:\dbsh\fc\fc.exe action=allow
if exist d:\dbsh\fc\fc.exe      netsh advfirewall firewall add rule name=FrenteCaixa dir=out program=d:\dbsh\fc\fc.exe action=allow

if exist c:\systemone\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=in  program=c:\systemone\fc\fc.exe action=allow 
if exist c:\systemone\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=out program=c:\systemone\fc\fc.exe action=allow
if exist d:\systemone\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=in  program=d:\systemone\fc\fc.exe action=allow 
if exist d:\systemone\fc\fc.exe netsh advfirewall firewall add rule name=FrenteCaixa dir=out program=d:\systemone\fc\fc.exe action=allow
Liberar porta para acesso externo

Código: Selecionar todos

@echo.
@echo -- Banco de Dados Mysql
@echo.

netsh advfirewall firewall delete rule name=all protocol=tcp localport=3306
netsh advfirewall firewall delete rule name="MYSQL"

if /I "%1"=="-D" goto :eof

netsh advfirewall firewall add rule name=MYSQL dir=in  action=allow protocol=TCP localport=3306
netsh advfirewall firewall add rule name=MYSQL dir=out action=allow protocol=TCP localport=3306
Permite ping externo no computador

Código: Selecionar todos

@echo.
@echo -- PING
@echo.

:: netsh advfirewall firewall delete rule name=all protocol=tcp localport=
netsh advfirewall firewall delete rule name="pingv4"
netsh advfirewall firewall delete rule name="pingv6"

if /I "%1"=="-D" goto :eof

netsh advfirewall firewall add rule name=pingV4 protocol=icmpv4:8,any dir=in action=allow
netsh advfirewall firewall add rule name=pingV6 protocol=icmpv6:8,any dir=in action=allow
Desativa Permissao controle de contas de Usuário

Código: Selecionar todos

@echo.
@echo -- Permissao controle de contas de Usuário
@echo.
C:\Windows\System32\cmd.exe /c %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
Força aplicar diretivas de grupo sem reiniciar computador

Código: Selecionar todos

rem xcopy *.* %systemroot%\system32\grouppolicy

:: bcdedit /set hypervisorlaunchtype off
:: bcdedit /set hypervisorlaunchtype auto

gpupdate /force
010011110010000001110011011101010110001101100101011100110111001101101111001000001110100100100000011000110110111101101110011100110111010001110010011101011110110101100100011011110010000001100001001000000110111001101111011010010111010001100101
01001101011000010111001001100011011011110111001100100000010000010110111001110100011011110110111001101001011011110010000001000100011001010010000001000010011011110110111001101001
0101010001100101011011000011101000100000001010000011001000110111001010010011100100101101001110010011100000110100001100110010110100110101001100100011100100110000
Responder