{"id":546,"date":"2025-09-10T13:15:06","date_gmt":"2025-09-10T10:15:06","guid":{"rendered":"https:\/\/destek.narhost.com\/?p=546"},"modified":"2025-10-26T14:21:29","modified_gmt":"2025-10-26T11:21:29","slug":"sunucuza-iptables-ile-ping-atilmasini-engellemek","status":"publish","type":"post","link":"https:\/\/narhost.com\/destek\/sunucuza-iptables-ile-ping-atilmasini-engellemek\/","title":{"rendered":"Sunucuza IPTables ile Ping At\u0131lmas\u0131n\u0131 Engellemek"},"content":{"rendered":"<p data-start=\"176\" data-end=\"433\">Sunucunuza d\u0131\u015far\u0131dan yap\u0131lan <strong data-start=\"205\" data-end=\"225\">ICMP Echo (ping)<\/strong> isteklerini engellemek, temel d\u00fczeyde bir g\u00fcvenlik \u00f6nlemidir. \u00d6zellikle sald\u0131r\u0131 ama\u00e7l\u0131 yap\u0131lan <strong data-start=\"321\" data-end=\"347\">ping flood (ping seli)<\/strong> gibi ICMP tabanl\u0131 sald\u0131r\u0131lardan korunmak istiyorsan\u0131z bu i\u015flemi uygulaman\u0131z \u00f6nerilir.<\/p>\n<p data-start=\"435\" data-end=\"572\">Narhost olarak a\u015fa\u011f\u0131da, <strong data-start=\"459\" data-end=\"549\">Linux sunucular\u0131n\u0131zda <code data-start=\"483\" data-end=\"493\">iptables<\/code> komutlar\u0131yla ping isteklerini nas\u0131l engelleyece\u011finizi<\/strong> ad\u0131m ad\u0131m a\u00e7\u0131kl\u0131yoruz.<\/p>\n<hr data-start=\"574\" data-end=\"577\" \/>\n<h2 data-start=\"579\" data-end=\"620\">\ud83d\udeab Sunucuda Ping Cevaplar\u0131n\u0131 Engelleme<\/h2>\n<p data-start=\"622\" data-end=\"731\">A\u015fa\u011f\u0131daki komutlar ile sunucunuza gelen <strong data-start=\"662\" data-end=\"690\">ping (ICMP echo-request)<\/strong> isteklerini tamamen engelleyebilirsiniz:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">iptables -A INPUT -p icmp --icmp-type echo-request -j DROP<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"805\" data-end=\"853\">veya alternatif olarak tekrar yazmak isterseniz:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">iptables -A INPUT -p icmp --icmp-type 8 -j DROP<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"916\" data-end=\"932\">\ud83d\udccc <strong data-start=\"919\" data-end=\"932\">A\u00e7\u0131klama:<\/strong><\/p>\n<ul data-start=\"933\" data-end=\"1083\">\n<li data-start=\"933\" data-end=\"1015\">\n<p data-start=\"935\" data-end=\"1015\"><code data-start=\"935\" data-end=\"959\">icmp-type echo-request<\/code> veya <code data-start=\"965\" data-end=\"978\">icmp-type 8<\/code>, gelen ping isteklerini temsil eder.<\/p>\n<\/li>\n<li data-start=\"1016\" data-end=\"1083\">\n<p data-start=\"1018\" data-end=\"1083\"><code data-start=\"1018\" data-end=\"1024\">DROP<\/code> ifadesi, bu paketlerin tamamen g\u00f6z ard\u0131 edilmesini sa\u011flar.<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1085\" data-end=\"1088\" \/>\n<h2 data-start=\"1090\" data-end=\"1136\">\ud83d\udd01 De\u011fi\u015fiklikleri Kal\u0131c\u0131 Yapmak (Opsiyonel)<\/h2>\n<p data-start=\"1138\" data-end=\"1290\">Sunucunuzu yeniden ba\u015flatt\u0131\u011f\u0131n\u0131zda <code data-start=\"1173\" data-end=\"1183\">iptables<\/code> kurallar\u0131 s\u0131f\u0131rlanabilir. Kal\u0131c\u0131 olmas\u0131n\u0131 istiyorsan\u0131z, a\u015fa\u011f\u0131daki komutlar\u0131 kullanarak kurallar\u0131 kaydedin:<\/p>\n<p data-start=\"1292\" data-end=\"1318\">Debian\/Ubuntu sistemlerde:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">sudo apt install iptables-persistent<br \/>\nsudo netfilter-persistent save<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"1400\" data-end=\"1434\">CentOS\/AlmaLinux\/RHEL sistemlerde:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">sudo service iptables save<br \/>\n<\/code><\/div>\n<\/div>\n<hr data-start=\"1475\" data-end=\"1478\" \/>\n<h2 data-start=\"1480\" data-end=\"1521\">\u2705 Ping Engelleme Durumunu Kontrol Etme<\/h2>\n<p data-start=\"1523\" data-end=\"1619\">Ekledi\u011finiz kural\u0131n aktif olup olmad\u0131\u011f\u0131n\u0131 kontrol etmek i\u00e7in a\u015fa\u011f\u0131daki komutu kullanabilirsiniz:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">iptables -L -n<br \/>\n<\/code><\/div>\n<\/div>\n<hr data-start=\"1649\" data-end=\"1652\" \/>\n<h2 data-start=\"1654\" data-end=\"1694\">\ud83d\udd04 Ping Cevaplar\u0131n\u0131 Tekrar A\u00e7mak \u0130\u00e7in<\/h2>\n<p data-start=\"1696\" data-end=\"1825\">E\u011fer daha sonra sunucunun ping isteklerine yan\u0131t vermesini isterseniz, a\u015fa\u011f\u0131daki komut ile ilgili <code data-start=\"1794\" data-end=\"1800\">DROP<\/code> kural\u0131n\u0131 silebilirsiniz:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">iptables -D INPUT -p icmp --icmp-type echo-request -j DROP<br \/>\n<\/code><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Sunucunuza d\u0131\u015far\u0131dan yap\u0131lan ICMP Echo (ping) isteklerini engellemek, temel d\u00fczeyde bir g\u00fcvenlik \u00f6nlemidir. \u00d6zellikle sald\u0131r\u0131 ama\u00e7l\u0131 yap\u0131lan ping flood (ping seli) gibi ICMP tabanl\u0131 sald\u0131r\u0131lardan korunmak istiyorsan\u0131z bu i\u015flemi uygulaman\u0131z \u00f6nerilir.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,13],"tags":[],"class_list":["post-546","post","type-post","status-publish","format-standard","hentry","category-vds-server","category-vps-server"],"meta_box":[],"_links":{"self":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":2,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"predecessor-version":[{"id":732,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/546\/revisions\/732"}],"wp:attachment":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}