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.
I searched and searched this forum, and could not find the answer. I know its probably simple, but everything I find cannot make it work.
I am using Slack 2.4.19. I have my "firewall" using IP masquerading (iptables) set up as 192.168.0.1. I have a Windows computer BEHIND that firewall at 192.168.0.2 running BulletProof FTP. What is the command to forward port 21 for using FTP services to 192.168.0.2, so that if someone ftp's to my external IP, it will forward to 192.168.0.2 INTERNALLY.
FTP uses two ports: 20 for data and 21 for commands. You'll need to make sure that both ports pass through. In addition, passive versus active FTP might be the culprit.
Passive ftp really sucks if you are setting up a good firewall. It uses port 20 and it takes a random port above port 1024. The best way to enable passive ftp on your firewall is with modules for connection tracking. I've tryed it myself once and i couldnt make it work. It just opened all ports above port 1024, not for only ftp but for all services.
To set your ftp program to passive or to active ftp, you could try the command: pasv
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.