Results 1 to 4 of 4

Thread: open port 80

  1. #1

    open port 80

    I've searched the forum for this problem, but nothing worked.
    Here it is:

    I'm tryiing to open port 80 for lighttpd server on WAN.

    I've moved admin GUI server to port 8080 (with nvram set...).

    Now web server works from LAN. But doesn't respond from WAN.

    Here is my post-firewall:

    iptables -i ppp0 -I INPUT -p tcp --dport 22 -j ACCEPT
    iptables -i vlan1 -I INPUT -p tcp --dport 56881:56889 -j ACCEPT
    iptables -i br0 -I INPUT -p tcp --dport 56881:56889 -j ACCEPT
    iptables -i br0 -I INPUT -p tcp --dport 65534 -j ACCEPT
    iptables -i ppp0 -I INPUT -p tcp --dport 443 -j ACCEPT
    iptables -i ppp0 -t nat -I INPUT -p tcp --dport 80 -j ACCEPT
    iptables -i vlan1 -I INPUT -p tcp --dport 5060:5062 -j ACCEPT
    iptables -i vlan1 -I INPUT -p udp --dport 5060:5062 -j ACCEPT
    iptables -i vlan1 -I INPUT -p udp --dport 5004:5084 -j ACCEPT
    iptables -i vlan1 -I INPUT -p udp --dport 3478 -j ACCEPT
    iptables -i vlan1 -I INPUT -p tcp --dport 3478 -j ACCEPT
    iptables -i vlan1 -I INPUT -p tcp --dport 4663 -j ACCEPT
    iptables -i vlan1 -I INPUT -p udp --dport 4673 -j ACCEPT
    iptables -i vlan1 -I INPUT -p udp --dport 4666 -j ACCEPT

    Do I need to enable WAN access to admin GUI? It's disabled at the moment. But I don't want to manage my router from the internet anyway.

  2. #2
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by ros View Post
    I've searched the forum for this problem, but nothing worked.
    Here it is:

    I'm tryiing to open port 80 for lighttpd server on WAN.

    I've moved admin GUI server to port 8080 (with nvram set...).

    Now web server works from LAN. But doesn't respond from WAN.

    Do I need to enable WAN access to admin GUI? It's disabled at the moment. But I don't want to manage my router from the internet anyway.
    Well, as long as your webserver works, it should be ok.
    The only point what you missed is to open port 80 from wan. As this is the usual admin gui, you can open port by webif. Further you need a dnydns account when you do not have a static ip. Then you are reachable by a regular webaddress like http://wl500g.dyndns.org
    have fun....
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

  3. #3
    Perhaps I wasn't clear.

    I don't want webui from wan.

    I want my personal web page from WAN on port 80.

    If I move webui to 8080 and open WAN from webui, it allows me to open only ports above 1024...
    I'm a bit confused

    EDIT
    OK, I see now that it's not possible place a web server on port 80 of WAN interface.
    Is it possible to open port 81 and redirect requests from WAN to from port 80 to port 81?
    Last edited by ros; 10-08-2009 at 13:32.

  4. #4
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by ros View Post
    Perhaps I wasn't clear.

    I don't want webui from wan.

    I want my personal web page from WAN on port 80.

    If I move webui to 8080 and open WAN from webui, it allows me to open only ports above 1024...
    I'm a bit confused

    EDIT
    OK, I see now that it's not possible place a web server on port 80 of WAN interface.
    Is it possible to open port 81 and redirect requests from WAN to from port 80 to port 81?
    I dunno if it works with those vpn-like internet connections, since I see ppp0 and vlan1 on your iptables, but this is basicly how I did it:
    edit post-firewall:
    vi /tmp/local/sbin/post-firewall
    place the lines inside post-firewall if they aren't there yet
    #!/bin/sh
    iptables -D INPUT -j DROP

    #here is where the firewall rules shall be placed

    iptables -A INPUT -j DROP
    add the rule in between the 2 iptables lines:
    iptables -A INPUT -p tcp --dport 80 -j ACCEPT
    save the file and flash save it:
    flashfs save && flashfs commit && flashfs enable && reboot
    now port 80 should be opened on your wan

    otherwise "virtual server" should help you out located in the web-inf

Similar Threads

  1. How to open up port for external access?
    By Ehsan in forum WL-500gP Tutorials
    Replies: 6
    Last Post: 25-05-2009, 12:33
  2. transmission 134-1
    By edelknecht in forum German Discussion - Deutsch (DE)
    Replies: 13
    Last Post: 19-09-2008, 09:15
  3. How to open up a port?
    By Ehsan in forum WL-500gP Tutorials
    Replies: 1
    Last Post: 29-07-2008, 15:00
  4. Open port with iptables
    By zebs in forum WL-500gP Q&A
    Replies: 0
    Last Post: 20-11-2007, 19:51

Posting Permissions

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