my erpnext hosted on ubuntu 16 was working fine till this morning. Then suddenly I started to got “Refused to connect” responses.
After a while I have realised Im getting this error if I usig my home internet connetction with a fix IP address. As soon as I change to any other network (so other public ip too) all working in order.
Is there any IP blocking mechanism in the standard ErpNext system ?
Or what can be the issue ?
I have chcked with otherd users too. Any user using my home network refused, on other networks working in order.
Worth to mention I can reach my server on ssh menawhile I’m getting the conntection refused message in the browser. (on my home netw)
Yes Im looking for now how to whitelist or unban, but also a question for me what was the reason of the ban…
I have done nothing special, I was just using the system as a regular user.
Just now I tried to add my client IP and my IP into the white-list with the command fail2ban-client set JAIL_NAME addignoreip IP, to find your jail name, you can use command fail2ban-client status.
To get the white list you can use command: fail2ban-client get JAIL_NAME ignoreip
Please let me know if I’m doing right thing, many thanks!
Looks like the fail2ban still bans pos connected to the server on offline mode.
One of my clients IP was getting banned for some time, This was occurring everyday.
I have added the Static IP to the ignore list, will test it for few days and get back to this thread.
You could tweak the config of fail2ban yourself as this is just a standard install. Frappe haven’t done anything specific with this. But obviously if you reduce the IP checks you run the risk of security problems with possible attacks
Otherwise you could use a DNS service like the free noip.com on your pos terminal so that you have a standard DNS hostname instead of an IP that you base fail2ban rules on even with the IP changing at times.
Yes I want thinking the same to put DDNS, As I read about it in some other thread, But will have to make it everywhere. WIll try this method also, As I am not comfortable to disable the fail2ban service.
Tweaking will not help as it is again making the server vulnerable just like disabling the service.