
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服务器的防火墙配置
- 一款基于web GUI的 boltdb数据库编辑器
- 轻量级的Php mysql web 管理客户端程序Adminer
- 转载freebsd的常用命令收集
- 以安全著称的web服务器Hiawatha 停止开发了
- 非常漂亮的一款web服務器在線時間監控工具- Uptime Kuma
- 另一款BT(宝塔面板)开源的服务器管理面板工具mdserver-web
- 重设litespeed的web管理密码
- 超級簡單的MikroTik hAP ac3通過DHCP_Server自動配置IPv6地址方法
- php Use of undefined constant SIGTERM - assumed 'SIGTERM'的解决方法