2015-11-06 13:20:06 +00:00
|
|
|
ebtables \
|
2020-11-17 00:20:53 +00:00
|
|
|
--concurrent \
|
2015-11-06 13:20:06 +00:00
|
|
|
-t nat \
|
|
|
|
-A libvirt-J-vnet0 \
|
|
|
|
-s 01:02:03:04:05:06/ff:ff:ff:ff:ff:ff \
|
|
|
|
-p 0x806 \
|
|
|
|
-j ACCEPT
|
|
|
|
ebtables \
|
2020-11-17 00:20:53 +00:00
|
|
|
--concurrent \
|
2015-11-06 13:20:06 +00:00
|
|
|
-t nat \
|
|
|
|
-A libvirt-J-vnet0 \
|
|
|
|
-s 01:02:03:04:05:06/ff:ff:ff:ff:ff:ff \
|
|
|
|
-p 0x806 \
|
|
|
|
-j DROP
|
|
|
|
ebtables \
|
2020-11-17 00:20:53 +00:00
|
|
|
--concurrent \
|
2015-11-06 13:20:06 +00:00
|
|
|
-t nat \
|
|
|
|
-A libvirt-J-vnet0 \
|
|
|
|
-s 01:02:03:04:05:06/ff:ff:ff:ff:ff:ff \
|
|
|
|
-p 0x806 \
|
|
|
|
-j DROP
|
|
|
|
ebtables \
|
2020-11-17 00:20:53 +00:00
|
|
|
--concurrent \
|
2015-11-06 13:20:06 +00:00
|
|
|
-t nat \
|
|
|
|
-A libvirt-P-vnet0 \
|
|
|
|
-d aa:bb:cc:dd:ee:ff/ff:ff:ff:ff:ff:ff \
|
|
|
|
-p 0x800 \
|
|
|
|
-j ACCEPT
|
|
|
|
ebtables \
|
2020-11-17 00:20:53 +00:00
|
|
|
--concurrent \
|
2015-11-06 13:20:06 +00:00
|
|
|
-t nat \
|
|
|
|
-A libvirt-P-vnet0 \
|
|
|
|
-d aa:bb:cc:dd:ee:ff/ff:ff:ff:ff:ff:ff \
|
|
|
|
-p 0x800 \
|
|
|
|
-j DROP
|
|
|
|
ebtables \
|
2020-11-17 00:20:53 +00:00
|
|
|
--concurrent \
|
2015-11-06 13:20:06 +00:00
|
|
|
-t nat \
|
|
|
|
-A libvirt-P-vnet0 \
|
|
|
|
-d aa:bb:cc:dd:ee:ff/ff:ff:ff:ff:ff:ff \
|
|
|
|
-p 0x800 \
|
|
|
|
-j DROP
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m mac \
|
|
|
|
--mac-source 01:02:03:04:05:06 \
|
|
|
|
--destination 10.1.2.3/32 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 2 \
|
|
|
|
-m state \
|
|
|
|
--state NEW,ESTABLISHED \
|
|
|
|
-m comment \
|
|
|
|
--comment 'accept rule \
|
|
|
|
-- dir out' \
|
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
--source 10.1.2.3/32 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 2 \
|
|
|
|
-m state \
|
|
|
|
--state ESTABLISHED \
|
|
|
|
-m comment \
|
|
|
|
--comment 'accept rule \
|
|
|
|
-- dir out' \
|
|
|
|
-j ACCEPT
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m mac \
|
|
|
|
--mac-source 01:02:03:04:05:06 \
|
|
|
|
--destination 10.1.2.3/32 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 2 \
|
|
|
|
-m state \
|
|
|
|
--state NEW,ESTABLISHED \
|
|
|
|
-m comment \
|
|
|
|
--comment 'accept rule \
|
|
|
|
-- dir out' \
|
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m mac \
|
|
|
|
--mac-source 01:02:03:04:05:06 \
|
|
|
|
--destination 10.1.2.3/32 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 2 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'drop rule \
|
|
|
|
-- dir out' \
|
|
|
|
-j DROP
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
--source 10.1.2.3/32 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 2 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'drop rule \
|
|
|
|
-- dir out' \
|
|
|
|
-j DROP
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m mac \
|
|
|
|
--mac-source 01:02:03:04:05:06 \
|
|
|
|
--destination 10.1.2.3/32 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 2 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'drop rule \
|
|
|
|
-- dir out' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j DROP
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m mac \
|
|
|
|
--mac-source 01:02:03:04:05:06 \
|
|
|
|
--destination 10.1.2.3/32 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 2 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'reject rule \
|
|
|
|
-- dir out' \
|
|
|
|
-j REJECT
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
--source 10.1.2.3/32 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 2 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'reject rule \
|
|
|
|
-- dir out' \
|
|
|
|
-j REJECT
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m mac \
|
|
|
|
--mac-source 01:02:03:04:05:06 \
|
|
|
|
--destination 10.1.2.3/32 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 2 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'reject rule \
|
|
|
|
-- dir out' \
|
|
|
|
-j REJECT
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
--destination 10.1.2.3/22 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 33 \
|
|
|
|
-m state \
|
|
|
|
--state ESTABLISHED \
|
|
|
|
-m comment \
|
|
|
|
--comment 'accept rule \
|
|
|
|
-- dir in' \
|
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m mac \
|
|
|
|
--mac-source 01:02:03:04:05:06 \
|
|
|
|
--source 10.1.2.3/22 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 33 \
|
|
|
|
-m state \
|
|
|
|
--state NEW,ESTABLISHED \
|
|
|
|
-m comment \
|
|
|
|
--comment 'accept rule \
|
|
|
|
-- dir in' \
|
|
|
|
-j ACCEPT
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
--destination 10.1.2.3/22 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 33 \
|
|
|
|
-m state \
|
|
|
|
--state ESTABLISHED \
|
|
|
|
-m comment \
|
|
|
|
--comment 'accept rule \
|
|
|
|
-- dir in' \
|
|
|
|
-j RETURN
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
--destination 10.1.2.3/22 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 33 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'drop rule \
|
|
|
|
-- dir in' \
|
|
|
|
-j DROP
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m mac \
|
|
|
|
--mac-source 01:02:03:04:05:06 \
|
|
|
|
--source 10.1.2.3/22 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 33 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'drop rule \
|
|
|
|
-- dir in' \
|
|
|
|
-j DROP
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
--destination 10.1.2.3/22 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 33 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'drop rule \
|
|
|
|
-- dir in' \
|
|
|
|
-j DROP
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
--destination 10.1.2.3/22 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 33 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'reject rule \
|
|
|
|
-- dir in' \
|
|
|
|
-j REJECT
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m mac \
|
|
|
|
--mac-source 01:02:03:04:05:06 \
|
|
|
|
--source 10.1.2.3/22 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 33 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'reject rule \
|
|
|
|
-- dir in' \
|
|
|
|
-j REJECT
|
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
--destination 10.1.2.3/22 \
|
|
|
|
-m dscp \
|
|
|
|
--dscp 33 \
|
|
|
|
-m comment \
|
|
|
|
--comment 'reject rule \
|
|
|
|
-- dir in' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j REJECT
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m comment \
|
|
|
|
--comment 'accept rule \
|
|
|
|
-- dir inout' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j RETURN
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m comment \
|
|
|
|
--comment 'accept rule \
|
|
|
|
-- dir inout' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j ACCEPT
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m comment \
|
|
|
|
--comment 'accept rule \
|
|
|
|
-- dir inout' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j RETURN
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m comment \
|
|
|
|
--comment 'drop rule \
|
|
|
|
-- dir inout' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j DROP
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m comment \
|
|
|
|
--comment 'drop rule \
|
|
|
|
-- dir inout' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j DROP
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m comment \
|
|
|
|
--comment 'drop rule \
|
|
|
|
-- dir inout' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j DROP
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m comment \
|
|
|
|
--comment 'reject rule \
|
|
|
|
-- dir inout' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j REJECT
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A FP-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m comment \
|
|
|
|
--comment 'reject rule \
|
|
|
|
-- dir inout' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j REJECT
|
2015-11-06 13:20:06 +00:00
|
|
|
iptables \
|
2020-11-17 00:20:53 +00:00
|
|
|
-w \
|
2015-11-06 13:20:06 +00:00
|
|
|
-A HJ-vnet0 \
|
|
|
|
-p all \
|
|
|
|
-m comment \
|
|
|
|
--comment 'reject rule \
|
|
|
|
-- dir inout' \
|
2014-04-01 06:19:38 +00:00
|
|
|
-j REJECT
|