فايروول CSF Firewall سماح Allow Domains Having Dynamic IP
​How to whitelist a hostname in ConfigServer Security and Firewall installed (CSF)
https://www.rise.company/forum/image...FFFCEUUUUIX//Z
https://www.rise.company/forum/image.../2023/01/1.png
If your server has ConfigServer Security and Firewall installed (CSF), then you may find it necessaryto whitelist a hostname as opposed to an IP address.
CSF has a file specifically for allowing hostnames called "csf.dyndns". Fully Qualified Domain Names (FQDN) are checked at a configurable interval of seconds, to poll for a change in the IP address. If the IP address has changed iptables will be updated!
الطريقة من خلال WHM :
افتح لوحة firewall ثم انزل الى lfd - Login Failure Daemon
وادخل على lfd Dynamic DNS وهى خاصية تقوم بعمل Allow دائما
https://www.rise.company/upload/uplo...6551713821.png
داخل lfd Dynamic DNS ادخل بعد # رابط الموقع / الهوست فى كل سطر
هنا تم وضع رابط من امازون aws ليس له اي بي ثابت.
https://www.rise.company/upload/uplo...6655171692.png
ثم داخل عدادات الفايروول settings
وضع قيمة 300 امام DYDNS وهى هتعمل تحديث للاي بي كل 5 دقائق
https://www.rise.company/upload/uplo...7182345771.png
---------------------------------------
طريقة اخري من خلال Terminal
---------------------------------------
To whitelist a hostname:
1) SSH to the server
2) Open the file "/etc/csf/csf.dyndns" and add the hostname.
3) Open the file "/etc/csf/csf.conf" and set DYNDNS = "300" (which would check for IP updates every 5 minutes).
Note: If you want the activity of the IP also ignored, setDYNDNS_IGNORE = "on"
4) Restart the firewall
That's it. The hostnames in csf.dyndns will automatically be allowed and the rules will refresh every 5 minutes.
شاهد ايضا
السي بانال WHM/CPANEL بديل الاستاتيك اي بي DYNAMIC DNS (DDNS)
المرجع:
https://help.serversaustralia.com.au...-installed-CSF
https://www.plothost.com/kb/whitelist-hostnames-csf/
https://forum.directadmin.com/thread...stnames.64114/
