
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服务器的防火墙配置
- Debian 10 installation MySQL server record
- php Use of undefined constant SIGTERM - assumed 'SIGTERM'的解决方法
- how to Reset litespeed web management password
- freebsd Unknown user: 目录名.的解决方法
- Example of ufw firewall command
- debian/Ubuntu simple firewall setupthing
- FreeBSD 安装PHP7.4 和 Nginx
- 转载freebsd的常用命令收集
- 重设litespeed的web管理密码