Too many connections from my IP blocks my IP

GregW

Verified User
Joined
Aug 6, 2019
Messages
52
Location
Australia
Newbie here with DA, Firewalls etc.

I am having an issue with my dynamic IP being blocked by my firewall due to too many connections too often which I am 100% sure it is related to our email accounts.

Between what I have and wifey has, we do have too many email accounts (required for various reasons) being checked on a regular basis that must be triggering the CSF to block out dynamic IP. Unfortunatly I cannot get a static IP due to Starlink not having them availbale. I also do not want to use a VPN.

So, what can I edit/do in the CSF to stop out dynamic IPs being blocked?

I have to periodically get my IP and add it to the Allow list in the firewall which is not ideal as in a week I can add anything from 2 to 15 Allow IPs.

Obviously, we could have fewer email accounts and rules to filter (which are never 100% trusteorthy). However, if we can fix the issue without doing that, it would be a preferred solution.

Thanks for your advice and suggestions.
 
Thanks for your advice and suggestions.

Hello,

If you're completely sure CSF/LFD is blocking those IPs, just add the whole IPv6 subnet to /etc/csf/csf.ignore. That way, CSF/LFD will ignore the entire subnet and all the addresses within it.

IMPORTANT: Just keep in mind that whitelisting a full IPv6 block disables LFD protection for a huge number of addresses, so make sure you trust the entire range first. If you're using Starlink, you might want to think twice about that.


p.s. Instead of adding these IPs to an ignore list, I would still investigate the issue to find out why they are being blocked in the first place.
 
CSF support Dynamic DNS allow
you can using dyndns to detect dynamic IP on your internet router and push allow in CSF
 
CSF support Dynamic DNS allow
you can using dyndns to detect dynamic IP on your internet router and push allow in CSF
Is that a third party solution that connects with DA or built into DA?

Is there any issue of what internet provider we have, in our case Starlink in Australia.
 
example: no-ip service for dyndns, saved the IP into DNS domain, and push that domain into CSF dyndns allow feature

you need to launch the no-ip client somewhere in the same your net-linked
 
It means a DDNS updater must run on something inside your home network, usually the router if it has a Dynamic DNS setting, otherwise a PC or NAS that stays on. The updater tells No-IP, DuckDNS, etc. whenever Starlink changes the public IP, so a hostname such as home.example.net always resolves to the current address.

On the DirectAdmin server, CSF then resolves that hostname from
Code:
/etc/csf/csf.dyndns
. Set a non-zero
Code:
DYNDNS
interval in
Code:
/etc/csf/csf.conf
. If you want LFD to avoid blocking the resolved address, also review
Code:
DYNDNS_IGNORE
. Use the CSF restart action after changing it. Enter only the hostname, not https://.

Before allowing it, check the LFD block email or
Code:
/var/log/lfd.log
for the exact trigger. Starlink may use CGNAT/shared IPv4, so whitelisting the observed IPv4 can also trust other customers sharing it. If that applies, adjusting only the rule named in the LFD alert is safer than a blanket allow.
 
Back
Top