Post: Port open batch for FckPsn
03-04-2011, 12:24 PM #1
izyehboy
Treasure hunter
(adsbygoogle = window.adsbygoogle || []).push({});
[[DOWNLOAD LINKS ON THE BOTTOM OF THIS POST]]
[[im unsure if fckpsn is patched or not but ohwell.]]


Ok since there are many questions related to Fckpsn on this sub-forum, i might as wel post it here.

Some dont know how to add exceptions to their firewall so here are some simple batch scripts which adds the ports to your PC's firewall.

Copy and save them as open.bat and close.bat or any name you want...

WINDOWS XP:
Originally posted by another user
Open ports
    @echo off

Echo "Press ANY KEY to add ports 80 TCP (HTTP) / 443 TCP (HTTPSecure) / 53 UDP (DNS)"

pause

"%SYSTEMROOT%\system32\netsh" firewall add portopening TCP 80 HTTPFCKPSN
echo "Port 80 Added."
"%SYSTEMROOT%\system32\netsh" firewall add portopening TCP 443 HTTPSFCKPSN
echo "Port 443 Added."
"%SYSTEMROOT%\system32\netsh" firewall add portopening UDP 53 DNSFCKPSN
echo "Port 53 Added."

pause


Close ports
    @echo off

Echo "Press ANY KEY to REMOVE ports 80 TCP (HTTP) / 443 TCP (HTTPSecure) / 53 UDP (DNS)"

pause

"%SYSTEMROOT%\system32\netsh" firewall delete portopening TCP 80
echo "Port 80 Removed."
"%SYSTEMROOT%\system32\netsh" firewall delete portopening TCP 443
echo "Port 443 Removed."
"%SYSTEMROOT%\system32\netsh" firewall delete portopening UDP 53
echo "Port 53 Removed."

pause


Windows Vista / 7 (needs testing, please confirm someone!)

Originally posted by another user
Open ports
    @echo off

Echo "Press ANY KEY to REMOVE ports 80 TCP (HTTP) / 443 TCP (HTTPSecure) / 53 UDP (DNS)"

pause

"%SYSTEMROOT%\system32\netsh" advfirewall firewall add rule name="HTTP 80" dir=in action=allow protocol=TCP localport=80
Echo "80 TCP Open."

"%SYSTEMROOT%\system32\netsh" advfirewall firewall add rule name="HTTPS 443" dir=in action=allow protocol=TCP localport=443
ECHO "443 TCP Open."

"%SYSTEMROOT%\system32\netsh" advfirewall firewall add rule name="DNS 53" dir=in action=allow protocol=UDP localport=53
ECHO "53 UDP Open."

pause


Close ports
    @echo off

Echo "Press ANY KEY to add ports 80 TCP (HTTP) / 443 TCP (HTTPSecure) / 53 UDP (DNS)"

pause

"%SYSTEMROOT%\system32\netsh" advfirewall firewall delete rule name="HTTP 80" protocol=TCP localport=80
Echo "80 TCP Closed."

"%SYSTEMROOT%\system32\netsh" advfirewall firewall delete rule name="HTTPS 443" protocol=TCP localport=443
ECHO "443 TCP Closed."

"%SYSTEMROOT%\system32\netsh" advfirewall firewall delete rule name="DNS 53" protocol=UDP localport=53
ECHO "53 UDP Closed."

pause


XP: You must login or register to view this content.
Vista/7: You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked izyehboy for this useful post:

wowaka
03-04-2011, 12:55 PM #2
wowaka
Former Staff
Nice one :y:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo