need help with iptables Port forwarding

From: (-delusion-@securityfocus.com)
Date: 09/30/01


From: <-delusion-@securityfocus.com> <delusi0n@bellsouth.net>
To: <focus-linux@securityfocus.com>
Subject: need help with iptables Port forwarding
Date: Sun, 30 Sep 2001 04:41:44 +0000
Message-Id: <20010930083930.SOGF3572.imf16bis.bellsouth.net@there>

hi, i just set up ip masquerading, so im usign my linux box as my router. I
have an internal box running a service that i need to make available to the
outside. the port is 5500 and the internal ip of the box is 192.168.0.11,
heres what i tried:

# iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 5500 \
        -j DNAT --to-dest 192.168.0.11

it goes through without any errors, but when i try to connect to the service
usign my external ip it says Host Refused connection. i also tried port
scanning for this port, and it doesnt find it. Please help me solve this ASAP.

Thank you in advance,
delusi0n



Relevant Pages

  • Re: uCLinux on Samsung S3C4510B (ARM7TDMI) based wireless router
    ... serial port or printer port, ... linux or further. ... > router, access point and print server, all at the same time, preferably ... > and openap-ng) options as well as uCLinux. ...
    (comp.os.linux.embedded)
  • Use iptables to ip:port forward ?
    ... I've got a lan behind a cable/modem router. ... I run pop3 on my linux box, ... Now i want my router to forward port 3389 to my linux ...
    (comp.os.linux.security)
  • How does router know where box with static IP is?
    ... This question is part of a debugging session I'm in getting port forwarding ... to work with my LinkSys router and my Linux box. ...
    (comp.security.firewalls)
  • Cant get port forwarding to work (LinkSys)
    ... I have a LinkSys BEFSR41 router with some Windows boxes and one Linux box ... I want to use the Linux box as a destination for a Port ... When I try to access the Linux box through a client external to the router, ...
    (comp.security.firewalls)
  • Re: running gnutella, leaving ports open when not in use
    ... Get Smoothwall 2.0 Linux or something better. ... Right now I have this router but I don't ... I think an unused port is safe. ... > (Even though we're supposed to help the developers when it comes to GPL) ...
    (comp.os.linux.security)