Created
February 22, 2024 15:50
-
-
Save xuzhenglun/d35e6534e24291dec0009248924f9c85 to your computer and use it in GitHub Desktop.
bypass netflix DNS pin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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