Zhjim,
Sorry for disturb you, I am very week in iptables rules, as you said i have mentioned everything but still its not working, When i stop iptables
ftp://10.10.10.1:2222/ its asking for user and password and site is opening, but when i start Iptables it will ask for user and pass, when i give correct user and pass till will not open this site, its not going to directory, its giving one error message
"An error occured opening that folder on FTP server. Make sure you have permission to access that folder. Deatails: The server name or address could not be resolved"
Bellow i am giving full my IPTABLES File snap... Please check where exacly i am doing mistake...
[root@edulinux-server sysconfig]# vi iptables
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
##SSH PORT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p tcp --dport 3128 -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p udp --dport 3128 -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p tcp --dport 67 -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p udp --dport 67 -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p tcp --dport 68 -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p udp --dport 68 -j ACCEPT
##SMTP
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p udp --dport 25 -j ACCEPT
##POP3
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p tcp --dport 110 -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p udp --dport 110 -j ACCEPT
##PORT MAP PORT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p tcp --dport 111 -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p udp --dport 111 -j ACCEPT
##NETBOIS SAMBA PORT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p tcp --dport 137:139 -j ACCEPT
##FTP PORT
-A RH-Firewall-1-INPUT -p tcp --dport 20 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 21 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 69 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 115 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 989 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 990 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 2431 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 2433 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 2811 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 2811 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 2121 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 8021 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 2222 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 2222 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 21 -j ACCEPT
##HTTP PORT
-A RH-Firewall-1-INPUT -s 172.16.4.0/24 -d 172.16.4.0/24 -p tcp --dport 80 -j ACCEPT
##
##SMTP and POP3##
-A RH-Firewall-1-INPUT -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp --dport 110 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 110 -j ACCEPT
-A OUTPUT -m state --state NEW,ESTABLISHED,ReLATED -j ACCEPT
##
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
Please help me out on this...
Thanks and Regards,
Sandeep CC