How to block all outgoing connections?

peter7277

New member
Member
Local time
5:10 AM
Messages
83
How to block all outgoing connection in windows firewall and if any program try to connect to internet to show a window that will allow me to decide to allow or not allow this program to connect to internet? Is there a way to do that with command prompt command?
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Hi peter7277,

Select Windows Firewall Properties on the window to change the default behavior. Switch the outbound connections setting from Allow (default) to Block on all profile tabs. Additionally, click on the customize button on each tab next to Logging, and enable logging for successful connections
 

My Computer My Computer

At a glance

Win 10 x64, Linux Lite, Win 7 x64, BlackArch,...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
Hi peter7277,

Select Windows Firewall Properties on the window to change the default behavior. Switch the outbound connections setting from Allow (default) to Block on all profile tabs. Additionally, click on the customize button on each tab next to Logging, and enable logging for successful connections


It works, but i don't get notification window when a program is trying to connect to internet, so i can't allow programs that i want to connect to internet.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
Computer type
PC/Desktop
OS
Windows 7 Ultimate x64

My Computer My Computer

At a glance

Win 10 x64, Linux Lite, Win 7 x64, BlackArch,...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
It looks Windows Firewall native behavior is to not notify when a program is trying to connect to internet and you have to search the logs to find this information which is not a good solution. It seems i need to install third party firewall if i want to get notifications which i don't want to do.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
It looks Windows Firewall native behavior is to not notify when a program is trying to connect to internet and you have to search the logs to find this information which is not a good solution. It seems i need to install third party firewall if i want to get notifications which i don't want to do.

Those 3rd party programs ironically run on the native Windows Firewall itself.

If you were to disable the Windows Firewall service or any of it's dependencies: Those other programs (TinyWall, GlassWire, etc) would equally cease.

To force a whitelist (block all connections unless listed) with the Windows Firewall:
Windows key -> Windows Firewall with Advanced Security
or
Windows key + R -> WF.msc

1. Click on "Windows Firewall properties"

For each tab (Domain/Private/Public) follow these instructions:
1. Set "INBOUND CONNECTIONS" to BLOCK (default)
2. Set "OUTBOUND CONNECTIONS" to BLOCK
3. Click on "Customize" -> "Display a notification" -> Yes

Windows Firewall will and does notify you when a connection is blocked. It does not show a notification for every single instance of a blocked connection (inbound/outbound).

You could write a simple script (AutoIt, AutoHotKey, VBS, JS, etc) to check the directory of where the logs are stored and if one is found: Parse it and display a message box ('pop up notification') with the related data.

This would be a much preferred approach as opposed to downloading some arbitrary program from an unknown source. It also prevents the potential of a 'virus' if you're worried about such things. No harm can come from a visual basic script reading a log file. :p
 

My Computer My Computer

At a glance

Windows 7 Lite: Professional 64-bitIntel amd644GB DDR3
Computer type
Laptop
OS
Windows 7 Lite: Professional 64-bit
CPU
Intel amd64
Memory
4GB DDR3
Screen Resolution
1366 x 768
Hard Drives
5400 RPM
Browser
Google Chrome
Other Info
Computer programmer enthusiast and hobbyist
Back
Top