Firewall for Windows: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
New page: To disable the firewall <pre> netsh firewall set opmode disable </pre> To enable the firewall <pre> netsh firewall set opmode enable </pre> Category : Windows 2008 Server Core |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Allow Ports | |||
<pre> | |||
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 | |||
</pre> | |||
<pre> | |||
netsh advfirewall firewall add rule name="ICMP Allow ICMPv6 Echo Request" protocol=icmpv6:128,any dir=in action=allow | |||
netsh advfirewall firewall add rule name="ICMP Allow ICMPv4 Echo Request" protocol=icmpv4:8,any dir=in action=allow | |||
</pre> | |||
<pre> | |||
netsh advfirewall firewall add rule name="SMB" dir=in action=allow protocol=TCP localport=445 | |||
</pre> | |||
To disable the firewall | To disable the firewall | ||
<pre> | <pre> | ||
netsh | netsh advfirewall set allprofiles state off | ||
</pre> | </pre> | ||
To enable the firewall | To enable the firewall | ||
<pre> | <pre> | ||
netsh | netsh advfirewall set allprofiles state on | ||
</pre> | </pre> | ||
[[Category : Windows | [[Category : Windows]] |
Latest revision as of 02:05, 10 November 2024
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 ICMPv6 Echo Request" protocol=icmpv6:128,any dir=in action=allow netsh advfirewall firewall add rule name="ICMP Allow ICMPv4 Echo Request" protocol=icmpv4:8,any dir=in action=allow
netsh advfirewall firewall add rule name="SMB" dir=in action=allow protocol=TCP localport=445
To disable the firewall
netsh advfirewall set allprofiles state off
To enable the firewall
netsh advfirewall set allprofiles state on