Posted in CLI Powershell Windows

Windows firewall i Powershell

New-NetFirewallRule -DisplayName "BlokirajOut443" -Direction outbound -Profile Any -Action Block -RemotePort 443,567-678 -Protocol TCP -Program C:\Windows\Notepad.exe Remove-NetFirewallRule -DisplayName "BlokirajOut443" pwsh ps xpwsh xps firewall xfirewall fw…

Posted in Linux

iptables – dopusti sav promet po kartici eth0

iptables -A INPUT -i eth0 -j ACCEPT iptables -A OUTPUT -o eth0 -j ACCEPT iptables-save iptables xiptablesx xallowx xallowallx xdopustix xdopustisvex firewall xfirewall