Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.0
    • Fix Version/s: 4.11.0-b1
    • Component/s: Modules, Plugins
    • Labels:
      None

      Description

      Clients sometimes get themselves blocked from their cPanel, Plesk, etc hosting server. Usually by logging in too many times with the wrong password for SSH or email. This will allow clients to login to Blesta, click to manage their hosting service, and access a plugin management tab that allows them to unblock their own IP address.

      The plugin should be compatible with cPanel, as well as other shared hosting panels that the CSF firewall plugin works for, including:

      • cPanel
      • DirectAdmin

      The plugin would connect using the API credentials stored for cPanel (and possibly DirectAdmin) to unblock the IP via the API. See https://forums.cpanel.net/threads/minimal-permissions-for-managing-csf-through-api-token.623415/ for an example.

      It would be possible to also add compatibility for other servers/panels by establishing an SSH connection to the server and executing the command:

      csf -dr IPADDRESS

      This could work with SSH RSA key, passwordless access, or with the root login credentials. If using keys, and the default SSH port, we should have what we need from the module row of the module if we know what we are looking for and add support for specific additional modules like: Virtualmin, Interworx, Plesk

      Going to the management tab as a client, the client would see their IP address and be able to issue an UNBAN command for it. They wouldn't be able to enter just any IP.

      The plugin should also register a management tab in the staff interface when managing the service, which would allow the admin to enter any IP address to unban.

      There is a command called pdsh that we could execute via system or exec to execute commands on remote servers that we have SSH access too, an example command would be:

      pdsh -w root@server.domain.com -R ssh "csf -dr IPADDRESS"

      See https://www.rittmanmead.com/blog/2014/12/linux-cluster-sysadmin-parallel-command-execution-with-pdsh/ for usage examples.

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Description Clients sometimes get themselves blocked from their cPanel, Plesk, etc hosting server. Usually by logging in too many times with the wrong password for SSH or email. This will allow clients to login to Blesta, click to manage their hosting service, and access a plugin management tab that allows them to unblock their own IP address.

        The plugin should be compatible with cPanel, as well as other shared hosting panels that the CSF firewall plugin works for, including:

        - cPanel
        - DirectAdmin

        The plugin would connect using the API credentials stored for cPanel (and possibly DirectAdmin) to unblock the IP via the API. See https://forums.cpanel.net/threads/minimal-permissions-for-managing-csf-through-api-token.623415/ for an example.

        It would be possible to also add compatibility for other servers/panels by establishing an SSH connection to the server and executing the command:

        csf -dr IPADDRESS

        This could work with SSH RSA key, passwordless access, or with the root login credentials. If using keys, and the default SSH port, we should have what we need from the module row of the module if we know what we are looking for and add support for specific additional modules like: Virtualmin, Interworx, Plesk

        Going to the management tab as a client, the client would see their IP address and be able to issue an UNBAN command for it. They wouldn't be able to enter just any IP.

        The plugin should also register a management tab in the staff interface when managing the service, which would allow the admin to enter any IP address to unban.
        Clients sometimes get themselves blocked from their cPanel, Plesk, etc hosting server. Usually by logging in too many times with the wrong password for SSH or email. This will allow clients to login to Blesta, click to manage their hosting service, and access a plugin management tab that allows them to unblock their own IP address.

        The plugin should be compatible with cPanel, as well as other shared hosting panels that the CSF firewall plugin works for, including:

        - cPanel
        - DirectAdmin

        The plugin would connect using the API credentials stored for cPanel (and possibly DirectAdmin) to unblock the IP via the API. See https://forums.cpanel.net/threads/minimal-permissions-for-managing-csf-through-api-token.623415/ for an example.

        It would be possible to also add compatibility for other servers/panels by establishing an SSH connection to the server and executing the command:

        csf -dr IPADDRESS

        This could work with SSH RSA key, passwordless access, or with the root login credentials. If using keys, and the default SSH port, we should have what we need from the module row of the module if we know what we are looking for and add support for specific additional modules like: Virtualmin, Interworx, Plesk

        Going to the management tab as a client, the client would see their IP address and be able to issue an UNBAN command for it. They wouldn't be able to enter just any IP.

        The plugin should also register a management tab in the staff interface when managing the service, which would allow the admin to enter any IP address to unban.

        There is a command called pdssh
        admin Paul Phillips made changes -
        Description Clients sometimes get themselves blocked from their cPanel, Plesk, etc hosting server. Usually by logging in too many times with the wrong password for SSH or email. This will allow clients to login to Blesta, click to manage their hosting service, and access a plugin management tab that allows them to unblock their own IP address.

        The plugin should be compatible with cPanel, as well as other shared hosting panels that the CSF firewall plugin works for, including:

        - cPanel
        - DirectAdmin

        The plugin would connect using the API credentials stored for cPanel (and possibly DirectAdmin) to unblock the IP via the API. See https://forums.cpanel.net/threads/minimal-permissions-for-managing-csf-through-api-token.623415/ for an example.

        It would be possible to also add compatibility for other servers/panels by establishing an SSH connection to the server and executing the command:

        csf -dr IPADDRESS

        This could work with SSH RSA key, passwordless access, or with the root login credentials. If using keys, and the default SSH port, we should have what we need from the module row of the module if we know what we are looking for and add support for specific additional modules like: Virtualmin, Interworx, Plesk

        Going to the management tab as a client, the client would see their IP address and be able to issue an UNBAN command for it. They wouldn't be able to enter just any IP.

        The plugin should also register a management tab in the staff interface when managing the service, which would allow the admin to enter any IP address to unban.

        There is a command called pdssh
        Clients sometimes get themselves blocked from their cPanel, Plesk, etc hosting server. Usually by logging in too many times with the wrong password for SSH or email. This will allow clients to login to Blesta, click to manage their hosting service, and access a plugin management tab that allows them to unblock their own IP address.

        The plugin should be compatible with cPanel, as well as other shared hosting panels that the CSF firewall plugin works for, including:

        - cPanel
        - DirectAdmin

        The plugin would connect using the API credentials stored for cPanel (and possibly DirectAdmin) to unblock the IP via the API. See https://forums.cpanel.net/threads/minimal-permissions-for-managing-csf-through-api-token.623415/ for an example.

        It would be possible to also add compatibility for other servers/panels by establishing an SSH connection to the server and executing the command:

        csf -dr IPADDRESS

        This could work with SSH RSA key, passwordless access, or with the root login credentials. If using keys, and the default SSH port, we should have what we need from the module row of the module if we know what we are looking for and add support for specific additional modules like: Virtualmin, Interworx, Plesk

        Going to the management tab as a client, the client would see their IP address and be able to issue an UNBAN command for it. They wouldn't be able to enter just any IP.

        The plugin should also register a management tab in the staff interface when managing the service, which would allow the admin to enter any IP address to unban.

        There is a command called pdsh that we could execute via system or exec to execute commands on remote servers that we have SSH access too, an example command would be:

        pdsh -w ^hosts -R ssh "csf -dr IPADDRESS"
        admin Paul Phillips made changes -
        Description Clients sometimes get themselves blocked from their cPanel, Plesk, etc hosting server. Usually by logging in too many times with the wrong password for SSH or email. This will allow clients to login to Blesta, click to manage their hosting service, and access a plugin management tab that allows them to unblock their own IP address.

        The plugin should be compatible with cPanel, as well as other shared hosting panels that the CSF firewall plugin works for, including:

        - cPanel
        - DirectAdmin

        The plugin would connect using the API credentials stored for cPanel (and possibly DirectAdmin) to unblock the IP via the API. See https://forums.cpanel.net/threads/minimal-permissions-for-managing-csf-through-api-token.623415/ for an example.

        It would be possible to also add compatibility for other servers/panels by establishing an SSH connection to the server and executing the command:

        csf -dr IPADDRESS

        This could work with SSH RSA key, passwordless access, or with the root login credentials. If using keys, and the default SSH port, we should have what we need from the module row of the module if we know what we are looking for and add support for specific additional modules like: Virtualmin, Interworx, Plesk

        Going to the management tab as a client, the client would see their IP address and be able to issue an UNBAN command for it. They wouldn't be able to enter just any IP.

        The plugin should also register a management tab in the staff interface when managing the service, which would allow the admin to enter any IP address to unban.

        There is a command called pdsh that we could execute via system or exec to execute commands on remote servers that we have SSH access too, an example command would be:

        pdsh -w ^hosts -R ssh "csf -dr IPADDRESS"
        Clients sometimes get themselves blocked from their cPanel, Plesk, etc hosting server. Usually by logging in too many times with the wrong password for SSH or email. This will allow clients to login to Blesta, click to manage their hosting service, and access a plugin management tab that allows them to unblock their own IP address.

        The plugin should be compatible with cPanel, as well as other shared hosting panels that the CSF firewall plugin works for, including:

        - cPanel
        - DirectAdmin

        The plugin would connect using the API credentials stored for cPanel (and possibly DirectAdmin) to unblock the IP via the API. See https://forums.cpanel.net/threads/minimal-permissions-for-managing-csf-through-api-token.623415/ for an example.

        It would be possible to also add compatibility for other servers/panels by establishing an SSH connection to the server and executing the command:

        csf -dr IPADDRESS

        This could work with SSH RSA key, passwordless access, or with the root login credentials. If using keys, and the default SSH port, we should have what we need from the module row of the module if we know what we are looking for and add support for specific additional modules like: Virtualmin, Interworx, Plesk

        Going to the management tab as a client, the client would see their IP address and be able to issue an UNBAN command for it. They wouldn't be able to enter just any IP.

        The plugin should also register a management tab in the staff interface when managing the service, which would allow the admin to enter any IP address to unban.

        There is a command called pdsh that we could execute via system or exec to execute commands on remote servers that we have SSH access too, an example command would be:

        pdsh -w root@server.domain.com -R ssh "csf -dr IPADDRESS"
        admin Paul Phillips made changes -
        Description Clients sometimes get themselves blocked from their cPanel, Plesk, etc hosting server. Usually by logging in too many times with the wrong password for SSH or email. This will allow clients to login to Blesta, click to manage their hosting service, and access a plugin management tab that allows them to unblock their own IP address.

        The plugin should be compatible with cPanel, as well as other shared hosting panels that the CSF firewall plugin works for, including:

        - cPanel
        - DirectAdmin

        The plugin would connect using the API credentials stored for cPanel (and possibly DirectAdmin) to unblock the IP via the API. See https://forums.cpanel.net/threads/minimal-permissions-for-managing-csf-through-api-token.623415/ for an example.

        It would be possible to also add compatibility for other servers/panels by establishing an SSH connection to the server and executing the command:

        csf -dr IPADDRESS

        This could work with SSH RSA key, passwordless access, or with the root login credentials. If using keys, and the default SSH port, we should have what we need from the module row of the module if we know what we are looking for and add support for specific additional modules like: Virtualmin, Interworx, Plesk

        Going to the management tab as a client, the client would see their IP address and be able to issue an UNBAN command for it. They wouldn't be able to enter just any IP.

        The plugin should also register a management tab in the staff interface when managing the service, which would allow the admin to enter any IP address to unban.

        There is a command called pdsh that we could execute via system or exec to execute commands on remote servers that we have SSH access too, an example command would be:

        pdsh -w root@server.domain.com -R ssh "csf -dr IPADDRESS"
        Clients sometimes get themselves blocked from their cPanel, Plesk, etc hosting server. Usually by logging in too many times with the wrong password for SSH or email. This will allow clients to login to Blesta, click to manage their hosting service, and access a plugin management tab that allows them to unblock their own IP address.

        The plugin should be compatible with cPanel, as well as other shared hosting panels that the CSF firewall plugin works for, including:

        - cPanel
        - DirectAdmin

        The plugin would connect using the API credentials stored for cPanel (and possibly DirectAdmin) to unblock the IP via the API. See https://forums.cpanel.net/threads/minimal-permissions-for-managing-csf-through-api-token.623415/ for an example.

        It would be possible to also add compatibility for other servers/panels by establishing an SSH connection to the server and executing the command:

        csf -dr IPADDRESS

        This could work with SSH RSA key, passwordless access, or with the root login credentials. If using keys, and the default SSH port, we should have what we need from the module row of the module if we know what we are looking for and add support for specific additional modules like: Virtualmin, Interworx, Plesk

        Going to the management tab as a client, the client would see their IP address and be able to issue an UNBAN command for it. They wouldn't be able to enter just any IP.

        The plugin should also register a management tab in the staff interface when managing the service, which would allow the admin to enter any IP address to unban.

        There is a command called pdsh that we could execute via system or exec to execute commands on remote servers that we have SSH access too, an example command would be:

        pdsh -w root@server.domain.com -R ssh "csf -dr IPADDRESS"

        See https://www.rittmanmead.com/blog/2014/12/linux-cluster-sysadmin-parallel-command-execution-with-pdsh/ for usage examples.
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Story Points 5
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.10.0 Sprint 3 [ 107 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Fix Version/s 4.10.0-b1 [ 11305 ]
        Fix Version/s Short Term [ 10800 ]
        Assignee Jonathan Reissmueller [ jonathan ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.10.0 Sprint 3 [ 107 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Story Points 5 8
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.10.0 Sprint 3 [ 107 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 3 hours, 22 minutes [ 12120 ]
        Worklog Id 13594 [ 13594 ]
        jonathan Jonathan Reissmueller made changes -
        Time Spent 3 hours, 22 minutes [ 12120 ] 1 day, 1 hour, 32 minutes [ 34320 ]
        Worklog Id 13599 [ 13599 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.10.0 Sprint 3 [ 107 ] 4.11.0 Sprint 1 [ 108 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Time Spent 1 day, 1 hour, 32 minutes [ 34320 ] 1 day, 2 hours, 37 minutes [ 38220 ]
        Worklog Id 13607 [ 13607 ]
        jonathan Jonathan Reissmueller made changes -
        Fix Version/s 4.11.0-b1 [ 11401 ]
        Fix Version/s 4.10.0-b1 [ 11305 ]
        Original Estimate 0 minutes [ 0 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/Jul/20

              Time Tracking

              Estimated:
              Original Estimate - 0 minutes
              0m
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 day, 2 hours, 37 minutes
              1d 2h 37m

                Agile