-
Change port that the iSeries FTP server listens on
Oct 14Found this on Search400 …
… how to change your FTP server to use a port other than the default port of 21. Ports in the range of 0-1023 are reserved and well-known ports, with port 21 being the established standard for FTP. The reason most people want to do this is to make it harder for someone to gain unauthorized access to your FTP server.
Although this may make it more difficult for someone to discover that you are running an FTP server, this by itself will not prevent someone from being able to discover and potentially hack into your FTP server. If you decide to use this technique, keep in mind that this is no substitute for other types of security and should be viewed as only a very small piece of your security infrastructure. If you have existing FTP programs or scripts, you will need to change them to access your new FTP port.
For anyone who has tried to do this, you may have noticed that the port can’t be changed using the CHGFTPA command. Here is how to make the changes.
- Enter the command WRKSRVTBLE and scroll down to the services that are labeled ftp-control.
- Display and print these entries.
- Use the command ADDSRVTBLE to duplicate these entries exactly as they appear, with the exception that you will specify a new port number. To get lowercase values to stay lowercase, make sure they are enclosed in single quotes. When you specify your new FTP port, you should avoid using the reserved ports of 0-1023. You should also try to avoid using other ports that are already defined.
- Compare your new entries to the existing entries that are on port 21 to ensure that everything is an exact match.
- Delete your existing entries for service ftp-control that is on port 21.
- End and restart TCP/IP.
- If you wish, entries labeled ftp-data can also be changed in a similar manner.
When you access FTP from the AS/400, you will now have to specify the port. From the AS/400 the FTP command would look like this:
FTP RMTSYS(’10.10.10.10′) PORT(21021)
From the DOS prompt, it would look like this:C:WINDOWS>ftp
ftp> open 10.10.10.10 21021
One Response to “Change port that the iSeries FTP server listens on”
-
Change iSeries FTP PortGeeky Ramblings � Change port that the iSeries FTP server listens on - Good useful information if you need to change your port. Thanks David!…
Leave a Reply
Archives
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- February 2004
- January 2004
- December 2003
- November 2003
- March 2002

Recent Comments