freebsd web服务器的防火墙配置
编辑以下文件,
/etc/rc.conf
添加下面的代码
1
2
3
4
5
6
7
firewall_enable="YES"
firewall_quiet="YES"
firewall_type="workstation"
firewall_allowservices="any"
firewall_myservices="22/tcp"
#firewall_myservices="8080/tcp 80/tcp 443/tcp"
firewall_logdeny="YES"
启动防火墙
service ipfw start
查看防火墙规则
ipfw list
测试防火墙规则
nmap -p 22,80 your ip
open则表示端口开放,反则表示过滤~
nmap官网
💘 相关文章
- Freebsd web server firewall configuration
- 以安全著称的web服务器Hiawatha 停止开发了
- hiawatha web服务器既然更新了
- 看来又一款开源的web服务器要黄了
- debian系统安装国产web服务器kangle的记录,
- 怎样更新开源的http3服务器-openlitespeed
- freebsd 系统正确安装Supervisor的方法
- 高端玩家fastcomet:万圣节,vps,虚拟机,服务器8折促销
- php Use of undefined constant SIGTERM - assumed 'SIGTERM'的解决方法
- how to Reset litespeed web management password