Hey guys, I'm trying to make the following guide working on Qubes 4.2 and translate it into English:

https://github.com/hexstore/qubes-proxy/tree/main

This is my fork:

https://github.com/glockmane/qubes-proxy

✅ Translation with DeepL 🚧 Convert iptables to nftables This is the iptables part:

https://github.com/glockmane/qubes-proxy/blob/main/restrict-firewall

And these are the lines I cannot translate:

iptables -P FORWARD DROP

iptables -D INPUT -j DROP

if iptables -C INPUT -i vif+ -p icmp -j ACCEPT; then
  iptables -D INPUT -i vif+ -p icmp -j ACCEPT
fi
if iptables -C INPUT -i vif+ -j REJECT --reject-with icmp-host-prohibited; then
  iptables -D INPUT -i vif+ -j REJECT --reject-with icmp-host-prohibited
fi

Thanks for help!