
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服务器的防火墙配置
- 轻量级的Php mysql web 管理客户端程序Adminer
- Linux系统怎样添加web运行账户?附上常用的Linux用户管理命令
- cloudflare也提供网站统计服务-Web Analytics
- freebsd 系统正确安装Supervisor的方法
- 一款基于web GUI的 boltdb数据库编辑器
- SSH Connecting to server X attempted a socket operation on an unreachable network. (os error 10051)
- 超級簡單的MikroTik hAP ac3通過DHCP_Server自動配置IPv6地址方法
- Example of ufw firewall command
- Tetua-Open source lightweight cms program configuration github login tutorial based on golang and mysql