iptables
# Generated by iptables-save 2019/4/4
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
# example
-A INPUT -s 192.168.0.192 -p tcp -m tcp -m multiport --dports 60010,50090,19888,10002,8084,50070,8086,8888,11000,8088,50075,8091,60030,8042,7180 -j ACCEPT
-A INPUT -s 192.168.0.192 -p tcp -m tcp -m multiport --dports 873,25020,25010,18088,64689,80,63751,50075,7183,7072,8889,25000,8084,12321,8081 -j ACCEPT
-A INPUT -s 192.168.0.192 -p tcp -m tcp -m multiport --dports 8050,3181,50977,31079,4181,9010,8051,9095,4040,9868,9864,9870 -j ACCEPT
#drop
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m multiport --dports 60010,50090,19888,10002,8084,50070,8086,8888,11000,8088,50075,8091,60030,8042,7180 -j DROP
-A INPUT -p tcp -m multiport --dports 873,25020,25010,18088,64689,80,63751,50075,7183,7072,8889,25000,8084,12321,8081 -j DROP
-A INPUT -p tcp -m multiport --dports 8050,3181,50977,31079,4181,9010,8051,9095,4040,9868,9864,9870 -j DROP
COMMIT