Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Vista advanced firewall settings

Reply
 
Old 07-06-2008   #1 (permalink)
Wincek


 
 

Vista advanced firewall settings

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



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Vista Firewall with Advanced Security Vista General
Vista Advanced Firewall Vista security
IE7 / Vista Advanced privacy settings issue Vista General
Vista Advanced Firewall Config Vista General
Vista Advanced Firewall broken? Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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