Jump to content

WHMCS-CSF Auto Unblocking Module - Let you customer unban themselves - Save 25%


Recommended Posts

-You can change the IF statement to

 

{if $type == "server"}

 

or if you want it to be more specific to certain servers. You can do the following

 

{if $type == "server" && ($product == "server1" || $product "server2"))}

 

server1 and server2 being the product name of your server.

 

-Not at the moment. We may add this feature in the future, but it is not a guarantee.

 

Thanks for the advice on this, makes a lot of sense to me now :)

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 185
  • Created
  • Last Reply

Top Posters In This Topic

Anyways, just updating this thread with some new features that will be included with the next release.

 

-admin unblocking, checking, blocking, (maybe whitelisting) within the WHMCS area

-URL verifier

-prevent end user/reseller from unblocking an IP if it is blocked manually by an administrator

 

The next release will be a major new release. So we are looking for dev time around a month or two.

Link to comment
Share on other sites

It might be 2 different programs but the unbaning is nearly the same

 

edit /etc/hosts.deny and search the IP and remove it

 

Doesn't seem like its as easy as it sound. To unban an IP, you need to edit the following files.

 

Stop DenyHosts

Remove the IP address from /etc/hosts.deny

Edit WORK_DIR/hosts and remove the lines containing the IP address. Save the file.

Edit WORK_DIR/hosts-restricted and remove the lines containing the IP address. Save the file.

Edit WORK_DIR/hosts-root and remove the lines containing the IP address. Save the file.

Edit WORK_DIR/hosts-valid and remove the lines containing the IP address. Save the file.

Edit WORK_DIR/user-hosts and remove the lines containing the IP address. Save the file.

(optional) Consider adding the IP address to WORK_DIR/allowed-hosts

Start DenyHosts

Link to comment
Share on other sites

I have a strange issue that seems to be going on and im not sure why...

 

we have installed the module and set up a clients dedicated server within the module

 

it all appears ok and remotely and manually testing the script etc suggests everythgin is ok however in the client area when a client tries to check their IP or one of their clients IP;s we get returned an error message:

 

An error occuried while trying to connect to the hosting server.

 

there doesnt appear to be any error logging or anything so we are a t a bit of a loss to explain whats going on

 

the only thing different we have done is change the client template code to:

 

<table cellpadding="4" cellspacing="4" align="center" class="frame">
 <h3>Firewall Control</h3>
<tr><td class="fieldarea">
<center><font color="red"><strong>Cannot connect to the server? Read below for information</strong></font></center></td></tr>
<tr><td>We enforce a strict security and firewall systems on all of our servers to prevent abuse and attacks from outside of our network. If you are unable to connect to your server/account at the moment, please click the <b>Check IP Status</b> button below to check if you are blocked in our firewall.
<br /><br />If blocked, you will be able to request an automatic unblock from our firewall.</p>You should be able to access the server within 10 minutes of clicking the button below. Please make sure you do not have any FAILED log in attempt afterwards. Our firewall trace every single failed log in attempt to your account. This includes, failed attempt to access FTP, cPanel, and email.</td></tr>
<tr><td><center>

<form action="csf_checkban.php" method="POST">

<input type="submit" value="Check Firewall Block" name="firewall">

<input type="hidden" value="{$server.ipaddress}" name="ip">

<input type="hidden" value="{php}echo $clientip;{/php}" name="clientip">

<input type="hidden" value="yes" name="single">

</form><br /><b>Attention Resellers</b><br /><br />If one of your clients is having trouble accessing the server, you can search for and remove their IP address from our firewall also. Simply enter their IP into the box below and select the <b>Reseller:Search Client IP</b> and the system will check if their IP is blocked. If it is blocked, you will be given the option to remove it. The same removal conditions apply.<br /><br />

<form action="csf_checkban.php" method="POST">
<input type="text" name="clientip" size="15">
<input type="hidden" value="{$server.ipaddress}" name="ip">
<input type="submit" value="Reseller: Search Client IP" name="firewall">
<input type="hidden" value="yes" name="reseller">
</form>
</form>
</center>
</td></tr></table>

