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.
I'm trying to get a proftp server running on an internal linux pc accessible to the wider internet. The linux pc gets its net access through a windows xp pc with ics, and web browsing etc from linux works fine. I can access the ftp server from any internal pc fine (although i can't log in, wrong login even though im sure its right, but i think thats a different problem), but not through the ip of my windows pc. I have forwarded port 21 from windows to linux pc (I think? anyway to check) and have set the ftp server to masquarde as the external ip, and i don't think i have a firewall on the linux pc but not sure? But it still don't work? When i try to access it i get
through dos ftp i get error messege: ftp: connect :unknown error message.
I'm a bit new to linux so any help, in the simplest terms, would be appreciated.
by any chance are u willing to reverse that setup and make the Linux box the gateway? Just curious, how in Windows did you even tell it to forward port 21?
Also, FTP uses another port besides 21 (there is a command port and a data port). Try forwarding ports 20 and 21.
Are you maybe using some firewall on the windows machine? I assume so because you're talking about "forwarding port 21" ?? And doesn't ftp also use port 22 or 23? Maybe if you bring down the fw on the xp and see what happens then?
Anyway, it's better using a linuxbox as router/fw than winxp with ics.
idd, the ports for ftp seem to be: (/etc/services)
ftp-data 20/tcp
ftp 21/tcp
Thanks for the repsonse. I've got someone to test it remotely and it works. Must be a problem testing it locally due to the port forwarding.
Anyway for MS XP ICS port forwarding there is a "Settings" button under the ICS setup boxes on the advanced settings tab of the actual internet connection
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.