Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rem
- rem http://winintro.ru/netsh_technicalreference.en/html/1a736f2d-ecf8-4780-8e0f-85c4db75230b.htm
- rem
- netsh advfirewall reset
- rem allow
- netsh advfirewall firewall add rule name="_ input TCP Port 80" dir=in action=allow protocol=TCP localport=80
- netsh advfirewall firewall add rule name="_ input icmp" dir=in action=allow protocol=icmpv4
- netsh advfirewall firewall add rule name="_ spotify" dir=out action=allow program="C:\users\pepe\appdata\roaming\spotify\spotify.exe"
- rem block
- rem netsh advfirewall firewall add rule name="_ block emby" dir=in action=block edge=yes remoteip=any protocol=TCP localport=1900,8096,8920
- rem allow
- netsh advfirewall firewall add rule name="_ allow emby 1.1.1.1" dir=in action=allow edge=yes remoteip=1.1.1.1 protocol=TCP localport=1900,8096,8920
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement