2015-11-06 21:20:06 +08:00
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p tcp \
|
|
|
|
--sport 22 \
|
2022-02-26 00:24:21 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctstate ESTABLISHED \
|
2022-02-26 00:28:32 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctdir Reply \
|
2015-11-06 21:20:06 +08:00
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p tcp \
|
|
|
|
--dport 22 \
|
2022-02-26 00:24:21 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctstate NEW,ESTABLISHED \
|
2022-02-26 00:28:32 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctdir Original \
|
2014-04-01 14:19:38 +08:00
|
|
|
-j ACCEPT
|
2015-11-06 21:20:06 +08:00
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p tcp \
|
|
|
|
--sport 22 \
|
2022-02-26 00:24:21 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctstate ESTABLISHED \
|
2022-02-26 00:28:32 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctdir Reply \
|
2015-11-06 21:20:06 +08:00
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p icmp \
|
2022-02-26 00:24:21 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctstate ESTABLISHED \
|
2022-02-26 00:28:32 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctdir Reply \
|
2015-11-06 21:20:06 +08:00
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p icmp \
|
2022-02-26 00:24:21 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctstate NEW,ESTABLISHED \
|
2022-02-26 00:28:32 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctdir Original \
|
2015-11-06 21:20:06 +08:00
|
|
|
-j ACCEPT
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p icmp \
|
2022-02-26 00:24:21 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctstate ESTABLISHED \
|
2022-02-26 00:28:32 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctdir Reply \
|
2015-11-06 21:20:06 +08:00
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
2022-02-26 00:24:21 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctstate ESTABLISHED \
|
2022-02-26 00:28:32 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctdir Reply \
|
2015-11-06 21:20:06 +08:00
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
2022-02-26 00:24:21 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctstate NEW,ESTABLISHED \
|
2022-02-26 00:28:32 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctdir Original \
|
2015-11-06 21:20:06 +08:00
|
|
|
-j ACCEPT
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
2022-02-26 00:24:21 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctstate ESTABLISHED \
|
2022-02-26 00:28:32 +08:00
|
|
|
-m conntrack \
|
|
|
|
--ctdir Reply \
|
2015-11-06 21:20:06 +08:00
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-j DROP
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-j DROP
|
|
|
|
iptables \
|
2020-11-17 08:20:53 +08:00
|
|
|
-w \
|
2015-11-06 21:20:06 +08:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-j DROP
|