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 know these questions have been posted, but the answers are either over my head or too convoluted, so please, bare with me.
I have slackware 10.0 running apache. I setup apache to listen for port 2800, setup a dyndns account and connecting to my local box is a cinch! So logically, my next step is to want to ftp and ssh....but one small problem: my ISP blocks all ports < 1000.
Not to worry though, I'm not a total poser, as I google like a muther trying to find a way to get this to work. I find "port forwarding". So I dump a bunch of user comments into a big bowl and start to mix.
I go into my router at work (where the local linux server is) and forward ports 2121, 2122,2123,2124,2125 to my local ip which is 192.168.1.130
Go into my proftpd.conf file, comment out inetd, uncomment standalone and change the port # to 2121.
proftpd restart and away I would go....
open up an ftp client, use my dyndns to connect using port 2121....connected successfully....WOOHOO...but there is a problem:
when I ls I get the following error:
227 Entering Passive Mode (192,168,1,130,129,139).
LIST -a
so I google some more....find out that I need to shut off passive mode, so I go back into my ftp configuration (on the client) and do this....try to reconnect and get the follow error:
200 Type set to A
CWD /home/websites/
250 CWD command successful.
PORT 192,168,2,101,18,231
500 Illegal PORT command
ERROR 40500 Illegal PORT command
So this is where I stand..... As I've googled, I get information like, "you need to set passive mode to this port or that port"...uhhh like WHERE! What file? <VirtualHosts>....I see this directive in httpd.conf, (*dumb ?) I wouldn't insert an ftp directive in the apache conf, would I??) I don't know, maybe one is just suppose to know these things...
At anyrate, thanks for reading my banter, hopefully, there is someone out there with the patience of a kindergarten teacher that can explain what I need to do to get my ftp working outside of my LAN at work.
This is my proftp.conf file that I assume is the config file for ftp:
# This is a basic ProFTPD
# configuration file.
# It establishes a single server and a single anonymous login.
# It assumes that you have a user/group "nobody" and "ftp"
# for normal/anonymous operation.
ServerName "ProFTPD Default Installation"
ServerType standalone
#ServerType inetd
DefaultServer on
# Port 21 is the standard FTP port.
Port 2121
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# This next option is required for NIS or NIS+ to work properly:
#PersistentPasswd off
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>
# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous ~ftp>
RequireValidShell off
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 50
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
# An upload directory that allows storing files but not retrieving
# or creating directories.
# <Directory incoming/*>
# <Limit READ>
# DenyAll
# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.