Posts

Haproxy Monitoring or BLOCK DDOS

How to monitor or block DDOS in Haproxy https://www.haproxy.com/blog/introduction-to-haproxy-stick-tables/ Configuration to monitor access This configuration just will TAG the external IP in the   abuse table, if need block something just remove the double #, to change the level of monitoring increase or reduce the number of connection   level. # ABUSE SECTION works with http mode dependent on src ip ## tcp-request content reject if { src_get_gpc0(Abuse) gt 5000 } acl abuse src_http_req_rate(Abuse) ge 5000 acl flag_abuser src_inc_gpc0(Abuse) ge 100 acl scanner src_http_err_rate(Abuse) ge 5000 # Abuse protection. # Sources that are not filtered. tcp-request content accept if { src -f /etc/haproxy/whitelist.lst } # Sources rejected immeditely. tcp-request content reject if { src -f /etc/haproxy/blacklist.lst } # Limiting the connection rate per client. No more than 5000 connections over 3 seconds. ## tcp-request content reject if { ...

SSH / Putty or similar freeze,

Image
Change the MTU Putty / SSH / Termius  freeze.  After changing the MTU of Windows TAP adapter to 1200, it works fine. 

Azure Mysql in app, error #2002

Image
In the Azure WEB APP , MYSQL IN APP, you get this error azurewebsites.net/phpMyAdmin/ Erreur : #2002 - An attempt was made to access a socket in a way forbidden by its access permissions. — The server is not responding (or the local server's socket is not correctly configured). mysqli_real_connect(): (HY000/2002): An attempt was made to access a socket in a way forbidden by its access permissions.  The solution is

Got error 1 from storage engine

Image
Using in the Azure Database for MySQL server Got the error 1  when I tried to migrate the database ERROR 1030 (HY000) at line   Got error 1 from storage engine Why? https://blogs.msdn.microsoft.com/azuresqldbsupport/2017/06/08/azure-database-for-mysql-cant-restore-database-with-error-got-error-1-from-storage-engine/ "Got error 1 from storage engine" While indicated to be a storage capacity issue on a MySQL server when researching this error, in Azure Database for MySQL this error is most commonly seen when the MyISAM storage engine is being used. Currently, MyISAM is not supported on Azure Database for MySQL. In this scenario, you will need to modify the tables to utilize a supported engine such as InnoDB. This is the engine that Azure Database for MySQL uses by default. This article Converting MyISAM to InnoDB will help you understand the implications of changing from MyISAM and the suggested conversion steps to InnoDB. The most common method is t...

Haproxy - wordpress problem in SSL

A problem in WordPress SSL HAPROXY Have a problem to put your SSL in your WordPress using HAPROXY as a reverse proxy? To resolve this is simple Add in  wp-config.php define('FORCE_SSL_ADMIN', true); define('FORCE_SSL_LOGIN', true); if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on'; Add this in your haproxy. frontend webfront mode http bind 0.0.0.0:443 ssl crt /etc/haproxy/certs.d reqadd X-Forwarded-Proto:\ https ... ... Make sure to use option http-server-close  as well or the reqadd setting might not work as expected.

Remote Server returned '550 5.2.3 RESOLVER.RST.RecipSizeLimit; message too large for this recipient'

Office 365 or Exchange online problem Remote Server returned '550 5.2.3 RESOLVER.RST.RecipSizeLimit; message too large for this recipient' Connect in your office365/Exchangeonlime with PowerShell Confirm the problem,   Get-Mailbox | fl mailboxplan,maxsendsize,maxreceivesize If you have   Get-Mailbox user@mailbox.com | fl mailboxplan,maxsendsize,maxreceivesize MailboxPlan    : ExchangeOnline-1ab122338-4f1a-bac1-c28ff8a1234 MaxSendSize    : 0 B (0 bytes) MaxReceiveSize : 0 B (0 bytes) Execute the command  Set-Mailbox user@mailbox.com -MaxReceiveSi ze 55 MB -MaxSend Size 55 MB  or   Set-Mailbox user@mailbox.com -MaxReceiveSize 150MB -MaxSendSize 150MB To apply for all users run this.  Get-Mailbox | Set-Mailbox -MaxReceiveSize 55MB -MaxSendSize 55MB

How to connect in your Office365 or Exchange online

How to connect in your Office365 or Exchange online Using the script below.