CMDコマンドラインnetshファイアウォールルールの追加
1367 ワード
1.e:f.exeのファイアウォールルールを追加します(参照:https://www.cnblogs.com/zhen656/p/4275270.html)で、管理者権限が必要です.
削除
2、ポートの追加
削除
転載先:https://www.cnblogs.com/pu369/p/9983198.html
>netsh advfirewall firewall add rule name="f.exe" dir=in program="e:\f.exe" action=allow
削除
netsh advfirewall firewall delete rule name="f.exe"
2、ポートの追加
netsh advfirewall firewall add rule name="HTTP" protocol=TCP dir=in localport=8080 action=allow
削除
netsh advfirewall firewall delete rule name="HTTP" protocol=TCP dir=in localport=8080
転載先:https://www.cnblogs.com/pu369/p/9983198.html