menutup port pada linux

:nohope: akhir nya bisa update lagi blog gw :D
lagi ga punya judul nih update nya, asal aja oke…:ngakak

sebenar nya banyak cara untuk menutup port yang tidak di inginkan yang ada di dalam sebuah server. yang pasti sebelum nya kita scanning dahulu server nya port-port mana aja yang terbuka.
sebelum nya install terlebih dahulu porgram nmap di server / pc

#yum install nmap

setelah itu baru jalankan command sbb :

#nmap localhost

misal nya mau nutup port ssh

#fuser -k 22/tcp

atau bisa juga dengan cara lain yaitu dengan mematikan service nya

/sbin/service <nameservice> stop
atau
/etc/init.d/<nameservice> stop

dan jangan lupa untuk merestart /etc/init.d/xinetd.d restart

Sedangkan yang kedua dengan cara menggunakan iptables
iptables -A INPUT -p tcp –dport 110 -j DROP
iptables -A OUTPUT -p tcp –dport 110 -j DROP

#smtp 25/tcp
#smtps 465/tcp
#pop3 110/tcp
#pop3s 995/tcp
#imap 143/tcp
#imaps 993/tcp

Halaman terkait

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

[+] kaskus emoticons nartzco