Results 1 to 1 of 1

Thread: HowTo - open port 80 to WAN for personal web server

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    HowTo - open port 80 to WAN for personal web server

    Prerequisites:
    You have set your web server to run on port 81.


    First move WebGUI (Asus administration interface) to some other port, for example 8080:

    Code:
    nvram set http_lanport=8080
    nvram commit && reboot
    Now edit /usr/local/sbin/post-firewall
    and add following rule:

    Code:
    iptables -i ppp0 -t nat -I PREROUTING -m tcp -p tcp --dport 80 -j DNAT --to-destination 192.168.1.254:81
    where ppp0 is your WAN interface (can be also vlan1)
    and
    192.168.1.254 is your router local IP.

    EDIT - perhaps moving WebGUI to port 8080 is not even required. Just access web server from lan at port 81 and from WAN at 80. Haven't tested.
    Last edited by ros; 10-09-2009 at 13:24. Reason: additional information

Similar Threads

  1. open port 80
    By ros in forum WL-500gP Q&A
    Replies: 3
    Last Post: 12-08-2009, 01:34
  2. transmission 134-1
    By edelknecht in forum German Discussion - Deutsch (DE)
    Replies: 13
    Last Post: 19-09-2008, 09:15
  3. Replies: 1
    Last Post: 07-09-2005, 08:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •