Comments (6)
Hey, thanks for filing this issue. I'm not familiar with firewall states, and a cursory investigation reveals that /usr/libexec/ApplicationFirewall/socketfilterfw
(what this command uses under the hood) doesn't have an obvious way to set state 2 on. I did notice that if I set block all, then turn it off and on from the commandline, it maintained the setting in Settings.
Do you see the same thing?
from m-cli.
I do not see the same thing.
This is before I disable and re-enable with m
:
Then I disable and re-enable with m
, using the following command:
m firewall disable && m firewall enable
After I quit out of System Preferences (it doesn't seem to refresh the settings in realtime in System Preferences if you disable/enable with m
) and open the firewall tab back up in Security & Privacy, these are my settings:
from m-cli.
So I looked at the command you mentioned and found that I can set State 2 with the following command:
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setblockall on
You can see what happens when I disable the firewall with m
, re-enable the firewall, and then issue that command:
$ m firewall status
Firewall is enabled. (State = 2)
$ m firewall disable
Firewall is disabled. (State = 0)
$ m firewall enable
Firewall is enabled. (State = 1)
$ m firewall status
Firewall is enabled. (State = 1)
$ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setblockall on
Firewall is set to block all non-essential incoming connections
$ m firewall status
Firewall is enabled. (State = 2)
from m-cli.
Ah well researched! If you feel up to it, feel free to open a PR. Otherwise I'll have a look at the end of the week.
from m-cli.
Done!
from m-cli.
Merged #161 , so I'll close this
from m-cli.
Related Issues (20)
- m bluetooth command doesn't work HOT 2
- iTunes commands not working on macOS 10.15.6 HOT 4
- Automated test suite
- Airdrop status outputs an error first use HOT 1
- `m trash status` return incorrect content info
- wallpaper command only sets wallpaper for current desktop HOT 2
- set wallpaper to hex color instead of image file HOT 4
- localhost operator uses wrong sed parameter HOT 2
- Fix hard coded default wi-fi interface HOT 2
- We can add more features to DNS plugin HOT 1
- Bash 5.1 errors, unary operator expected HOT 2
- Usage information not following POSIX standard HOT 2
- Headless HOT 1
- Combined itunes play/pause
- AirDrop off disables airdrop even after uninstall
- Roadmap HOT 1
- m bluetooth is not working in apple m1 pro
- m bluetooth is not working in apple m1 pro HOT 2
- Project dead? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m-cli.