112-hackathon/src/dns_lkm/delete_conn_rules.sh
2022-01-26 01:01:52 +00:00

13 lines
403 B
Bash
Executable File

#!/bin/bash
#
printf "Removing iptables rules to track dns stuff..\n"
sudo iptables -D PREROUTING -t raw -p udp --dport 53 -d 8.8.8.8 -j CT --helper sdns
sudo iptables -D OUTPUT -t raw -p udp --dport 53 -d 8.8.8.8 -j CT --helper sdns
sudo iptables -D PREROUTING -t raw -p udp --sport 53 -s 8.8.8.8 -j CT --helper sdns
sudo iptables -D OUTPUT -t raw -p udp --sport 53 -s 8.8.8.8 -j CT --helper sdns