* Can I use ip_conntrack_ftp on a server firewall ?
@ 2005-12-16 23:44 Aaron Gray
2005-12-17 4:15 ` Robert Nichols
0 siblings, 1 reply; 5+ messages in thread
From: Aaron Gray @ 2005-12-16 23:44 UTC (permalink / raw)
To: Netfilter List
I have a RedHat 9 and Fedora Core 4 Servers I am setting up. I am using an
FTP demon on the server, Apache mod_ftpd, but when enabled the firewall is
blocking the FTP connection.
How do I create rules to allow FTP passive and active connections to the
server ?
Do I use ip_conntrack_ftp or can I just create some rules that will do the
job ?
Many thanks in advance,
Aaron
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can I use ip_conntrack_ftp on a server firewall ?
2005-12-16 23:44 Can I use ip_conntrack_ftp on a server firewall ? Aaron Gray
@ 2005-12-17 4:15 ` Robert Nichols
2005-12-18 2:50 ` Aaron Gray
0 siblings, 1 reply; 5+ messages in thread
From: Robert Nichols @ 2005-12-17 4:15 UTC (permalink / raw)
To: netfilter
Aaron Gray wrote:
> I have a RedHat 9 and Fedora Core 4 Servers I am setting up. I am using
> an FTP demon on the server, Apache mod_ftpd, but when enabled the
> firewall is blocking the FTP connection.
>
> How do I create rules to allow FTP passive and active connections to the
> server ?
>
> Do I use ip_conntrack_ftp or can I just create some rules that will do
> the job ?
You need ip_conntrack_ftp. To get that modules loaded automatically,
Just edit /etc/sysconfig/iptables and add "ip_conntrack_ftp" to the
"IPTABLES_MODULES=" line.
--
Bob Nichols Yes, "NOSPAM" is really part of my email address.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can I use ip_conntrack_ftp on a server firewall ?
2005-12-17 4:15 ` Robert Nichols
@ 2005-12-18 2:50 ` Aaron Gray
2005-12-18 7:59 ` Robert Nichols
0 siblings, 1 reply; 5+ messages in thread
From: Aaron Gray @ 2005-12-18 2:50 UTC (permalink / raw)
To: netfilter
>> How do I create rules to allow FTP passive and active connections to the
>> server ?
>>
>> Do I use ip_conntrack_ftp or can I just create some rules that will do
>> the job ?
>
> You need ip_conntrack_ftp. To get that modules loaded automatically,
> Just edit /etc/sysconfig/iptables and add "ip_conntrack_ftp" to the
> "IPTABLES_MODULES=" line.
Okay I have ip_conntrack_ftp loaded in /etc/sysconfig/iptables-config.
Still it must require some rules to use it.
Aaron
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can I use ip_conntrack_ftp on a server firewall ?
2005-12-18 2:50 ` Aaron Gray
@ 2005-12-18 7:59 ` Robert Nichols
2005-12-18 17:43 ` Aaron Gray
0 siblings, 1 reply; 5+ messages in thread
From: Robert Nichols @ 2005-12-18 7:59 UTC (permalink / raw)
To: netfilter
Aaron Gray wrote:
>>> How do I create rules to allow FTP passive and active connections to
>>> the server ?
>>>
>>> Do I use ip_conntrack_ftp or can I just create some rules that will
>>> do the job ?
>>
>>
>> You need ip_conntrack_ftp. To get that modules loaded automatically,
>> Just edit /etc/sysconfig/iptables and add "ip_conntrack_ftp" to the
>> "IPTABLES_MODULES=" line.
>
>
> Okay I have ip_conntrack_ftp loaded in /etc/sysconfig/iptables-config.
>
> Still it must require some rules to use it.
Well, you obviously need to allow the initial incoming connection to
port 21. Beyond that, all you should need are the usual rules to
allow all ESTABLISHED and RELATED traffic. With the conntrack
module working, the ftp-data connection will be recognized as
RELATED. Unless there NAT involved (requiring use of the ip_nat_ftp
module), it should "just work".
--
Bob Nichols Yes, "NOSPAM" is really part of my email address.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can I use ip_conntrack_ftp on a server firewall ?
2005-12-18 7:59 ` Robert Nichols
@ 2005-12-18 17:43 ` Aaron Gray
0 siblings, 0 replies; 5+ messages in thread
From: Aaron Gray @ 2005-12-18 17:43 UTC (permalink / raw)
To: netfilter
>> Okay I have ip_conntrack_ftp loaded in /etc/sysconfig/iptables-config.
>>
>> Still it must require some rules to use it.
>
> Well, you obviously need to allow the initial incoming connection to
> port 21. Beyond that, all you should need are the usual rules to
> allow all ESTABLISHED and RELATED traffic. With the conntrack
> module working, the ftp-data connection will be recognized as
> RELATED. Unless there NAT involved (requiring use of the ip_nat_ftp
> module), it should "just work".
I added a NEW and it now "just works" with Windows Internet Explorer as well
as Unix FTP.
Aaron
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-12-18 17:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-16 23:44 Can I use ip_conntrack_ftp on a server firewall ? Aaron Gray
2005-12-17 4:15 ` Robert Nichols
2005-12-18 2:50 ` Aaron Gray
2005-12-18 7:59 ` Robert Nichols
2005-12-18 17:43 ` Aaron Gray
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.