blob: 0271734c9b0991ced2b705d9e86fa09dd8993657 [file] [log] [blame]
Florian Westphal6454d7d2018-05-08 10:15:11 +02001ebtables-translate -A FORWARD -p ip6 --ip6-src ! dead::beef/64 -j ACCEPT
Florian Westphal5c8ce9c2018-04-19 11:19:52 +02002nft add rule bridge filter FORWARD ip6 saddr != dead::/64 counter accept
3
Florian Westphal6454d7d2018-05-08 10:15:11 +02004ebtables-translate -A FORWARD -p ip6 ! --ip6-dst dead:beef::/64 -j ACCEPT
Florian Westphal5c8ce9c2018-04-19 11:19:52 +02005nft add rule bridge filter FORWARD ip6 daddr != dead:beef::/64 counter accept
6
Florian Westphal6454d7d2018-05-08 10:15:11 +02007ebtables-translate -I FORWARD -p ip6 --ip6-dst f00:ba::
Florian Westphal5c8ce9c2018-04-19 11:19:52 +02008nft insert rule bridge filter FORWARD ip6 daddr f00:ba:: counter
9
Florian Westphal6454d7d2018-05-08 10:15:11 +020010ebtables-translate -I OUTPUT -o eth0 -p ip6 --ip6-tclass 0xff
Florian Westphal5c8ce9c2018-04-19 11:19:52 +020011nft insert rule bridge filter OUTPUT oifname "eth0" ip6 dscp 0x3f counter
12
Florian Westphal6454d7d2018-05-08 10:15:11 +020013ebtables-translate -A FORWARD -p ip6 --ip6-proto tcp --ip6-dport 22
Florian Westphal5c8ce9c2018-04-19 11:19:52 +020014nft add rule bridge filter FORWARD ether type ip6 tcp dport 22 counter
15
Florian Westphal6454d7d2018-05-08 10:15:11 +020016ebtables-translate -A FORWARD -p ip6 --ip6-proto udp --ip6-sport 1024:65535
Florian Westphal5c8ce9c2018-04-19 11:19:52 +020017nft add rule bridge filter FORWARD ether type ip6 udp sport 1024-65535 counter
18
Florian Westphal6454d7d2018-05-08 10:15:11 +020019ebtables-translate -A FORWARD -p ip6 --ip6-proto 253
Florian Westphal5c8ce9c2018-04-19 11:19:52 +020020nft add rule bridge filter FORWARD ether type ip6 meta l4proto 253 counter
21
Florian Westphal6454d7d2018-05-08 10:15:11 +020022ebtables-translate -A FORWARD -p ip6 --ip6-protocol icmpv6 --ip6-icmp-type "echo-request"
Florian Westphal5c8ce9c2018-04-19 11:19:52 +020023nft add rule bridge filter FORWARD icmpv6 type 128 counter
24
Florian Westphal6454d7d2018-05-08 10:15:11 +020025ebtables-translate -A FORWARD -p ip6 --ip6-protocol icmpv6 --ip6-icmp-type 1/1
Florian Westphal5c8ce9c2018-04-19 11:19:52 +020026nft add rule bridge filter FORWARD icmpv6 type 1 icmpv6 code 1 counter
27
Florian Westphal6454d7d2018-05-08 10:15:11 +020028ebtables-translate -A FORWARD -p ip6 --ip6-protocol icmpv6 --ip6-icmp-type ! 1:10
Florian Westphal5c8ce9c2018-04-19 11:19:52 +020029nft add rule bridge filter FORWARD icmpv6 type != 1-10 counter