2024-11-25 22:24:49 -05:00
tc \
qdisc \
show \
dev \
virbr0 \
handle \
1:
tc \
qdisc \
add \
dev \
virbr0 \
root \
handle \
1: \
htb \
default \
2
tc \
filter \
add \
dev \
virbr0 \
prio \
2 \
protocol \
ip \
parent \
1: \
u32 \
match \
ip \
dport \
68 \
ffff \
action \
csum \
ip \
and \
udp
2024-04-19 22:19:43 -04:00
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_output \
2024-05-22 23:13:33 -04:00
iif \
2024-04-19 22:19:43 -04:00
virbr0 \
counter \
reject
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_input \
2024-05-22 23:13:33 -04:00
oif \
2024-04-19 22:19:43 -04:00
virbr0 \
counter \
reject
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_cross \
2024-05-22 23:13:33 -04:00
iif \
2024-04-19 22:19:43 -04:00
virbr0 \
2024-05-22 23:13:33 -04:00
oif \
2024-04-19 22:19:43 -04:00
virbr0 \
counter \
accept
nft \
-ae insert \
rule \
ip6 \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_output \
2024-05-22 23:13:33 -04:00
iif \
2024-04-19 22:19:43 -04:00
virbr0 \
counter \
reject
nft \
-ae insert \
rule \
ip6 \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_input \
2024-05-22 23:13:33 -04:00
oif \
2024-04-19 22:19:43 -04:00
virbr0 \
counter \
reject
nft \
-ae insert \
rule \
ip6 \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_cross \
2024-05-22 23:13:33 -04:00
iif \
2024-04-19 22:19:43 -04:00
virbr0 \
2024-05-22 23:13:33 -04:00
oif \
2024-04-19 22:19:43 -04:00
virbr0 \
counter \
accept
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_output \
2024-04-19 22:19:43 -04:00
ip \
saddr \
192.168.122.0/24 \
2024-05-22 23:13:33 -04:00
iif \
2024-04-19 22:19:43 -04:00
virbr0 \
counter \
accept
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_input \
2024-05-22 23:13:33 -04:00
oif \
2024-04-19 22:19:43 -04:00
virbr0 \
ip \
daddr \
192.168.122.0/24 \
ct \
state \
related,established \
counter \
accept
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_nat \
2024-04-19 22:19:43 -04:00
ip \
saddr \
192.168.122.0/24 \
ip \
daddr \
'!=' \
192.168.122.0/24 \
counter \
masquerade
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_nat \
2024-04-19 22:19:43 -04:00
meta \
l4proto \
udp \
ip \
saddr \
192.168.122.0/24 \
ip \
daddr \
'!=' \
192.168.122.0/24 \
counter \
masquerade \
to \
:1024-65535
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_nat \
2024-04-19 22:19:43 -04:00
meta \
l4proto \
tcp \
ip \
saddr \
192.168.122.0/24 \
ip \
daddr \
'!=' \
192.168.122.0/24 \
counter \
masquerade \
to \
:1024-65535
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_nat \
2024-04-19 22:19:43 -04:00
ip \
saddr \
192.168.122.0/24 \
ip \
daddr \
255.255.255.255/32 \
counter \
return
nft \
-ae insert \
rule \
ip \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_nat \
2024-04-19 22:19:43 -04:00
ip \
saddr \
192.168.122.0/24 \
ip \
daddr \
224.0.0.0/24 \
counter \
return
nft \
-ae insert \
rule \
ip6 \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_output \
2024-04-19 22:19:43 -04:00
ip6 \
saddr \
2001:db8:ca2:2::/64 \
2024-05-22 23:13:33 -04:00
iif \
2024-04-19 22:19:43 -04:00
virbr0 \
counter \
accept
nft \
-ae insert \
rule \
ip6 \
2024-04-29 14:06:55 -04:00
libvirt_network \
2024-04-29 14:21:14 -04:00
guest_input \
2024-04-19 22:19:43 -04:00
ip6 \
daddr \
2001:db8:ca2:2::/64 \
2024-05-22 23:13:33 -04:00
oif \
2024-04-19 22:19:43 -04:00
virbr0 \
counter \
accept