ftp is working with no problems at all... the only thing is I need to allow only a few users to access the site.
Right now the ftp is allowing who ever has the password and username to access the site.
I tried doing:
iptables -t nat -A PREROUTING -i eth0 -p TCP -s 24.101.208.98 --dport 654 -j ACCEPT
and
iptables -t nat -A PREROUTING -j DROP
and then
iptables -t nat -A PREROUTING -i eth0 -p TCP --dport 654 -j DNAT --to-destination 192.168.0.2:21
meaning that anyone coming in with 24.101.208.98 ip will be accepted... anyone else the connection will drop
but that didn't work
it dropped all incoming connections to the ftp and didn't allow the user with the 24.101.208.98 ip to access.
Last edited by IRQ14; 01-20-2002 at 02:31 PM.
|