Port settings for ftp server on gateway
Hi Guys ! I need to setup up ports on a fully configured gateway to allow traffic only on port 21 and 20 to access an ftp server.can plz anyone help,i actually need the commands.Thanks
|
Quote:
i assume this gateway is running iptables right? |
iptables on gateway
yes true ! The ftp server is on another machine and this machine is running iptables/firewall/gateway
|
Quote:
|
i dont have enough info what the firewall log or the rules are,but i am running fedora 10 on both server and gateway.This is one of the requirements
Q: configure your firewall (using iptables) on the gateway to allow FTP clients (using either Active or Passive mode) through to the FTP server. All other connections should not be allowed. |
Quote:
Code:
http://www.linuxchix.org/content/courses/security/connection_tracking you need to load the ftp connection track modules as well as allowing the access to the correct ports in the firewall. for example, i have loaded these modules in Code:
/etc/sysconfig/iptables-config Code:
IPTABLES_MODULES="ip_conntrack_netbios_ns ip_nat_ftp ip_conntrack" |
And How do you allow the source ip to the ports 20 and 20, i mean the commands
|
Quote:
Code:
iptables -I INPUT -p tcp -s x.x.x.x -m multiport --dports 20,21 -j ACCEPT the port 20 is more of a data connection from server -> client, so the RELATED,ESTABLISHED rule(s) and or the connection tracking modules should cover this. |
Thanks for your support, i really appreciate it.
|
Quote:
|
ok thanks ..........thumbs up,,,,lol
|
All times are GMT -5. The time now is 07:05 PM. |