image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
LinkBack Thread Tools
  #1  
Old July 4th, 2001, 12:57 PM
Registered User
 
Join Date: Sep 2000
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
hekal is on a distinguished road
changing the ftpd port

Hi all, I want to change the port ftpd uses. :) Currently my Mac is behind a Linksys firewall/router. Ports 21, 22, and 80 are open. I want to put the ftpd on some non-standard port just to add a little to security.

As a test, I went into /etc/services and changed ftp's line to look like this:

ftp 2121/tcp

Then I did a kill -HUP <inetd pid>. From the outside I could still connect through port 21. So then I just killed inetd and manually restarted it. Same problem. I still connected at port 21. Is there something special I need to do? Any special configuration file I need to edit?

Help:)
Reply With Quote
  #2  
Old July 4th, 2001, 12:58 PM
Registered User
 
Join Date: Sep 2000
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
hekal is on a distinguished road
err stupid message board. I kull -HUP'd the inetd PID :)
Reply With Quote
  #3  
Old July 5th, 2001, 11:25 AM
jdog's Avatar
Not a Moderator
 
Join Date: May 2001
Location: The North Pole.
Posts: 276
Thanks: 0
Thanked 0 Times in 0 Posts
jdog is on a distinguished road
In inetd.conf there should be a line that calls ftpd, if you add a -p [portnumber] to the end and restart, it should work.

-jdog
Reply With Quote
  #4  
Old July 5th, 2001, 12:09 PM
Registered User
 
Join Date: Sep 2000
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
hekal is on a distinguished road
Is that the only way to do it though?
Reply With Quote
  #5  
Old July 5th, 2001, 02:02 PM
jdog's Avatar
Not a Moderator
 
Join Date: May 2001
Location: The North Pole.
Posts: 276
Thanks: 0
Thanked 0 Times in 0 Posts
jdog is on a distinguished road
There might be an ftpd config file somewhere that has an option to set the port? You may also be able to change it via netinfo manager? I don't know.

-jdog
Reply With Quote
  #6  
Old July 5th, 2001, 02:26 PM
Registered User
 
Join Date: Sep 2000
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
hekal is on a distinguished road
I searched for anything with ftpd in it.. No conf file. I doubt netinfo manages port information. This is all handled at a lower level.

Kinda weird that I'd have to specify the port on the command line in inetd but who knows.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing default FTP port in 10.2 gatorparrots Unix & X11 2 October 6th, 2002 04:04 PM
Changing the web port HECTORdaBIZATCH Mac OS X System & Mac Software 4 January 20th, 2002 10:23 PM
help changing port that ftp serves on (instead of 21) seney Apple News, Rumors & Discussion 1 June 18th, 2001 04:13 PM
Changing the FTP port in OSX PipoCanaja Mac OS X System & Mac Software 4 May 28th, 2001 05:26 AM


All times are GMT -5. The time now is 11:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright 2000-2010 DigitalCrowd, Inc.