-   Linux - Networking (
-   -   Enable FTP Connectivity on Linux (

rajnair0278 04-04-2006 11:14 AM

Enable FTP Connectivity on Linux
Hello Folks, one doubt. I have my website hosted on mapped to a unique ip on my router. The client is able to access it thru the unique ip. Now the client wants an FTP access on this machine. I mean he wants to connect to my through FTP and make changes to files kept in a particular folder. How can I go about with these steps?? Pls provide me the step by step procedure to go about with the same if you have any solution. Thx a ton.

JakeX 04-04-2006 11:23 AM

So you're asking how to port forward from your router??
Simple, read the manual for your router... but seriously, did you even search for an answer for port forwarding? ex > google or search on lq

Heres a quick answer, port forward from router, say port 21 --> internal IP port 21
On the internal machine, setup your FTP (don't even know what you are running?)

Please do a google search next time, its port forwarding on your router.
Also we can't provide you step by step solutions if you don't go the extra mile to post details that are relevant. Sorry to flame but I just don't understand why people don't give relevant info.

augurseer 04-04-2006 11:46 AM

if you are wondering what to do and use, port forward 21 to your relevent IP, make sure that the linux box at that IP has some sort of FTP SERVER!!!! software. like proftpd or vsftpd.

than make sure the needed config is done and that the users you want are premited to access ftp on that machine.

google will have all of this so will the documentation for proftpd, which can be built from source.....also rajnair was a bit harsh but he was right, posting a flat question like that isnt good, tiss better to give a lot of detials about your box and setup including router type, name brand, your kernel and distro and even if your root or not.

vimal 04-04-2006 06:11 PM

Hello Rajnair,

You have to do port-forwarding in your router. The procedure may change according to the make of the router. If you are using a linux box as your router , then you can use iptables to enable the same. Just forward the port to your internal machine ip using NAT. You can use this command to do a redirection.

#iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 21 -j REDIRECT -d 'IP of the internal machine'.

This must be implemented in the router, ofcourse. Please write in about the results.

rajnair0278 04-05-2006 01:32 AM

Sorry folks for my mistakes. Yeah I know I should have done that. The answers I get on these forums are more personal thats why immediately post on it. Am not a networking guy so sometimes find it very difficult to search on net with the right keywords if am running short of time. Anyways will remember all this in the future.

Thx very much for the replies and consideration. Will do some checking at my end and let you guys know my status. Cheers!!

augurseer 04-05-2006 09:11 AM

kool, please keep us up to date

All times are GMT -5. The time now is 07:44 AM.