2
3
How can I setup windows 7 firewall so that it blocks ALL inbound and outbound traffic of all kinds, unless I am connected to a network that is designated in network options as public?
I'd like to block Home and Private. Thanks for any advice.
2
3
How can I setup windows 7 firewall so that it blocks ALL inbound and outbound traffic of all kinds, unless I am connected to a network that is designated in network options as public?
I'd like to block Home and Private. Thanks for any advice.
2
The following worked when I tried it.
- Open the Start menu.
- In the search box, search for "Windows Firewall."
- In the search results, select "Windows Firewall with Advanced Security."
- In the "Overview" section, check to see which profile is active. By default, it should "Private Profile."
- Next, click on the link marked "Windows Firewall Properties."
- Select the tab labeled "Private Profile."
- Make sure that "Firewall State" is set to "On (recommended)."
- Under "Inbound Connections" click on the drop-down menu and select "Block all connections."
- Under "Outbound Connections" click on the drop-down menu and select "Block."
- Next to "Protected network connections," click the button marked "Customize."
- Make sure that all of the check boxes are marked, especially "Local Area Connection" and "Wireless Network Connection" (if present).
- Click the "OK" button. When that dialog closes, click the "OK" button on the next dialog.
2
On Windows 7 Home Premium:
Start
| Control Panel
| Firewall
| "Advanced Settings"
"Windows Firewall with Advanced Security"
WindowInbound Rules
and New Rule
Custom
All Programs
Any
Any IP Address
(both local
and remote
)Block the connection
Domain
and Private
(Untick Public
)Click on Finish
And now you have an inbound Rule that blocks All Application from accessing any IP on any Port on Domain and Private (Home or Work or Private Networks)
And now you have to make exactly the same rule under "Outbound Rules"
Although Windows Firewall does block a lot of things, it does not block ALL traffic. Barlop has added that WireShark still detects some traffic in and out of the system even when everything meant to be blocked using either method.
I haven't fully tested this but do you really need to make a rule for incoming, given that there is a 'block all' option in windows firewall properties for incoming? – barlop – 2014-05-08T08:15:36.797
1and you should know that traffic still shows in wireshark, so it doesn't seem to block everything – barlop – 2014-05-08T21:50:18.197
Looks like I didn't notice the block all option.. so Ramhound's answer would probably more straightforward to do. Wireshark can see all incoming attempt to the machine, but there won't be any replies, or any outgoing. – Darius – 2014-05-08T23:06:16.007
dude, try wireshark with his method, and as with your method, you'll see that there are outgoing and incoming for some packets. I mentioned this on your post and his post. And if you don't believe me then try it. It blocks a lot, and so you see a lot less in wireshark than you would if more packets were allowed. But, it doesn't block all. – barlop – 2014-05-08T23:14:37.753
@barlop I haven't tried wireshark myself, but the question asked to block only Private and Home part of Network set up. The question still wants internet/intranet access if the network is set to "public" so I am assuming you will still see traffic. (Even if its just DHCP asking for IP address). If the question wants no network at all, perhaps physical disconnection is preferred, or a 3rd party firewall that can completely bar all connection (ZoneAlarm can do this when I used it ages ago) – Darius – 2014-05-08T23:38:12.543
1The question said that on networks designated private, he wants to block all.. so that would imply no intranet there. Obviously he wants traffic in the public one 'cos he said he doesn't want to block in the public one. Your "assumption"(you called it that)that he will see traffic in the public one is correct but obvious given that he isn't blocking or looking to block anything in the public one. And what you're saying is a diversion from my point.Win7 firewall works on a per profile basis, nobody denies that.I'm talking of extent of blocking, -on the profile he is doing the blocking on-. – barlop – 2014-05-08T23:50:46.523
As for ZA.. well, if it was ages ago, and more signfiicantly, you probably didn't even test it then, then don't be so sure. And btw, the win7 firewall is pretty good at blocking outgoing. You seem to imply that ZA is better, I have my doubts. I doubt you launched wireshark(or ethereal at the time) and tested it. So your claim might be a tad too confident. – barlop – 2014-05-08T23:53:08.957
1Thanks for that. I did misunderstand your original comment about the visible traffic. So wireshark can still see some traffic, even when the Windows 7 firewall said "Block all" on the correct profile.. this is what you mean right? – Darius – 2014-05-09T00:04:13.763
1
Rather than navigate through all these pages simply click on the Start button... type CMD in the search field... click Search. You'll see cmd.exe in the PROGRAM field. Click on cmd.exe. Your DOS box will come up. In it type ipconfig /release and hit Enter. This will shut down all inbound and outbound traffic.
To get inbound and outbound traffic running again simply run up this DOS box again ( I have my DOS box icon pinned to the Taskbar at the bottom of the screen ) and now type in
ipconfig /renew
and hit enter. All comes back to normal.
^ This. And it gets much worse in Windows 10. So instead you should install PFSense on a Virtual Machine, and route all your Windows traffic through that VM. (The question doesn't specify, but that's why you want to do what it asks: to make a good internet kill switch (for your VPN)) – Spectraljump – 2018-02-17T21:55:36.367
3One might want to additionally try disabling the allow rules in outgoing, and anything in 'allow programs'. Though even then, it's worth bearing in mind that it stops a lot but not everything. Traffic still shows in wireshark so it doesn't block everything, though it seems there isn't anything one can do in the windows 7 firewall to totally block everything. It does block a lot though. Though some fundamental stuff is still sending and seeing packets as seen in wireshark. – barlop – 2014-05-08T21:52:45.837