🟢Mac防火墙
Mac 防火墙允许指定ip访问指定端口
防火墙规则配置
规则说明
配置文件示例
# Allow all outgoing traffic
pass out all
# Block all incoming access to port 26657
block in proto tcp from any to any port 26657
# Allow incoming traffic from specific IPs to port 26657
pass in proto tcp from 192.168.5.4 to any port 26657
pass in proto tcp from 119.45.139.214 to any port 26657
# Allow incoming traffic from localhost (loopback)
pass in on lo0 all
# Allow incoming traffic for established connections
pass in proto tcp from any to any flags S/SA keep state测试和应用配置
进一步调试
Last updated