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've setup a FTP server. (proftpd)
But I need to ensure that people who are behind nat and such can access me too in Active mode (thats what you call non-passive mode right?
Is there anything I can do serverside?
is there anything they can do client side? if then how?
is there something we BOTH need to do?
or just make sure they can connect to me in passive...
If you're both behind NAT, they'll probably have to access you using PASV. I don't think there's any way around that. You could maybe set up a GRE tunnel, but good luck getting that to pass through your router if FTP won't. That would be overkill and more trouble than it's worth, anyway.
# load ftp connection tracking module if it isn't already loaded
if [ ! `lsmod 2>/dev/null | grep -q "ip_conntrack_ftp"` ]; then
modprobe ip_conntrack_ftp ports=21
fi
# load ftp nat module if it isn't already loaded
# From my own trial and efforts, this module is needed
# in order to successfully do a list on a remote host.
# This is because with passive ftp the server tells
# the client which high unprivileged port the client
# needs to connect to. Without (either this one or
# above module, not sure which) the module, you would
# have to allow outgoing requests from all unprivileged
# ports.
# https://lists.netfilter.org/pipermai...ay/011604.html
if [ ! `lsmod 2>/dev/null | grep -q "ip_nat_ftp"` ]; then
modprobe ip_nat_ftp ports=21
If you're running on an alternate port (from the outside) you'll want to change 21 to whatever you've decided to use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.