ftp server passive ports

jjjustjjjay

Member


Messages: 21

hey all

I was just wondering what is a good ftp server for freebsd 8.0 that allows you to set passive ftp ports
 

lMicROl

New Member


Messages: 11

I use /usr/ports/ftp/vsftpd
man vsftpd.conf
Code:
pasv_max_port
   The  maximum  port  to allocate for PASV style data connections. Can be used to specify a  narrow  port  range  to  assist  fire- walling.
Default: 0 (use any port)

pasv_min_port
     The  minimum  port  to allocate for PASV style data connections.Can be used to specify a  narrow  port  range  to  assist  fire-walling.
 Default: 0 (use any port)
 

ghostcorps

Well-Known Member

Reaction score: 2
Messages: 295

Hi Guys

I have been trying to change the default ftp port all day and just found this topic. Does this mean that the default ftpd (bsdftpd-ssl-1.1.0_2) in my case, does not actually allow me to change the ftp port?

I have tried:

/etc/ftpd.conf
Code:
PassivePortRange xxx xxx


and

/etc/rc.conf
Code:
ftpd_flags="-p xxx"

Both to no avail.

Can this be done or do I need to install a different server?

Also, is it possible to hide the version from nmap?
 

cyrille_v

New Member

Reaction score: 1
Messages: 3

My choice is proftpd. many options, many modules, well documented and easy for customization -> /usr/ports/ftp/proftpd. Also there are some graphical interfaces for administration, for example in webmin.
 

ghostcorps

Well-Known Member

Reaction score: 2
Messages: 295

Thanks Cryille,

I have had alot of bad luck trying to setup proftp or pureftp in the past, I am hoping I can just stay with what comes natively if possible.
 

Wiedmann

Member

Reaction score: 7
Messages: 29

Does this mean that the default ftpd (bsdftpd-ssl-1.1.0_2) in my case,
...
FreeBSD 8.1 Release
"bsdftpd-ssl-1.1.0_2" is the default ftpd in FreeBSD 8.1?

Well, from ftpd(8) ftpd in FreeBSD is using IP_PORTRANGE_HIGH for data ports, which you can change with net.inet.ip.portrange.hifirst (49152) and net.inet.ip.portrange.hilast (65535) in /etc/sysctl.conf (a system wide setting).

BTW:
Personally I also using Pure-FTPd.
 
Top