+
1 2 2
  1. #1
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    4,612
    10

    Change FTP Port with WHM & CSF


    Change FTP Port with WHM & CSF
    How to Open Ports for Passive FTP in CSF (Configserver Firewall & Security)
    How to change the FTP port for PureFTPd



    1. Use your preferred text editor, such as vi or nano to create or edit the /var/cpanel/conf/pureftpd/local file.

    2. Set the port number the to the port of your choosing using the "Bind" variable. Make sure that you select a port that is not already in use by another service, and ensure that the port is not blocked by your firewall software or otherwise inaccessible. An example of this file's contents when setting "Bind" is included below:


    port ftp overwrite



    :
    nano /var/cpanel/conf/pureftpd/local


    :
     Bind: 1234
    1234 21


    3. To apply your changes, perform a force update of FTP with the following command:


    local
    :
     /scripts/setupftpserver pure-ftpd --force


    4. Confirm the FTP service is now listening on the new port number. For example, I used port 6021:

    :
      lsof -P -n -i :1234

    (LISTEN)



    -------------------------
    CSF
    -------------------------
    21 1234

    ports passive ftp

    Find the setting TCP_IN and TCP_OUT in the list, and add the following to each:

    :
    49152:65534


    :
    TCP_IN = "20,1234,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2079,2080,2082,2083,2086,2087,2095,2096,49152:65534"
    1234

    :
    nano /etc/csf/csf.conf
    -------------------------

    ftp csf


    FTP Cpanel Active vs Passive


    :
    https://www.ndchost.com/wiki/guides/...-csf-on-cpanel
    https://support.cpanel.net/hc/en-us/...t-for-PureFTPd
    https://support.cpanel.net/hc/en-us/...o-CSF-Firewall
    https://docs.cpanel.net/knowledge-ba...-passive-mode/
    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  2. #2
    Status
    Offline
      Rise Company
    Engineering and Technology
    Apr 2014
    Egypt
    4,612
    10

    : Change FTP Port with WHM & CSF

    20 21 ftp
    ------------------------------------------------------------------------
    Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    # 1 Business Services

    Web Hosting - Business Emails

    Web Design - Google Adwords

    www.rise.company | www.rise.company/emails

    :
    ! .



  1. Nginx port CSF Firewall
    Rise Company Rise Host
    : 0
    : 09-12-2021, 01:40
  2. port router ZXHN H168N V3.1
    Rise Company Leased Line / Vpn / Static IP
    : 0
    : 02-09-2020, 00:03
  3. port router HG658 V2 Home Gateway
    Rise Company Leased Line / Vpn / Static IP
    : 0
    : 25-06-2020, 02:22
  4. : 0
    : 04-04-2020, 15:06
  5. change SSH Port with WHM & CSF
    Rise Company SSH / SFTP
    : 0
    : 14-01-2020, 01:34