Results 1 to 3 of 3

Thread: HOWTO: Simple port forwarding for Web / lighttpd

  1. #1
    Join Date
    Jan 2007
    Location
    Cph, Denmark
    Posts
    38

    HOWTO: Simple port forwarding for Web / lighttpd

    Im running lighttpd at a custom port and i want to forward port 80 to that port so my custom webserver handles all http requests

    Code:
    # iptables -I INPUT -p tcp --dport 80 -j ACCEPT
    # iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT --to [ROUTER LOCAL IP]:[CUSTOM PORT]
    Last edited by clausbruun; 22-02-2007 at 19:27. Reason: Improved it

  2. #2
    Join Date
    Jan 2007
    Location
    Cph, Denmark
    Posts
    38
    Quote Originally Posted by clausbruun View Post
    Im running lighttpd at a custom port and i want to forward port 80 to that port so my custom webserver handles all http requests

    Code:
    # iptables -I INPUT -p tcp --dport 80 -j ACCEPT
    # iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT --to [ROUTER LOCAL IP]:[CUSTOM PORT]


    Hmmm does not work right? does anybody know why ?

  3. #3
    Quote Originally Posted by clausbruun View Post
    Hmmm does not work right? does anybody know why ?
    Hi Clausbruun,

    Your command looks right, for the NAT table but did you also need to include a reverse of these on you INPUT table?
    Second did you delete the NAT and INPUT settings for ASUS photo share? these will clash with you getting port 80 forwarded

    check out new post on 80 >> 8081
    Last edited by Gizmo1007; 09-11-2007 at 21:10.

Similar Threads

  1. Replies: 3
    Last Post: 01-11-2014, 14:16
  2. Forwarding port 80 --> 8081????
    By sollie in forum WL-700g Firmware Discussion
    Replies: 4
    Last Post: 09-11-2007, 01:23
  3. Problems with port forwarding
    By User007 in forum WL-500g Q&A
    Replies: 0
    Last Post: 04-08-2006, 17:53
  4. Need help with Wl500g and port forwarding
    By ikir in forum WL-500g Q&A
    Replies: 0
    Last Post: 28-01-2006, 14:58
  5. Firmware v1.9.2.7 CR1 [Oleg]
    By Oleg in forum WL-500g Firmware Releases
    Replies: 53
    Last Post: 14-04-2005, 00:26

Posting Permissions

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