- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change port FTP
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2005 11:57 AM
тАО09-29-2005 11:57 AM
Change port FTP
I have a question that may sound simple for you, I started 2 months ago in UNIX, and I would like to change the access port from 21 to xxxx. Anyone know how to accomplish this?
For security rules I have to blocked port 21, but I need another port in order to have a FTP conection... that's the reason that I need to add another FTP port, but it dosn't be port 21
Thank you very much in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2005 12:49 PM
тАО09-29-2005 12:49 PM
Re: Change port FTP
look for the line containing
ftp 21/tcp
line
change 21 to the port number you desire.
then execute command
inetd -c
to reread the inetd configuration you just modified.
make sure the new port you specified, is not blocked by firewall for some other reason. Better yet, talk to your firewall/security admins to find out an open port as usually, the firewall rules are setup as "block all, open only required ports."
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2005 12:50 PM
тАО09-29-2005 12:50 PM
Re: Change port FTP
Are you trying to modify the OS ftp server? Or a separately installed ftp server (e.g. pure-ftp or wu-ftp?)?
If the standard one you should be able to modify /etc/services and change the ftp line to have your new port number.
Then kill -HUP the inetd process to force it to read the config file.
And you're done... I will put a disclaimer on this that it has been a while since I did HP-UX admin so try this on a test machine first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2005 03:43 PM
тАО09-29-2005 03:43 PM
Re: Change port FTP
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2005 05:44 PM
тАО09-29-2005 05:44 PM
Re: Change port FTP
It's really a bad idea to try to go around your
security settings like this.
A better solution would be to configure the
firewall to allow FTPs only from few authorized IP
addresses and block everyone else. And make
sure the access is logged by the firewall so that
unauthorized attempts are recorded.
- Biswajit