Freebsd web server firewall configuration
Edit the following files,
/etc/rc.conf
Add the following code
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"
Start firewall
service ipfw start
View firewall rules
ipfw list
Test firewall rules
nmap -p 22,80 your ip
open means the port is open, otherwise it means filtering ~
nmap official website
💘 相关文章
- freebsd web服务器的防火墙配置
- cloudflare也提供网站统计服务-Web Analytics
- Configure nginx to only allow cloudflare's IP to connect to the server shell script
- 以安全著称的web服务器Hiawatha 停止开发了
- 重设litespeed的web管理密码
- Tetua-Open source lightweight cms program configuration github login tutorial based on golang and mysql
- freebsd Unknown user: 目录名.的解决方法
- 免費開源去中心化Web 內容發佈軟體-Planet
- 使用301实现域名跳转到www包括https的3种方法
- freebsd 系统正确安装Supervisor的方法