Skip to content

Instantly share code, notes, and snippets.

@spvkgn
Created May 7, 2026 05:22
Show Gist options
  • Select an option

  • Save spvkgn/45c5c07992e66eca865ae9eb3b63237d to your computer and use it in GitHub Desktop.

Select an option

Save spvkgn/45c5c07992e66eca865ae9eb3b63237d to your computer and use it in GitHub Desktop.
DNAT GitHub Fastly
uci add firewall redirect
uci set firewall.@redirect[-1].name='Redir-GitHub-110-108'
uci set firewall.@redirect[-1].proto='tcp udp'
uci set firewall.@redirect[-1].src='lan'
uci set firewall.@redirect[-1].src_dip='185.199.110.133'
uci set firewall.@redirect[-1].src_dport='443'
uci set firewall.@redirect[-1].dest='wan'
uci set firewall.@redirect[-1].dest_ip='185.199.108.133'
uci set firewall.@redirect[-1].dest_port='443'
uci set firewall.@redirect[-1].target='DNAT'
uci commit firewall
uci add firewall redirect
uci set firewall.@redirect[-1].name='Redir-GitHub-111-109'
uci set firewall.@redirect[-1].proto='tcp udp'
uci set firewall.@redirect[-1].src='lan'
uci set firewall.@redirect[-1].src_dip='185.199.111.133'
uci set firewall.@redirect[-1].src_dport='443'
uci set firewall.@redirect[-1].dest='wan'
uci set firewall.@redirect[-1].dest_ip='185.199.109.133'
uci set firewall.@redirect[-1].dest_port='443'
uci set firewall.@redirect[-1].target='DNAT'
uci commit firewall
service firewall restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment