Wednesday, September 24, 2014

Commandline to change firewal rules in Windows 7/8

I was looking for a commandline based approach to add new rules on Windows Firewall and it was simple to do:

  • First check if there are already some rules set:
    netsh advfirewall firewall show rule name=**App**
  • Then you add a separate rule for allowing input traffic (as required)
    netsh advfirewall firewall add rule name=**App** dir=in action=allow profile=public program=**App_Location** enable=yes
  • And a separate rule for allowing output traffic (as required)
    netsh advfirewall firewall add rule name=**App** dir=out action=allow profile=public program=**App_Location** enable=yes
  • Finally if required, the rule can be deleted
    netsh advfirewall firewall delete rule name=**App**

Tuesday, September 9, 2014

Automotic logon in to company intranet zone using Firefox

In AD based domain in company intranet, IE is the default browser and it does login automatically in to the intranet sites (in .NET it was Windows Authentication).

To do the same in firefox, do a "about:config" and the look for "network.negotiate-auth.trusted-uris". Add you company domains in there where you want automatic login like "bt.com"

Mozilla documentation : https://developer.mozilla.org/en-US/docs/Integrated_Authentication