Firewall for Windows: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 4: Line 4:
netsh advfirewall firewall add rule name="Minecraft-UDP" dir=in action=allow protocol=UDP localport=25565
netsh advfirewall firewall add rule name="Minecraft-UDP" dir=in action=allow protocol=UDP localport=25565
netsh advfirewall firewall add rule name="Rust" dir=in action=allow protocol=UDP localport=28015
netsh advfirewall firewall add rule name="Rust" dir=in action=allow protocol=UDP localport=28015
</pre>
<pre>
netsh advfirewall firewall add rule name="ICMP Allow incoming V6 echo request" protocol=icmpv6:8,any dir=in action=allow
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow
</pre>
</pre>



Revision as of 02:28, 21 March 2021

Allow Ports

netsh advfirewall firewall add rule name="Minecraft-TCP" dir=in action=allow protocol=TCP localport=25565
netsh advfirewall firewall add rule name="Minecraft-UDP" dir=in action=allow protocol=UDP localport=25565
netsh advfirewall firewall add rule name="Rust" dir=in action=allow protocol=UDP localport=28015
netsh advfirewall firewall add rule name="ICMP Allow incoming V6 echo request" protocol=icmpv6:8,any dir=in action=allow
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow

To disable the firewall

netsh advfirewall set  allprofiles state off

To enable the firewall

netsh advfirewall set allprofiles state on