**SME Server 7.6**
I was greeted with a bunch of http probes while skimming through my logwatch file this morning.
Here is the log entry->
--------------------- httpd Begin ------------------------
0.86 MB transferred in 1226 responses (1xx 0, 2xx 1224, 3xx 0, 4xx 2, 5xx 0)
1226 Content pages (0.86 MB),
Attempts to use known hacks by 2 hosts were logged 4 time(s) from:
193.144.51.53: 2 Time(s)
/\.\./\.\./\.\./ 2 Time(s)
204.110.9.189: 2 Time(s)
/\.\./\.\./\.\./ 2 Time(s)
A total of 2 sites probed the server
193.144.51.53
204.110.9.189
A total of 1 possible successful probes were detected (the following URLs
contain strings that match one or more of a listing of strings that
indicate a possible exploit):
/?-d%20allow_url_include%3DOn+-d%20auto_prepend_file%3D../../../../../../../../../../../../etc/passwd%00%20-n/?-d%20allow_url_include%3DOn+-d%20auto_prepend_file%3D../../../../../../../../../../../../etc/passwd%00%20-n HTTP Response 200
Requests with error response codes
404 Not Found
/vtigercrm/modules/com_vtiger_workflow/sor ... mportal.conf%00: 2 Time(s)
---------------------- httpd End -------------------------
I took these 2 ip addresses and plugged them into iptables to prevent any access to the server from those ip's. I also found a way by using iptables to prevent probes such as the example below which says that if a user attempts 10 new connections to any ports in any order within 30 seconds, start dropping their packets. I tried port scanning my server from outside my network with nmap and sure enough this works.
$IPTABLES -A INPUT -p tcp -i eth0 -m state --state NEW -m recent --set
$IPTABLES -A INPUT -p tcp -i eth0 -m state --state NEW -m recent --update --seconds 30 --hitcount 10 -j DROP
$IPTABLES -A FORWARD -p tcp -i eth0 -m state --state NEW -m recent --set
$IPTABLES -A FORWARD -p tcp -i eth0 -m state --state NEW -m recent --update --seconds 30 --hitcount 10 -j DROP
This is still not enough and I am not really knowledgeable on http attacks and would appreciate if somebody can give me advice on tightening up my server to prevent http attacks.
Thanks.
