Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Does anybody have any suggestions on setting up a publicly accessible Linux based FTP server from behind a router w/ a static IP running NAT? I am planning to use Redhat 8x but I'm open to suggestions.
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
what kind of nat server do you have running. I am running a linux firewall/router box for my inet access. I am using an iptables script and in order to make it work just pick some random port number that isn't normally in use ie something kind of high and then you just setup a rule that forwards all traffic going to that port to your internal computer's IP addy on port 21. If you are running an iptables script I can help you out really quickly. Otherwise it will take a little thinking and a little more info on your setup.
You should be able to configure your Linksys router to do port forwarding. As bbenz3 said you can tell the router to forward all requests it gets for port 21(FTP) to the port that you have assigned FTP to on your machine. You can specify what port you want FTP to run on your machine but the default is 21. In this case you would just have the router forward all requests from port 21 to port 21 on your machine.
Cool, sounds like I'll either have to have the ftp box send its hostname to the router or give the ftp box a static IP, right?
Any recommendations on which software packages to use?
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
The Linksys should give out IPs automatically and if it is like most DHCP servers it won't assign the IP to another computer till it has used all the available IPs, so you shouldn't to worry about trying to make it static. All you need to do is figure out how to access your Linksys router's config page and setup the port forwarding part to go the IP of your ftp server. Then on your ftp server you have to have the actual ftp server app running to host the server and that should be it, besides setting up the actual accounts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.