Difference between revisions of "Vista64"

From twofo wiki
Jump to navigation Jump to search
m
m (Undo revision 2479 by Astropoint (Talk))
 
Line 3: Line 3:
Next we need to create the firewall rules.
Next we need to create the firewall rules.
<ul>
<ul>
<li><span style="color:red">netsh advfirewall firewall delete 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</span></li>
<li><span style="color:red">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</span></li>
<li><span style="color:red">netsh advfirewall firewall delete 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</span></li>
<li><span style="color:red">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</span></li>
<li><span style="color:red">netsh advfirewall firewall delete 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</span></li>
<li><span style="color:red">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</span></li>
<li><span style="color:red">netsh advfirewall firewall delete 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</span></li>
<li><span style="color:red">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</span></li>
<li><span style="color:red">netsh advfirewall firewall delete 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</span></li>
<li><span style="color:red">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</span></li>
<li><span style="color:red">netsh advfirewall firewall delete 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</span></li>
<li><span style="color:red">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</span></li>
<li><span style="color:red">netsh advfirewall firewall delete 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</span></li>
<li><span style="color:red">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</span></li>
<li><span style="color:red">netsh advfirewall firewall delete 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</span></li>
<li><span style="color:red">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</span></li>
<li><span style="color:red">netsh advfirewall firewall delete 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</span></li></ul>
<li><span style="color:red">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</span></li></ul>


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.
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.
<ul>
<ul>
<li><span style="color:red">netsh advfirewall firewall add rule name="DC++1" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall delete rule name="DC++1" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall add rule name="DC++2" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall delete rule name="DC++2" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall add rule name="DC++3" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall delete rule name="DC++3" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall add rule name="DC++4" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall delete rule name="DC++4" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall add rule name="DC++5" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall delete rule name="DC++5" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall add rule name="DC++6" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall delete rule name="DC++6" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall add rule name="DC++7" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall delete rule name="DC++7" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall add rule name="DC++8" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall delete rule name="DC++8" protocol=any dir=out program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li>
<li><span style="color:red">netsh advfirewall firewall add rule name="DC++9" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li></ul>
<li><span style="color:red">netsh advfirewall firewall delete rule name="DC++9" protocol=any dir=in program="c:\Program Files (x86)\dc++\DCPlusPlus.exe"</span></li></ul>

Latest revision as of 18:40, 23 November 2009

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"