Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I did ‘sudo iptables -F’ and I was disconnected from SSH and can’t access it now…
@Shaun: You can use the Remote Console (<a href=“https://cloud.digitalocean.com/droplets”>https://cloud.digitalocean.com/droplets</a>, select your droplet, and click the Remote Console button at the top-right corner of the page) to regain access to your droplet.
Hi!
Cool stuff! I am trying to set up it, but psad does not show any alert when I run “sudo service psad status” even after the scan “sudo nmap -PN -sS server_domain_or_ip” from an other machine… What that could be?
Thanks!
Alex
Been trying to follow this for a centos 7 Machine. I found the psad RPM so downloaded and installed it. But haven’t found the iptables-persistent RPM. Any ideas, please?
Could the logging of iptables produce a performance issue on high load servers?
You really don’t need to use iptable settings… You can use UFW, https://www.digitalocean.com/community/tutorials/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server along with the settings from the above article for psad.
I have message from support with content “We have blocked someone from your IP space for abuse. Reason: Port Scanning” How can’t I do to fix my server with problem? I try use uwf to block all port, open only port 80 to fix this problem. But I want to find exactly what programs are running port scans from my server to fix the problem thoroughly.
Hi,
I install psad 2.2.3 on server running RedHat 6.4.
The firewall log the DROP lines and psad send mail about them.
The problems are:
Each time I run service psad restart I get: Shutting down the psad psadwatchd daemon: ** [FAILED]* Shutting down the psad daemon: [ OK ] Starting psad: [ OK ] *
When I run service psad status, to see the current status of psad detected events, I get: psad (pid 11335) is running… psadwatchd is stopped
Why? Thanks.
Hello,
I installed psad on Ubuntu 14.04 and I get this error by email: You may just need to add a default logging rule to the /sbin/iptables 'filter' 'INPUT' chain (…). I think I configured it correctly…
This is the end portion of my iptables:
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -j LOG
-A INPUT -j DROP
-A FORWARD -j LOG
And my complete ip6tables (even if I didn’t enable IPv6 when I created the droplet):
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -j LOG
-A INPUT -j DROP
-A FORWARD -j LOG
I see in the psad status that it is logging events. Is there something missing?
Thanks!
I’m not sure but I think the problem comes from Fail2ban, which is adding rules before the other iptables ones.
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-N fail2ban-ssh
-N fail2ban-ssh-ddos
-A INPUT -p tcp -m multiport --dports 222 -j fail2ban-ssh-ddos
-A INPUT -p tcp -m multiport --dports 222 -j fail2ban-ssh
-A INPUT -j LOG
-A INPUT -i lo -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 222 -j ACCEPT
(…)
Any idea how I can make the LOG rule stay before Fail2ban rules?