How change pure-ftpd port 21 to...

Discussion in 'Installation/Configuration' started by greenes, Feb 13, 2010.

  1. greenes

    greenes New Member

    Hi,

    Please, could any body tell me how change port number
    21 to 1122, for exemple, on pure-ftpd ispconfig3?

    Thank's.

    greenes
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Which distribution do you use?
     
  3. greenes

    greenes New Member

    ...Debian Lenny...

    Thank you
     
  4. greenes

    greenes New Member

    Falko,

    could you please tell me how change the port 21 to 11122 for exemple?

    In Lenny IspConfig3.

    Thank you newly.

    greenes
     
  5. greenes

    greenes New Member

    ...answer to my self; so may be help to some body:

    echo "11122" > /etc/pure-ftpd/conf/Bind

    ...that's mean:

    echo "port" > /etc/pure-ftpd/conf/Bind

    ...it works fine.

    Think it is possible also:

    echo "IP,port" > /etc/pure-ftpd/conf/Bind

    ...example:

    echo "192.168.1.5,11122" > /etc/pure-ftpd/conf/Bind

    ...but even i don't try it.

    greenes
     
  6. pajarofeo

    pajarofeo New Member

    And other port else?

    I've tried

    Code:
    echo "21" > /etc/pure-ftpd/conf/Bind
    echo "8989" >> /etc/pure-ftpd/conf/Bind
    and...

    Code:
    echo "21,8989" > /etc/pure-ftpd/conf/Bind
    but it doesn't work...

    Where have you seen the word BIND in the documentation ??

    Thanks
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

  8. estepix

    estepix New Member

    Hi, if you want to run FTP on port 1122 you need to run:

    echo ",1122" > /etc/pure-ftpd/conf/Bind

    Note that the syntax is:
    echo "<ip-address>,<port-number>" > /etc/pure-ftpd/conf/Bind

    So if you leave empty the <ip-address> field before the comma, you are only binding the <port-number> and therefore it will listen on "all" ips:

    Code:
    netstat -tnulp | grep pure-ftpd
    tcp        0      0 0.0.0.0:1122              0.0.0.0:*               LISTEN      6086/pure-ftpd (SER
    tcp6       0      0 :::1122                   :::*                    LISTEN      6086/pure-ftpd (SER
    
    To apply the change remember to restart the service:
    On old debian based OS:
    Code:
    /etc/init.d/pure-ftpd-mysql restart
    On newer debian based OS:
    Code:
    service pure-ftpd-mysql restart
     

Share This Page