LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Thread Tools
Old 07-20-2004, 05:05 PM   #1
Kertais909
LQ Newbie
 
Registered: Jul 2004
Location: Riga, Latvia
Posts: 2
Thanked: 0
how do i change ports for ftp server


[Log in to get rid of this advertisement]
I'm using slack 9.1 as a router and , i find it more useful to use it as a ftp server for small files, but i was told that for security i should change ftp servers port,

i wonder, how to do that

and what line should i type in iptables, to let people connect to my server ?

sorry for poor English
Kertais909 is offline     Reply With Quote
Old 07-20-2004, 06:17 PM   #2
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513
Thanked: 0
Just change the port your ftp server is listening on to a different port..........either through config files or command line (whichever works for your server)...

As for iptables, I'm not familiar with the ins and outs of it......................I use gShield to configure iptables and change the gShield config file to open up whatever port I want........in this case to match the port you've got your ftp server listening on...................

Note: You will need to add the port number to the url whenever you try to connect to it, like so:
Code:
ftp://my.ftp.server:XXXXX/
replacing the XXXXX with the port number.........

Last edited by thegeekster; 07-20-2004 at 06:20 PM..
thegeekster is offline     Reply With Quote
Old 07-21-2004, 03:31 AM   #3
Kertais909
LQ Newbie
 
Registered: Jul 2004
Location: Riga, Latvia
Posts: 2
Thanked: 0

Original Poster
and what ports should i use, will 5432 do?

but how do i know wich ftp server is running on my slack 9.1 ?
Kertais909 is offline     Reply With Quote
Old 07-21-2004, 05:18 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat, Fedora, Slackware, SuSE, OpenBSD
Posts: 1,789
Thanked: 0
Slackware uses proftpd.

edit /etc/proftpd.conf and change Port from 21 to anything, 2121 for example.
ppuru is offline     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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP and SSH server ports IBall Linux - Networking 1 12-01-2005 05:29 AM
How do I change which ftp server is used in Mandrake Update xstealthrtx Linux - Newbie 2 12-01-2004 11:57 AM
configuring it as a router ftp, my sql,web server, and open and close ports with masq digitalf Mandriva 1 09-04-2004 05:43 AM
ftp server ports - conntrack kola Linux - Security 6 07-23-2004 08:14 AM
FTP Server..... opening of ports and all that Daniel Linux - Networking 2 12-12-2002 10:43 AM


All times are GMT -5. The time now is 03:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration