Vista32

From twofo wiki
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\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\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\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\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\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\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\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\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\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="c:\Program Files\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++2" protocol=any dir=in program="c:\Program Files\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++3" protocol=any dir=out program="c:\Program Files\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++4" protocol=any dir=out program="c:\Program Files\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++5" protocol=any dir=in program="c:\Program Files\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++6" protocol=any dir=out program="c:\Program Files\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++7" protocol=any dir=in program="c:\Program Files\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++8" protocol=any dir=out program="c:\Program Files\dc++\DCPlusPlus.exe"
  • netsh advfirewall firewall delete rule name="DC++9" protocol=any dir=in program="c:\Program Files\dc++\DCPlusPlus.exe"