|
|
#1 |
|
Prospect
Join Date: Jan 2002
Posts: 3
|
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. |
|
|
|
|
|
#2 |
|
Triple-A Player
Join Date: Jan 2002
Posts: 179
|
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?
|
|
|
|
|
|
#3 |
|
Prospect
Join Date: Jan 2002
Posts: 3
|
Hi at_sym !
I'll go to download it right now and try it! ![]() And, we will see... Thanks again ! |
|
|
|
|
|
#4 |
|
MVP
Join Date: Dec 2001
Location: Portland, OR
Posts: 1,472
|
Here's a non-third-party solution, and I found it in the macosxhints database:
Running services on alternate ports I just did a search on "port number" to find that... -rob. |
|
|
|
|
|
#5 |
|
Prospect
Join Date: Jan 2002
Posts: 3
|
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...
|
|
|
|
|
|
#6 |
|
MVP
Join Date: Dec 2001
Location: Portland, OR
Posts: 1,472
|
Odd...
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. |
|
|
|
|
|
#7 |
|
Prospect
Join Date: Jan 2002
Posts: 16
|
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! |
|
|
|
|
|
#8 |
|
Registered User
Join Date: Feb 2009
Posts: 1
|
Ok I might be dumb
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.
|
|
|
|
![]() |
|
|