Re: FTP and Firewall
- From: Ivan Marsh <annoyed@xxxxxxx>
- Date: Wed, 21 Feb 2007 12:38:19 -0600
On Tue, 20 Feb 2007 15:33:13 +0000, StephaneM wrote:
Kalyan Manchikanti wrote:
On Feb 20, 1:43 am, Stephane M <Steph...@xxxxx> wrote:Sorry but it doesn't work
Hi,
I wish to use my Firewall
I am using CentOS v 4.4 and I did use the Firewall setup available on
the GYI
[ Enable the Firewall and Accept FTP, WWW ]
1) the web works fine !!1
2) The FTP site doesn't work
I edit my /etc/sysconfig/iptables
- A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21
-j ACCEPT
- Is there something wrong with that ?
3) All this settings are configure via their port. Now, suppose that I
wish to disable (or Enable) an application like SAMBA - How can I do
that ?
Unless you are very familiar with how iptables work, editing /etc/
sysconfig/iptables is not usually the best option. Instead you can use
iptables -A INPUT -p tcp --dport 21 -j ACCEPT iptables -A INPUT -p udp
--dport 21 -j ACCEPT
Also, after making any changes to your firewall rules, do a service
iptables save --> saves the rules ( puts a copy of the old rules in
/etc/sysconfig/iptables.save) and make sure firewall is on in the
appropriare levels ( chkconfig -- list iptables)
As to your question regarding samba. Samba allows access control
through it's configuration file. Check man smb.conf for various options
you can use within it's conf file to restrict users and/ or hosts.
I browsed the web and I found some other way. Here is what I have....
but it doesn't work.... I have no idea what is wrong
HTTP works fine..
vSFTPD doesn't work out :-(
If the FTP client you're using drops to passive mode connections to ports
20 and 21 aren't enough. Passive mode creates a connection from
unprivileged ports to unprivileged ports.
The best way I've found to troubleshoot firewall issues is a combination
of using wireshark to port scan while a connection is being made and watch
for broken handshakes; and opening up and xterm and running tail -f
/var/log/messages which will display any blocked traffic in real time
assuming you have logging set up properly.
.
- Follow-Ups:
- Re: FTP and Firewall
- From: Stephane M
- Re: FTP and Firewall
- References:
- FTP and Firewall
- From: Stephane M
- Re: FTP and Firewall
- From: Kalyan Manchikanti
- Re: FTP and Firewall
- From: StephaneM
- FTP and Firewall
- Prev by Date: Re: FTP and Firewall
- Next by Date: Re: FTP and Firewall
- Previous by thread: Re: FTP and Firewall
- Next by thread: Re: FTP and Firewall
- Index(es):
Relevant Pages
|
|