Want to subscribe to topics you're interested in?
Become a Member

Create FTP user without exposing server IP

Discussion in 'Other Centmin Mod Installed software' started by runos, Dec 26, 2019.

  1. runos

    runos Member

    30
    11
    8
    Dec 17, 2019
    Ratings:
    +13
    Local Time:
    8:18 AM
    1.17.6
    10
    Hi! I noticed that the default FTP login info generated after going through option #22 exposed the server IP.

    How do I set a ftp.yourdomain.com instead of server ip for this?

    Thank you! :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    42,749
    9,670
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,925
    Local Time:
    10:18 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Really not much point in hiding the IP, anyone can get the IP from doing an IP lookup for the domain name i.e.

    ssh command below will reveal your IP address for the domain
    Code (Text):
    dig +short A ftp.yourdomain.com
    
     
  3. runos

    runos Member

    30
    11
    8
    Dec 17, 2019
    Ratings:
    +13
    Local Time:
    8:18 AM
    1.17.6
    10
    i'm using cloudflare so I should be able to hide my server IP correct?
     
  4. eva2000

    eva2000 Administrator Staff Member

    42,749
    9,670
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,925
    Local Time:
    10:18 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    You can hide server IP for http/https port 80 and 443 visitors outside of your server with cloudflare but anyone using your server/centmin mod server from within will easily know your real IP within the server. Cloudflare won't proxy protect FTP servers anyway.

    Centmin Mod isn't made for shared hosting see FAQ item 2 https://centminmod.com/faq.html but usage by oneself so no point in hiding IP from oneself :)
     
  5. runos

    runos Member

    30
    11
    8
    Dec 17, 2019
    Ratings:
    +13
    Local Time:
    8:18 AM
    1.17.6
    10
    Noted. Ok perhaps "hiding IP" isn't what I'm looking for. I just want to use ftp.yourdomain.com vs server ip as it's easier to remember for my clients. Found the solution by using Cloudflare and set the proxy mode to DNS only :)