From: Raymond Leach <raymondl@knowledgefactory.co.za>
To: louie miranda <lmiranda@chikka.com>
Cc: Netfilter Mailing List <netfilter@lists.netfilter.org>
Subject: Re: portfw on iptables 2.4 kernel problem.
Date: 10 Dec 2002 11:01:02 +0200 [thread overview]
Message-ID: <1039510862.1709.77.camel@rayw.knowledgefactory.co.za> (raw)
In-Reply-To: <014901c2a02a$0dbf59f0$0b00000a@nocpc3>
[-- Attachment #1: Type: text/plain, Size: 1999 bytes --]
On Tue, 2002-12-10 at 10:56, louie miranda wrote:
> I have an internel ftp server w/c i want to access over my linux router(gw)
> Its internel IP is 10.0.0.11 and port 21. My externel IP lets say
> 203.100.100.1.
> I followed the docs w/c i found at linuxdoc
> http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/forwarders.html
> I type in this iptables rule set,
>
> iptables -A FORWARD -i eth0 -o eth1 -p tcp --dport 21 -m state --state
> NEW,ESTABLISHED,RELATED -j ACCEPT
> iptables -A PREROUTING -t nat -p tcp -d $EXTIP --dport 21 -j DNAT --to
> 10.0.0.11:21
>
> I enabled ip forwarding thru the kernel by typing this command, (this is the
> first thing i type then the iptables rule set)
>
> echo "1" > /proc/sys/net/ipv4/ip_forward
>
> svr:/# cat /proc/sys/net/ipv4/ip_forward
> 1
> svr:/#
>
> And still it does not work..
>
> Trying 203.100.100.1...
> telnet: Unable to connect to remote host: Connection refused
>
Does this IP (203.100.100.1) belong to the gw?
There are also two diferent type of ftp that work in very different
ways. This only accounts for the control connection.
Also, you don't have forward rules for the return traffic.
>
>
>
>
> --
> thanks,
> louie miranda
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
( Raymond Leach )
) Knowledge Factory (
( )
) Tel: +27 11 445 8100 (
( Fax: +27 11 445 8101 )
) (
( http://www.knowledgefactory.co.za/ )
) http://www.saptg.co.za/ (
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
o o
o o
.--. .--.
| o_o| |o_o |
| \_:| |:_/ |
/ / \\ // \ \
( | |) (| | )
/`\_ _/'\ /'\_ _/`\
\___)=(___/ \___)=(___/
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-12-10 9:01 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-10 8:56 portfw on iptables 2.4 kernel problem louie miranda
2002-12-10 9:01 ` Raymond Leach [this message]
2002-12-10 9:11 ` louie miranda
2002-12-10 9:01 ` Paulo Andre
2002-12-10 9:12 ` louie miranda
2002-12-11 11:26 ` Andrea Rossato
2002-12-12 3:11 ` louie miranda
[not found] <FD8F124A387AD6119F7900A0D218B321561982@hslex01.hslbz.local>
2002-12-10 9:43 ` Rob Sterenborg
2002-12-10 11:00 ` Raymond Leach
2002-12-10 11:22 ` Jozsef Kadlecsik
2002-12-10 11:32 ` Raymond Leach
2002-12-10 11:52 ` Jozsef Kadlecsik
2002-12-10 12:12 ` Raymond Leach
2002-12-11 6:08 ` louie miranda
2002-12-11 6:20 ` Raymond Leach
-- strict thread matches above, loose matches on Subject: below --
2002-12-11 7:32 Reckhard, Tobias
2002-12-11 8:05 ` Joel Newkirk
2002-12-11 9:00 Reckhard, Tobias
2002-12-11 14:25 ` Joel Newkirk
2002-12-12 7:31 Reckhard, Tobias
2002-12-12 7:33 Reckhard, Tobias
2002-12-12 8:09 Reckhard, Tobias
[not found] <96C102324EF9D411A49500306E06C8D1021AE462@eketsv02.cubis.de >
2002-12-12 8:51 ` Rasmus Reinholdt Nielsen
2002-12-12 14:25 ` Joel Newkirk
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=1039510862.1709.77.camel@rayw.knowledgefactory.co.za \
--to=raymondl@knowledgefactory.co.za \
--cc=lmiranda@chikka.com \
--cc=netfilter@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.