View Full Version : Change the os x ftp server port
Hi,
For weeks, I have been looking for the way to change the os x ftp server port.
Indeed, this port is set up to 21 by default. And, because of my university firewall, I would like to set it more than 512, like 1021 for instance.
Different ways I tried :
- search on many web sites : nothing
- man ftpd : nothing
- modify /etc/services : nothing
- and many other things... : nothing ! :(
I think now that the only thing I could do is to install another ftp server, but I would really like to use os x ftp server...
Thks a lot for help.
Bat.
at_sym
01-24-2002, 05:14 PM
Hey Bat--
I just noticed this on VersionTracker yesterday:
"PortReflector is designed to accept TCP connections on a configured port and reflect them to another host or port number. "
The site is at http://www.wickedlysimple.com/PortReflector/index.html
Could this be what you're seeking? :cool:
Hi at_sym !
I'll go to download it right now and try it! :)
And, we will see...
Thanks again !
griffman
01-24-2002, 05:39 PM
Here's a non-third-party solution, and I found it in the macosxhints database:
Running services on alternate ports (http://www.macosxhints.com/article.php?story=2000112713143850)
I just did a search on "port number" to find that...
-rob.
Hi griffman,
I did this search and I already found that, but it doesn't work :
echo 'ftp2 5021/tcp' | niload -m services .
returns "niload: can't update NetInfo /services/ftp2: Authentication error"
even with "sudo", and even with actived authentification in the NetInfo App.
No problem for this line in inetd.conf :
ftp2 stream tcp nowait root /usr/libexec/tcpd ftpd -l
Moreover, for the first line, you could directly add/modify a service with the NetInfo App. For instance, modify the ftp port of the native service "ftp" and turn it into 5021, instead of create a new service "ftp2".
But it doesn't work too... :(
griffman
01-25-2002, 08:03 AM
That's how I've always reset the services on my machine -- I run FTP, SSH, and the web server on higher ports. The web server and SSH are both easy, and I've done FTP both ways - changing it at the command line, and via NetInfo Manager.
[Begin experiment]
OK, I deleted my "ftp2" domain from NetInfo Manager, leaving "ftp" pointing at port 21. Changed port 21 to port 5232 (randomly picked ;-). Saved changes. Stopped and restarted FTP server via the Sharing prefs panel. Updated my router to pass port 5232 to the Mac. FTP'd to the Mac from the PC on port 5232 and connected perfectly.
[End experiment]
Exactly what problems are you having changing this in NetInfo Manager?
-rob.
lancelot183
01-28-2002, 06:45 PM
what about Carracho, or Limewire?
i'm stuck behind a firewall, and i figure if i can fool my box into using port 23, say, (since that's open (don't ask why, i don't know)) then maybe i can get something to happen.
anybody know how to redirect/forward a port number?
i tried NetInfo Manager, but it doesn't have a service for carracho or limewire, and i don't understand enough to make a new one work.
thanks!
purified_in_fire
02-16-2009, 03:33 AM
I'm relatively new to mac and sometimes editing stuff like this is confusing but I really need to swap my FTP port and I have no Idea where to do this I hear talk about etc/services have no idea what that is can someone please help me change my ftp port to something else Telus is blocking 21.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.