Link to comment
Share on other sites

I have a strange issue that seems to be going on and im not sure why...

 

we have installed the module and set up a clients dedicated server within the module

 

it all appears ok and remotely and manually testing the script etc suggests everythgin is ok however in the client area when a client tries to check their IP or one of their clients IP;s we get returned an error message:

 

An error occuried while trying to connect to the hosting server.

 

there doesnt appear to be any error logging or anything so we are a t a bit of a loss to explain whats going on

 

the only thing different we have done is change the client template code to:

 

<table cellpadding="4" cellspacing="4" align="center" class="frame">
 <h3>Firewall Control</h3>
<tr><td class="fieldarea">
<center><font color="red"><strong>Cannot connect to the server? Read below for information</strong></font></center></td></tr>
<tr><td>We enforce a strict security and firewall systems on all of our servers to prevent abuse and attacks from outside of our network. If you are unable to connect to your server/account at the moment, please click the <b>Check IP Status</b> button below to check if you are blocked in our firewall.
<br /><br />If blocked, you will be able to request an automatic unblock from our firewall.</p>You should be able to access the server within 10 minutes of clicking the button below. Please make sure you do not have any FAILED log in attempt afterwards. Our firewall trace every single failed log in attempt to your account. This includes, failed attempt to access FTP, cPanel, and email.</td></tr>
<tr><td><center>

<form action="csf_checkban.php" method="POST">

<input type="submit" value="Check Firewall Block" name="firewall">

<input type="hidden" value="{$server.ipaddress}" name="ip">

<input type="hidden" value="{php}echo $clientip;{/php}" name="clientip">

<input type="hidden" value="yes" name="single">

</form><br /><b>Attention Resellers</b><br /><br />If one of your clients is having trouble accessing the server, you can search for and remove their IP address from our firewall also. Simply enter their IP into the box below and select the <b>Reseller:Search Client IP</b> and the system will check if their IP is blocked. If it is blocked, you will be given the option to remove it. The same removal conditions apply.<br /><br />

<form action="csf_checkban.php" method="POST">
<input type="text" name="clientip" size="15">
<input type="hidden" value="{$server.ipaddress}" name="ip">
<input type="submit" value="Reseller: Search Client IP" name="firewall">
<input type="hidden" value="yes" name="reseller">
</form>
</form>
</center>
</td></tr></table>

 

Did you open a support ticket? If so, we are awaiting for you reply.

Link to comment
Share on other sites

Are your clients, resellers or resellers' clients always locking themselves out from your server because of too many failed logins?

 

Is your help desk always filled with IP unblocking requests?

 

With the WHMCS-CSF Auto Unblocking Module you can now give the unblock power to your hosting clients.

 

Module Features

 

  • Remote calls without needing SSH access (root access is needed initially to setup the permission and ownership for the files and the cronjobs)
  • No special PHP extension is needed
  • External access safe (Hash is checked before anything is executed)
  • Check for both deny list (csf.deny) and temp ban list (csf.tempban)
  • Email notification to the admin when a CSF rule is being taken off the list
  • Regular hosting user and reseller hosting user mode (the mod will automatically get the regular hosting user, while reseller hosting user will the option to search for a client's IP address in the block list)
  • Customizable messages
  • Template integration

 

Requirements:

 

  • Working installation of WHMCS
  • Root access (need for remote server setups, not needed for encoded module operations)
  • Two or more servers with CSF installed (the WHMCS installation should not reside on the same server as your clients)
  • Remote servers must be HTTP accessible
  • Cronjobs must be working on remote servers
  • mail() must be enabled for admin notification

 

Pricing Information:

 

Yearly Leased - $24.99 per year - [Order]

Owned with 6 months support + updates - $45.99 - [Order]

 

 

If you have any questions, feel free to contact us

 

Screen Shot 1 - Admin Management

Screen Shot 2 - Reseller client

Screen Shot 3 - Regular Client

Screen Shot 4 - Client when suspended (checking disabled)

Screen Shot 5 - Blocked Message (customizable)

Screen Shot 6 - Unblock success (customizable)

 

This module is now provided free as part of WHMphp

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated