Sunday, August 20, 2017

Disabling CSF Blocked IP alerts

You need to disable the following options in CSF to disable permanent block alerts:

LF_PERMBLOCK_ALERT = "0"

LF_NETBLOCK_ALERT = "0"


but CSF would continue to send you alerts ! This is a tricky one, had to look into the whole config file to figure out what was wrong, you should also disable the following option to get it working :

LF_EMAIL_ALERT = "0"

or do a search and replace to replace all _ALERT = "1" with _ALERT = "0" 

Sunday, August 13, 2017

How to proxy EVERYTHING in LINUX / MacOS

I had setup my ubuntu box to use a socks / https proxy for all the traffic and it was working fine except for a few softwares such as Teamviewer for ubuntu , and teamviewer proxy settings was not functioning either ! So I had to either manually route teamviewer subnets to use a vpn adapter such as softether or find an easy way to REALLY forward all the traffic through a proxy server . sshuttle   was my friend here ! so could finally set a TRUE GLOBAL proxy by installing sshuttle :

pip install -y sshuttle

and proxying everything :

sshuttle -r ketab 0.0.0.0/0

where ketab is the name of the ssh connection in your ssh config file . One windows one can use Softether for such an incident to proxy everything through a vpn tunnel . To proxy a specific port, you can use the following command :

sshuttle -r ketab 0.0.0.0/0:5938

where 5938 is the port number

How to disable Debian 12 sleep on production servers

 Debian 12 has power saver enabled by default which causes your server to go to sleep if there is no mouse / keyboard interaction. To resolv...