Skip to content

Instantly share code, notes, and snippets.

@realdomdom
Created May 21, 2022 09:17
Show Gist options
  • Save realdomdom/f19246bfbb89c6ce7a2f0b804e06ab88 to your computer and use it in GitHub Desktop.
Save realdomdom/f19246bfbb89c6ce7a2f0b804e06ab88 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo iptables -t nat -a prerouting -p udp -d 8.8.8.8 --dport 53 -j redirect
sudo iptables -t nat -a prerouting -p tcp -d 8.8.8.8 --dport 53 -j redirect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment