测试版本库,随便折腾。
zhanggaojun
2024-08-21 5bae6d8e8ffea2540db353ba5481ace0efaec391
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p tcp -m tcp --dport 50000:52000 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 20:21 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 3099 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8088 -j ACCEPT  
-A INPUT -p tcp -m tcp --dport 8888 -j ACCEPT
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2000 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT