Clipper On Line • Ver Tópico - Firewall

Firewall

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

Moderador: Moderadores

 

Firewall

Mensagempor dbsh » 19 Jan 2022 12:00

Liberar seu sistema do escaneamento/bloqueio do antivirus.

:: 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
@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
@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
@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
rem xcopy *.* %systemroot%\system32\grouppolicy

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

gpupdate /force
010011110010000001110011011101010110001101100101011100110111001101101111001000001110100100100000011000110110111101101110011100110111010001110010011101011110110101100100011011110010000001100001001000000110111001101111011010010111010001100101
01001101011000010111001001100011011011110111001100100000010000010110111001110100011011110110111001101001011011110010000001000100011001010010000001000010011011110110111001101001
0101010001100101011011000011101000100000001010000011001000110111001010010011100100101101001110010011100000110100001100110010110100110101001100100011100100110000
Avatar de usuário

dbsh
Usuário Nível 3

Usuário Nível 3
 
Mensagens: 115
Data de registro: 14 Jul 2004 14:19
Cidade/Estado: ES
Curtiu: 2 vezes
Mens.Curtidas: 15 vezes



Retornar para Contribuições, Dicas e Tutoriais

Quem está online

Usuários vendo este fórum: Nenhum usuário registrado online e 18 visitantes


Ola Amigo, espero que meu site e forum tem lhe beneficiado, com exemplos e dicas de programacao.
Entao divulgue o link da Doacao abaixo para seus amigos e redes sociais ou faça uma doacao para o site forum...
MUITO OBRIGADO PELA SUA DOACAO!
Faça uma doação para o forum
cron
v
Olá visitante, seja bem-vindo ao Fórum Clipper On Line!
Efetue o seu login ou faça o seu Registro