Serie 1.3.x - Panel listening ports - CloudFlare

  • Code
    1. perl /var/www/imscp/engine/setup/imscp-reconfigure -r panel_ports

    perfect - also appreciate the help on the commands to get forward.
    that did the trick exactly!


    just had to update firewall inbound rules for 8443 - which didn't take on the firewall initially - (juniper headache and edit interface & policy have to have both apparently updated... argh...


    Either way I've definitely learned a bit more... help commands are available! and fairly in depth!
    (only with your examples did I really get it quicker though)


    also huge thx for hopefully getting cloudflare to add 4443 panel port to their inbound ports - mine is currently 8443 and working as desired -


    auto forward - http://admin.domain.com:8443 gets an error from cloud flare:



    400 Bad Request
    The plain HTTP request was sent to HTTPS portcloudflare-nginx



    which is because their http ports don't go through on that port - so makes sense on that end as well - not imscp there either...


    self signed - cloudflare - crypto = Full - not full Strict - (Full strict would require a valid cert)
    (can wait until 1.4.x version and letsencrypt)

  • wouldnt work (I don't think it would)


    Request never reaches the imscp box.
    Request is stopped at cloudflare because the http port 8443 isn't passed from them only https will pass that port...



    At least it looks that way...???

  • Why it would not work? Please read what the PanelRedirect plugin is doing. It's proxying the Panel through default ports (80/443) of the panel domain.

  • usung default ports yes would work - good call...


    But hxxp://panel.domain.com:8443
    Will not...
    The plugin would work for hxxp/s://panel.domain.com
    Good suggestion and will check into setting that up.

  • Answer from CloudFlare:


    cloudflare_answer.png

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Why it would not work? Please read what the PanelRedirect plugin is doing. It's proxying the Panel through default ports (80/443) of the panel domain.

    good call - installed redirect


    proxy didn't work initially -
    changed config to redirect and worked - restarted apache2 service - not sure if that helped or not... had rebooted as well no difference.


    (last night I also found I wasn't forwarding https through firewall when I updated the 8443 port I forgot to re-add https to the inbound so I'm pretty sure redirect would have worked initially without any trouble!)



    Code
    1. /var/www/imscp/gui/plugins/PanelRedirect/config.php

    odd on the redirect - it doesn't show the :8443 - but is working so I'm not complaining!


    changed back to proxy - restarted apache service again - still working -
    so much better with the panel redirect
    thx!

    Edited once, last by viper_iii ().

  • See https://github.com/i-MSCP/imsc…errata.md#listening-ports for 1.3.x changes regarding this issue. Be aware that only new i-MSCP are affected.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206