Results 1 to 5 of 5

Thread: Port Forwarding: 8080 to 80 from WAN, 80 from LAN

Threaded View

  1. #1
    Join Date
    Sep 2008
    Ubuntu 9.10 Karmic Koala

    Port Forwarding: 8080 to 80 from WAN, 80 from LAN

    Hi there, first time in here.
    I have XAMPP installed on mi Ubuntu 9.04, with Apache listenning at port 80 (default) and I want some friends to see my webs through the Internet. The simpliest answer is: tell them to visit http://yourip/ and that's it.

    The problem is that i'm behind a Zyxel Prestige 660R-61C router, so I have to do port forwarding.

    In it's NAT section (under "SUA Only"), the router let's me set a port range to be redirected to a determined IP. So, telling it to forward port 80 to my LAN IP would be enough, except that port 80 at the router is being used to display the web interface.

    So, my new idea: using port 8080 from the wan. I set the router to forward port 8080 to my lan address, but I don't want Apache to listen at port 8080 (don't want to use :8080 locally).

    So, how can I locally forward my incoming 8080 requests to my 80 port?

    I've never used iptables, I tried some command I found on the net ( "sudo iptables -t nat -I PREROUTING -p tcp --dport 8080 -j REDIRECT --to-port 80" ), but not worked - or, at least, it don't seems to work.

    I've installed Firestarter, and set some rules:
    Allow service  |  Port  |  User
    HTTP  | 80  | everyone
    HTTP-alt  |  8080  | everyone
    Forward service  |  Firewall port  |  To  |  Port
    Http-alt  |  8080  |  localhost  |  80
    (actually, my firestarter is in Spanish, so the translations could not be accurate at all)

    y Applied changes, and it still doesn't work.

    What shall I do?

    Thanks for reading, in advance..

    EDIT: attached a nice picture to ilustrate what I want (yeah, I have to learn how to use GIMP too )
    Attached Images Attached Images
    Last edited by Desert69; July 18th, 2009 at 11:22 PM. Reason: Attached diagram.png

Tags for this Thread


Posting Permissions

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