站内公告:

亲友传真---海外信息直接看 https://qycz.org

Main Menu

mac os怎样内建防火墙

作者 大力金刚鼻, 九月 28, 2021, 05:44:23 上午

大力金刚鼻

论坛有人提到过,但关键字是什么,网上没法搜,像是什么pf

jingyue

#1
引用自: 大力金刚鼻 于 九月 28, 2021, 05:44:23 上午
论坛有人提到过,但关键字是什么,网上没法搜,像是什么 pf

在苹果电脑 macOS 操作系统上,打开【终端】,输入如下命令:

1)获取 root 权限,
引用
sudo su
2) root 权限下,查看系统自带的 pf 网络防火墙的状态,
引用
pfctl -sr

早期的苹果电脑操作系统还自带了 ipfw 网络防火墙,
你也可以 root 权限下,使用如下命令,看看输出结果,就知道是否有 ipfw 了,
引用
ipfw -a list

如何设置 PF 网络防火墙规则,

可参考 OpenBSD 的官方网站,上面有非常详细的文档,
http://www.openbsd.org/faq/pf/filter.html

或者 FreeBSD 的官方网站,
https://docs.freebsd.org/en/books/handbook/firewalls/#firewalls-pf


引用自: jingyue 于 四月 14, 2018, 12:42:13 下午


Mac 苹果电脑操作系统及其生命周期:

                           (OS X 的生命周期大约 3 年 + 2 个月)

                              macOS 10.14,(2018年9月——2021年11月)
                              macOS 10.15.1,(2019年10月——2022年12月)

                           (A)系统防火墙( 苹果系统自带,默认为关闭状态,相当于没有防火墙,必需在打开状态才会保护系统, ),普通用户仅此一个简单的系统防火墙已经够用,
                           (B)网络防火墙:PF,( 苹果系统自带, 默认已经启用,但过滤规则为空,相当于没有,),通过 [ 终端 ] 命令,添加规则才会起作用, 如使用 [ 整机隔离虚拟机之 Host— only ] 方案,必须设置 PF 防火墙,
                           (C)应用程序防火墙( 可选 ):第三方应用程序防火墙 Little Snitch ,(商用软件)可以长期试用,

【特稿】非凡传奇时代 法轮大法传世33周年
https://www.epochtimes.com/gb/25/5/12/n14506735.htm
https://www.minghui.org/mh/articles/2023/1/20/为什么会有人类-455562.html
https://www.minghui.org/mh/articles/2023/4/17/为什么要救度众生-458929.htm

https://www.minghui.org/mh/articles/2024/9/30/为什么人类是迷的社会-483472.html
世上几人醒
https://gb.falundafa.org/chigb/hy4/hy4-051.htm

【特稿】法轮功创始人传功和生活的故事
https://cn.ntdtv.com/gb/2025/01/05/a103945427.html
https://www.minghui.org/mh/articles/2025/1/4/【专访】我们的师父-487964.html
https://www.minghui.org/mh/articles/2024/12/17/回忆修炼路上出现的一次神迹-486159.html
https://www.minghui.org/mh/articles/2024/8/5/深蓝色的法轮-480298.html
https://www.minghui.org/mh/articles/2010/5/18/【征稿选登】李洪志师父在92东方健康博览会的奇迹-223842.html
https://www.minghui.org/mh/articles/2012/11/3/未来人的神话——忆师尊在哈尔滨传法-264844.html
https://www.minghui.org/mh/articles/2014/5/11/【庆祝513】回忆师尊在北京传法的片段-291380.html
https://www.minghui.org/mh/articles/2022/5/21/【庆祝513】忆师恩-万载难遇的机缘(上)-442904.html
https://www.minghui.org/mh/articles/2022/5/21/【庆祝513】忆师恩-万载难遇的机缘(下)-443903.html
https://www.minghui.org/mh/articles/2023/6/11/在东方博览会上见证师父的神通法力-461847.html
https://www.minghui.org/mh/articles/2024/1/15/一名英国学员在神韵演出现场看到的(译文)-471044.html
https://www.minghui.org/mh/articles/2025/4/3/感谢中国大陆发资料的同修们-492243.html

jingyue

#2

有一个带图形界面的基于 PF 防火墙的防火墙软件,名字 Murus,

有免费版,基础版,专业版,

Murus 官方网站:

https://www.murusfirewall.com/
https://murusfirewall.com/murus/


其它参考:

苹果电脑应用软件网站,
www.macupdate.com

【特稿】非凡传奇时代 法轮大法传世33周年
https://www.epochtimes.com/gb/25/5/12/n14506735.htm
https://www.minghui.org/mh/articles/2023/1/20/为什么会有人类-455562.html
https://www.minghui.org/mh/articles/2023/4/17/为什么要救度众生-458929.htm

https://www.minghui.org/mh/articles/2024/9/30/为什么人类是迷的社会-483472.html
世上几人醒
https://gb.falundafa.org/chigb/hy4/hy4-051.htm

【特稿】法轮功创始人传功和生活的故事
https://cn.ntdtv.com/gb/2025/01/05/a103945427.html
https://www.minghui.org/mh/articles/2025/1/4/【专访】我们的师父-487964.html
https://www.minghui.org/mh/articles/2024/12/17/回忆修炼路上出现的一次神迹-486159.html
https://www.minghui.org/mh/articles/2024/8/5/深蓝色的法轮-480298.html
https://www.minghui.org/mh/articles/2010/5/18/【征稿选登】李洪志师父在92东方健康博览会的奇迹-223842.html
https://www.minghui.org/mh/articles/2012/11/3/未来人的神话——忆师尊在哈尔滨传法-264844.html
https://www.minghui.org/mh/articles/2014/5/11/【庆祝513】回忆师尊在北京传法的片段-291380.html
https://www.minghui.org/mh/articles/2022/5/21/【庆祝513】忆师恩-万载难遇的机缘(上)-442904.html
https://www.minghui.org/mh/articles/2022/5/21/【庆祝513】忆师恩-万载难遇的机缘(下)-443903.html
https://www.minghui.org/mh/articles/2023/6/11/在东方博览会上见证师父的神通法力-461847.html
https://www.minghui.org/mh/articles/2024/1/15/一名英国学员在神韵演出现场看到的(译文)-471044.html
https://www.minghui.org/mh/articles/2025/4/3/感谢中国大陆发资料的同修们-492243.html


快速回复

警告: 该贴已经至少 180 天没有更改。
除非你一定要回复,否则也许考虑发一个新贴会更好。

Note: this post will not display until it has been approved by a moderator.

名称:
电子邮件:
验证码:
请将此框留空:
三乘七等于几?(请用阿拉伯数字回答):
Shortcuts: ALT+S post or ALT+P preview