Vista 7 Firewall

From twofo wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Firstly open a Command Prompt as Administrator by right clicking on 'Command Prompt' from the Start Menu (Start -> Accessories) and selecting 'run as Administrator'. It's probably best to remove any existing DC++ rules in the firewall by going Control Panel -> Windows Firewall and removing any rules or exemptions relating to DC++ already there.

Next we need to create the firewall rules.

  • netsh advfirewall firewall add rule name="DC++1" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe" action=allow enable=yes remoteip=137.205.0.0/16
  • netsh advfirewall firewall add rule name="DC++2" protocol=any dir=in program="%HOMEPATH%\dc++\DCPlusPlus.exe" action=allow enable=yes remoteip=137.205.0.0/16
  • netsh advfirewall firewall add rule name="DC++3" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe" action=allow enable=yes remoteip=127.0.0.1
  • netsh advfirewall firewall add rule name="DC++4" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe" action=block enable=yes remoteip=0.0.0.1-127.0.0.0
  • netsh advfirewall firewall add rule name="DC++5" protocol=any dir=in program="%HOMEPATH%\dc++\DCPlusPlus.exe" action=block enable=yes remoteip=0.0.0.1-127.0.0.0
  • netsh advfirewall firewall add rule name="DC++6" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe" action=block enable=yes remoteip=127.0.0.2-137.205.0.0
  • netsh advfirewall firewall add rule name="DC++7" protocol=any dir=in program="%HOMEPATH%\dc++\DCPlusPlus.exe" action=block enable=yes remoteip=127.0.0.2-137.205.0.0
  • netsh advfirewall firewall add rule name="DC++8" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe" action=block enable=yes remoteip=137.205.255.255-255.255.255.255
  • netsh advfirewall firewall add rule name="DC++9" protocol=any dir=in program="c%HOMEPATH%\dc++\DCPlusPlus.exe" action=block enable=yes remoteip=137.205.255.255-255.255.255.255

You should now have DC++ configured to block Off Campus connections. To remove these rules you can do so from command line by running the following commands or you can do it via the GUI from Control Panel (by going to Control Panel -> Windows Firewall

  • netsh advfirewall firewall delete rule name="DC++1" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++2" protocol=any dir=in program="%HOMEPATH%\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++3" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++4" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++5" protocol=any dir=in program="%HOMEPATH%\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++6" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++7" protocol=any dir=in program="%HOMEPATH%\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++8" protocol=any dir=out program="%HOMEPATH%\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++9" protocol=any dir=in program="%HOMEPATH%\dc++\DCPlusPlus.exe"