Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "louie miranda" <lmiranda@chikka.com>
To: netfilter@lists.samba.org
Cc: "Rasmus Bøg Hansen" <moffelist@amagerkollegiet.dk>
Subject: Re: Forwarding problem, :( port redirection!
Date: Mon, 24 Feb 2003 16:32:29 +0800	[thread overview]
Message-ID: <04a401c2dbdf$61d69d00$0b00000a@nocpc3> (raw)
In-Reply-To: Pine.LNX.4.44.0302240923210.1142-100000@grignard.amagerkollegiet.dk

panic:/# iptables -t nat -A PREROUTING -i eth0 -p tcp -d
203.190.72.108 --dport 21 -j DNAT --to 10.0.0.11:21
panic:/# iptables -A FORWARD -i eth0 -o eth1 -p tcp -d
203.190.72.108 --dport 21 -j ACCEPT
panic:/# telnet 203.190.72.108 21
Trying 203.190.72.108...
telnet: Unable to connect to remote host: Connection refused
panic:/# telnet 10.0.0.11 21
Trying 10.0.0.11...
Connected to 10.0.0.11.
Escape character is '^]'.
220 Dynu FTP Server (Version 1.13)
^]
telnet> q
Connection closed.
panic:/# telnet 203.190.72.108 21
Trying 203.190.72.108...
telnet: Unable to connect to remote host: Connection refused
panic:/#

Still no success! :(



--
thanks,
louie miranda


----- Original Message -----
From: "Rasmus Bøg Hansen" <moffelist@amagerkollegiet.dk>
To: "louie miranda" <lmiranda@chikka.com>
Cc: <netfilter@lists.samba.org>
Sent: Monday, February 24, 2003 4:25 PM
Subject: Re: Forwarding problem, :( port redirection!


On Mon, 24 Feb 2003, louie miranda wrote:

> Im trying just to forward simple ftp, 21 request into my internal machine.
> Im typing this but it does not work..

> iptables -t nat -A PREROUTING -i eth0 -p tcp -d 10.0.0.11 --dport 21 -j
> DNAT --to 203.190.72.108:21
> iptables -A FORWARD -i eth0 -o eth1 -p tcp -d 203.190.72.108 --dport 21 -j
> ACCEPT

Are you *sure* of those IP's? 10.0.0.11 is a private IP and is unusable
on the internet - however your rules state that 10.0.0.11 is located on
the internet. I'm pretty sure, you need to exchange the global and local
IP.

/Rasmus

--
-- [ Rasmus "Møffe" Bøg Hansen ] ---------------------------------------
Drink wet cement: Get Stoned.
----------------------------------[ moffe at amagerkollegiet dot dk ] --





  reply	other threads:[~2003-02-24  8:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-24  8:12 Forwarding problem, :( port redirection! louie miranda
2003-02-24  8:25 ` Rasmus Bøg Hansen
2003-02-24  8:32   ` louie miranda [this message]
2003-02-24  8:57     ` Rasmus Bøg Hansen
2003-02-24 10:21     ` Rob Sterenborg
2003-02-24 13:23     ` John Davey
2003-02-26 10:02       ` louie miranda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='04a401c2dbdf$61d69d00$0b00000a@nocpc3' \
    --to=lmiranda@chikka.com \
    --cc=moffelist@amagerkollegiet.dk \
    --cc=netfilter@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox