Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Vista advanced firewall settings

Reply
Thread Tools Display Modes

Vista advanced firewall settings

 
 
Wincek
Guest
Posts: n/a

 
      07-06-2008
Hi,
I've problem with advanced firewall configuration in Vista. I've created
batch file for configuration:

--reset firewall
netsh advfirewall set currentprofile state off
netsh advfirewall set currentprofile state on
--delete all rules
netsh advfirewall firewall delete rule name=all
--change firwall policy to block all inbound and block all outband
netsh advfirewall set allprofiles firewallpolicy
blockinboundalways,blockoutbound
--allow Ping
netsh advfirewall firewall add rule name="OUT_ALLOW__PING" profile=any
protocol=ICMPV4 dir=out action=allow
--allow DNS request
netsh advfirewall firewall add rule name="OUT_ALLOW__DNS" profile=any
protocol=UDP localport=any remoteport=53 dir=out action=allow
--and outgoing HTTP
netsh advfirewall firewall add rule name="OUT_ALLOW__TCP_HTTP" profile=any
protocol=TCP localip=any localport=any remoteip=any remoteport=80,443,8080
dir=out action=allow


.... in this configuration any application have permision to access to the
Internet, but if I change last rule to:

--and outgoing HTTP
netsh advfirewall firewall add rule name="OUT_ALLOW__TCP_HTTP" profile=any
protocol=TCP localip=any localport=any remoteip=any remoteport=80,443,8080
dir=out program="C:\Program Files\Internet Explorer\iexplore.exe"
action=allow

if I restrict to one program e.g. IEXPLORE or FIREFOX by add parametr
program="[path]" to declaration, these program's don't connect to the
Internet
Does anybody find solution for this problem??

[Sorry for my English its not very weel]
Please help


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista Advanced Firewall RayG Windows Vista Security 18 01-17-2008 10:11 AM
IE7 / Vista Advanced privacy settings issue Wonderman Windows Vista General Discussion 0 11-12-2007 03:38 PM
Vista Advanced Firewall Config magic144 Windows Vista General Discussion 2 08-21-2007 01:08 PM
Advanced interface to Windows Firewall DefecTalisman Windows Vista General Discussion 7 06-24-2007 02:43 PM
Vista Advanced Firewall broken? Daniel Windows Vista Networking 1 11-02-2006 01:36 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59