cidr cheat sheet

Netmask              Netmask (binary)                 CIDR     Notes
_____________________________________________________________________________
255.255.255.255  11111111.11111111.11111111.11111111  /32  Host (single addr)
255.255.255.254  11111111.11111111.11111111.11111110  /31  Unuseable
255.255.255.252  11111111.11111111.11111111.11111100  /30    2  useable
255.255.255.248  11111111.11111111.11111111.11111000  /29    6  useable
255.255.255.240  11111111.11111111.11111111.11110000  /28   14  useable
255.255.255.224  11111111.11111111.11111111.11100000  /27   30  useable
255.255.255.192  11111111.11111111.11111111.11000000  /26   62  useable
255.255.255.128  11111111.11111111.11111111.10000000  /25  126  useable
255.255.255.0    11111111.11111111.11111111.00000000  /24 "Class C" 254 useable

255.255.254.0    11111111.11111111.11111110.00000000  /23    2  Class C's
255.255.252.0    11111111.11111111.11111100.00000000  /22    4  Class C's
255.255.248.0    11111111.11111111.11111000.00000000  /21    8  Class C's
255.255.240.0    11111111.11111111.11110000.00000000  /20   16  Class C's
255.255.224.0    11111111.11111111.11100000.00000000  /19   32  Class C's
255.255.192.0    11111111.11111111.11000000.00000000  /18   64  Class C's
255.255.128.0    11111111.11111111.10000000.00000000  /17  128  Class C's
255.255.0.0      11111111.11111111.00000000.00000000  /16  "Class B"

255.254.0.0      11111111.11111110.00000000.00000000  /15    2  Class B's
255.252.0.0      11111111.11111100.00000000.00000000  /14    4  Class B's
255.248.0.0      11111111.11111000.00000000.00000000  /13    8  Class B's
255.240.0.0      11111111.11110000.00000000.00000000  /12   16  Class B's
255.224.0.0      11111111.11100000.00000000.00000000  /11   32  Class B's
255.192.0.0      11111111.11000000.00000000.00000000  /10   64  Class B's
255.128.0.0      11111111.10000000.00000000.00000000  /9   128  Class B's
255.0.0.0        11111111.00000000.00000000.00000000  /8   "Class A"

254.0.0.0        11111110.00000000.00000000.00000000  /7
252.0.0.0        11111100.00000000.00000000.00000000  /6
248.0.0.0        11111000.00000000.00000000.00000000  /5
240.0.0.0        11110000.00000000.00000000.00000000  /4
224.0.0.0        11100000.00000000.00000000.00000000  /3
192.0.0.0        11000000.00000000.00000000.00000000  /2
128.0.0.0        10000000.00000000.00000000.00000000  /1
0.0.0.0          00000000.00000000.00000000.00000000  /0   IP space
 Continue reading 

tailwatchd failed fix

:ngakaks pagi- pagi buta blog ga bisa di buka :bingung
ya udah gw cek aja di server nya :malus
ternyata :matabelo: dapet pesan error begonoan :(

ga pake bingung dan bimbang, langsung buka mbah google :D

First check the tailwatchd logs for the failure reason:

# tail /usr/local/cpanel/logs/tailwatchd_log

Restart cPanel Service:

#service cpanel restart

or

#/etc/init.d/cpanel restart

If this not resolve your issue, run UPCP forcefully.

#/scripts/upcp --force

Enjoy

How to Prevent your site from the hack

Step-by-step site repair

  • Hopefullly, this detailed step-by-step procedure will help focus on
    the tasks and avoid panic.
  • The concepts apply to any server even though only Linux,
    Apache, and cPanel methods are described.
  • The steps are in order of priority if the evidence you’ve found so
    far hasn’t already given you a clear idea
    what things to focus on first.

The reason these procedures are described in so much detail is so
that people who have never done them don’t have to go
hunting around the web for specifics. If you already know the specifics,
you’ll see that the steps are much less complicated than
they look at first glance, and you can skip the long explanations.

If you just start at step 1, focus, and dive in, what you learn now
will
help you manage your
site with a lot more confidence in the future. These are all useful
things to know how to do. You might even wind up feeling like
an expert.

What not to do

Don’t just repair the damaged files and hope this experience doesn’t
happen again. That is not enough.

Nobody is ever supposed to be
able to add, delete, or change files in your website without your
permission. It
should never happen, and it usually doesn’t. Most websites don’t get
hacked. If yours did, there is something wrong with it, or
with the server, or with the webhost, or with the security on your PC.
You have to figure out how this happened so you can prevent
it from happening again.

Ok, let’s get started… The checkboxes are to help keep your place
as you go.

Continue reading

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