Vista64

From twofo wiki
Revision as of 18:40, 23 November 2009 by Astropoint (talk | contribs) (Undo revision 2479 by Astropoint (Talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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="c:\Program Files (x86)\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="c:\Program Files (x86)\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="c:\Program Files (x86)\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="c:\Program Files (x86)\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="c:\Program Files (x86)\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="c:\Program Files (x86)\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="c:\Program Files (x86)\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="c:\Program Files (x86)\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:\Program Files (x86)\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.

  • netsh advfirewall firewall delete rule name="DC++1" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++2" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++3" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++4" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++5" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++6" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++7" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++8" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++9" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"