Skip to content

Instantly share code, notes, and snippets.

@SanteriHetekivi
Created July 5, 2025 12:28
Show Gist options
  • Save SanteriHetekivi/158d935257ddbf18e72ac0a96e9e8646 to your computer and use it in GitHub Desktop.
Save SanteriHetekivi/158d935257ddbf18e72ac0a96e9e8646 to your computer and use it in GitHub Desktop.
OpenWrt and NAT loopback HTTP/S
  1. Make HTTP and HTTPS port forwards for IPv4 and IPv6 with Enable NAT Loopback.
    • You should have 4 different port forward rules:
      1. HTTP IPv4
      2. HTTP IPv6
      3. HTTPS IPv4
      4. HTTPS IPv6
  2. Edit /etc/config/uhttpd file so that it listens only IP 192.168.1.1.
  3. Restart uhtpd: /etc/init.d/uhttpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment