From: Stewart Thompson <stewart.thompson@shaw.ca>
To: "wasim.bashir" <wasim.bashir@nexor.co.uk>,
'Bantam' <netfilter@end.yorks.com>,
'netfilter' <netfilter@lists.netfilter.org>
Subject: RE: FTP Forwarding
Date: Fri, 22 Nov 2002 03:08:32 -0800 [thread overview]
Message-ID: <FLEKIPPLAEDMJMOOBBDPKEOEDIAA.stewart.thompson@shaw.ca> (raw)
In-Reply-To: <001d01c29213$23cdd0c0$e6353fc1@nexor.co.uk>
Wasim:
Put the following lines at the beginning of your script
/sbin/insmod ip_conntrack_ftp
/sbin/insmod ip_conntrack_ftp
That is the path on my system. Do a which insmod to
make sure that is right for your system. I am not running 8.0 on
any of the systems I look after. Theoretically, the system should
load them when they are all referenced. However, I specifically load
all the ones I need in my firewall script. Also, see Rob's rule for
related and established. Also, if you want people to be able to
initiate FTP sessions from outside your network, you will also nee
to allow new connections. Hope that helps.
Stu.............
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Wasim Bashir
Sent: November 22, 2002 2:37 AM
To: stewart.thompson; 'Bantam'; 'netfilter'
Subject: RE: FTP Forwarding
Hi,
neither ip_nat_ftp and ip_conntrack_ftp are loaded, how do i load these ?
I'm using redhat 8.
Regards,
Wasim
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Stewart
Thompson
Sent: 22 November 2002 10:32
To: Bantam; netfilter
Subject: RE: FTP Forwarding
Wasim:
If you do an lsmod, does it show that
ip_nat_ftp and ip_conntrack_ftp are loaded?
They are required to make ftp work through nat.
Also what Linux Distro and Iptables are you using?
Stu.........
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Bantam
Sent: November 22, 2002 2:08 AM
To: netfilter
Subject: FTP Forwarding
Hi,
I've been trying to forward port 21 to an ftp server on another machine, IP
address 10.0.0.199.
eth1 - external (connected to the net)
eth0 - internal
/sbin/iptables -A FORWARD -p tcp -i eth1 --dport 21 -j ACCEPT
/sbin/iptables -A PREROUTING -t nat -p tcp -i eth1 --dport 21 -j DNAT --to
10.0.0.199:21
but can't get it to work..
any ideas ?
Thanks
Wasim
next prev parent reply other threads:[~2002-11-22 11:08 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-22 10:08 FTP Forwarding Bantam
2002-11-22 10:24 ` Alexey Sheshka
2002-11-22 10:26 ` Alexey Sheshka
2002-11-22 10:31 ` Stewart Thompson
2002-11-22 10:37 ` Wasim Bashir
2002-11-22 11:08 ` Stewart Thompson [this message]
2002-11-22 11:47 ` Wasim Bashir
2002-11-22 10:34 ` Rob Sterenborg
2002-11-22 11:53 ` Erdal Mutlu
-- strict thread matches above, loose matches on Subject: below --
2005-01-18 15:49 Hudson Delbert J Contr 61 CS/SCBN
2004-12-28 17:19 umar draz
2004-12-28 17:30 ` Jason Opperisano
2005-01-14 8:57 ` Test Mail
2005-01-14 11:38 ` Deepak Seshadri
2005-01-14 14:27 ` Jason Opperisano
2005-01-14 14:43 ` Deepak Seshadri
2005-01-14 14:23 ` Jason Opperisano
2005-01-17 7:31 ` TestMail
2005-01-18 16:40 ` Jason Opperisano
[not found] <FD8F124A387AD6119F7900A0D218B321541403@hslex01.hslbz.local>
2002-11-22 12:02 ` Rob Sterenborg
2002-11-22 13:02 ` Roy Sigurd Karlsbakk
2002-11-18 9:47 ftp forwarding Wasim Bashir
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=FLEKIPPLAEDMJMOOBBDPKEOEDIAA.stewart.thompson@shaw.ca \
--to=stewart.thompson@shaw.ca \
--cc=netfilter@end.yorks.com \
--cc=netfilter@lists.netfilter.org \
--cc=wasim.bashir@nexor.co.uk \
/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