瀏覽代碼

Create pf.conf

FusionPBX 8 年之前
父節點
當前提交
07785e2839
共有 1 個文件被更改,包括 34 次插入0 次删除
  1. 34 0
      freebsd/resources/pf/pf.conf

+ 34 - 0
freebsd/resources/pf/pf.conf

@@ -0,0 +1,34 @@
+set skip on lo0
+pass out quick all
+scrub in all
+
+antispoof for lo0
+table <fail2ban> persist
+
+block in all
+block in quick from <fail2ban>
+#pass in quick inet proto icmp all
+#pass in quick inet6 proto icmp6 all
+
+pass in quick inet proto tcp from any to any port 22 keep state
+pass in quick inet proto tcp from any to any port 80 keep state
+pass in quick inet proto tcp from any to any port 443 keep state
+pass in quick inet proto tcp from any to any port 5060 keep state
+pass in quick inet proto udp from any to any port 5060 keep state
+pass in quick inet proto tcp from any to any port 5080 keep state
+pass in quick inet proto udp from any to any port 5080 keep state
+pass in quick inet proto udp from any to any port 16384:32768 keep state
+
+
+
+
+
+
+
+
+
+
+
+
+
+