⚔️🧱🔥🛑IP BAN Block Allow GEOIP country traffic limit server input/output to IP countries with iptables+xt_geoip, auto db-ip update, firewall fail2ban gfw ufw cidr blacklist netfilter rules persistent restrict netaddr xtables linux debian ubuntu apache nginx web server anti hack ddos firewalld ipblocks ipdeny ip ranges MaxMind ipset
سلام، هنگام نصب بر روی سرور خام با خطاهای زیر مواجه میشوم، لطفا راهنمائی فرمائید. (سرور خام هست چیزی روش نصب نیست.)
با تشکر بابت زحمات.
gzip: *.gz: No such file or directory
cat: /usr/share/xt_geoip/tmp/GeoIP-legacy.csv: No such file or directory
rm: cannot remove '/usr/share/xt_geoip/tmp/GeoIP-legacy.csv': No such file or directory
0 entries total
Could not open /usr/share/xt_geoip/CN.iv4: No such file or directory
iptables v1.8.4 (legacy): Could not read geoip database
Could not open /usr/share/xt_geoip/CN.iv6: No such file or directory
ip6tables v1.8.4 (legacy): Could not read geoip database
با سلام ممنون بابت زحماتی که برای این اسکریپت کشیدید، سوالی که داشتم اینه که آیا میشه فقط یک آیپی (مثلا آیپی سرور ایران) رو از این قاعده مستثنی کرد؟ ممنون میشم اگه لطف کنید راهنمایی کنید، باتشکر و احترام.
درود:
کد اصلی برای نصب موجود نیست و کد اد کردن قوانین بعد از ریست سرور از کار میوفته و همینطور فایروال رو از کار میندازه.
لطفا بررسی کنید
با سپاس از برنامه خوب و کاربردی شما
درود:
کد ورژن 5 رو روی اوبونتوی 22.04 امتحان کردن و بعد از ریبوت آی پی در تمام کشورهای دنیا پینگ نداره. دستور حذف رو اجرا کردم و مجدد درست شد.
لطفا بررسی کنید
با سپاس
سلام، ممنون بابت لطفی که کردی و این اسکریپت رو در اختیارمون قرار دادی، من این اسکریپت رو روی 4 تا سرور اجرا کردم، توی 2 تا از سرورها به خوبی عمل می کنه، ولی توی یکی از سرورها وقتی که اسکریپت رو اجرا می کنم، کانفیگ ها قطع میشه، لطفا راهنمایی فرمائید.
روی vps با سیستم عامل debian 12 نصب کردم و الان چند روزه که از کار افتاده و تمام وبسایت های ایرانی مثل دیجی کالا و... رو باز میکنه؟اگه uninstall کنم و دوباره نصب کنم درست میشه یا لازمه کار دیگری انجام بدم؟
سلام
من موقع نصب این ارورها رو میگیرم:
ERROR (dkms apport): kernel package linux-headers-5.15.0-1030-aws is not supported
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/xtables-addons/3.19/build/ for more information.
dpkg: error processing package xtables-addons-dkms (--configure):
installed xtables-addons-dkms package post-installation script subprocess returned error exit status 7
Errors were encountered while processing:
xtables-addons-dkms
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
iptables v1.8.7 (nf_tables): Couldn't load match `geoip':No such file or directory
ip6tables v1.8.7 (nf_tables): Couldn't load match `geoip':No such file or directory
آخرش پیام میده که نصب شده ولی خب چون این tableها وجود ندارن، عملا کار نمیکنه.