Add resolvers in csf.allow

Post Reply
PH-Quentin3
Junior Member
Posts: 1
Joined: 17 Sep 2019, 17:19

Add resolvers in csf.allow

Post by PH-Quentin3 »

Hi StopForumSPAM !

We are using ConfigServer Security & Firewall (csf) on server and we load the "STOPFORUMSPAM" with csf.blocklists

Since one week we have slow/strange/random issue with resolving domains:

Code: Select all

(XID 5mjkwh) The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to “https://verify.cpanel.net/ipaddrs.cgi?ip=X.X.X.X” because of an error: Could not connect to 'verify.cpanel.net:443': Name or service not known at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 107

Code: Select all

[root@YYYY ~]$ dig google.com
; <<>> DiG 9.9.4-RedHat-9.9.4-74.el7_6.2 <<>> google.com
;; global options: +cmd
;; connection timed out; no servers could be reached

Code: Select all

[root@YYYYY ~]$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
347 packets transmitted, 0 received, 100% packet loss, time 345999ms
After verification the http://www.stopforumspam.com/downloads/listed_ip_1.zip contain 8.8.8.8 !!!!

https://i.imgur.com/aiOQiiRl.png ---> You can view it !

For you information we use multiple resolver in /etc/resolv.conf but the first one is Google/8.8.8.8:

Code: Select all

[root@YYYY ~]# cat /etc/resolv.conf
options single-request-reopen
; generated by /usr/sbin/dhclient-script
search openstacklocal
nameserver 8.8.8.8
nameserver XXXXXXX
nameserver XXXXXXX
In https://www.stopforumspam.com/search you can view 2 fake reports:

Code: Select all

16-Sep-19 22:09 	8.8.8.8 	test2 	hello@domain.com 3-Sep-19 09:15
3-Sep-19 09:15 	8.8.8.8 	aiolblkfadiao02 	aiolblkfadiao02@outlook.com
Can you please watch to create a whitelist/ignore for resolvers for example ?

Why not ?

Include /etc/csf/open-resolver.allow

Code: Select all

// Google - Google INC. US
8.8.8.8
8.8.4.4

// LEVEL3 - level 3 Communications, INC .US
4.2.2.1
4.2.2.2
4.2.2.3
4.2.2.4
4.2.2.5
4.2.2.6

// DNS Advantage
156.154.71.1
156.154.70.1

// CloudFlare
1.1.1.1
1.0.0.1

// Norton ConnectSafe
199.85.126.10
199.85.127.10"
Best regards,
BallyBasic79
Junior Member
Posts: 80
Joined: 22 Aug 2019, 21:43

Re: Add resolvers in csf.allow

Post by BallyBasic79 »

Thanks for sharing this. I'm using that blocklist on one of my systems and it just updated a half-hour prior. It contained 8.8.8.8 which is the first resolver on that system. I removed the entry manually and avoided any problem. I appreciate it!
BallyBasic79
Junior Member
Posts: 80
Joined: 22 Aug 2019, 21:43

Re: Add resolvers in csf.allow

Post by BallyBasic79 »

Today's issue of this blocklist did not include these addresses. Nice work. PH-Quentin3! :cool:
Post Reply