Skip to content

Instantly share code, notes, and snippets.

@xuzhenglun
Created February 22, 2024 15:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xuzhenglun/d35e6534e24291dec0009248924f9c85 to your computer and use it in GitHub Desktop.
Save xuzhenglun/d35e6534e24291dec0009248924f9c85 to your computer and use it in GitHub Desktop.
bypass netflix DNS pin
#!/usr/bin/env bash
ipset -N netflix hash:net
ipset -A netflix 23.246.0.0/18
ipset -A netflix 37.77.184.0/21
ipset -A netflix 45.57.0.0/17
ipset -A netflix 64.120.128.0/17
ipset -A netflix 66.197.128.0/17
ipset -A netflix 108.175.32.0/20
ipset -A netflix 192.173.64.0/18
ipset -A netflix 198.38.96.0/19
ipset -A netflix 198.45.48.0/20
iptables -t nat -A OUTPUT -m set --match-set netflix dst -j DNAT --to-destination <upstream-ip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment