Add default Gateway on different subnet FreeBSD / Linux

Hello two days a go i got new VPS (FreeBSD 11) , the IP was  “213.202.XxX.XX.x/32” subnet and my GW i was given was in a different subnet “89.16X.XxX.1”. So here is how to add 213.202.XxX.XX.x/32 and a different GW on your Linux / BSD host: ##first add your gateway with subnet , then add…
Read more

How to check if your VPS SSD is Real- (IOPS benchmark)

Salam I always wanted to check whether the VPS  i rent and mentioned Storage (SSD) spec is real ? so I use a package “FIP (Flexible I/O) ” on my  CentOS VPS. so install FIO first : wget rpm -iv fio-2.1.10-1.el7.rf.x86_64.rpm Now I run Random Read/Write Test , This will create a 4 GB…
Read more

Leap Second 2016 may cause Linux to freeze

Leap Second 2016 may cause Linux to freeze : A leap second will again be inserted at the end of June 30, 2016 at 23:59:60 UTC. Previously, on 30 June, 2012 a leap second was added. what is it ? Leap seconds are a periodic one-second adjustment of Coordinated Universal Time(UTC) in order to keep…
Read more

مشکل امنیتی کرنل لینوکس Copy-on-Write (COW) و نحوه رفع اشکال CVE-2016-5195

مشکل امنیتی کرنل لینوکس   Copy-on-Write (COW) و نحوه رفع اشکال   مشکل به اینصورت هست که کاربر عادی میتونه با این اکسپلوید و با استفاده از مپینگ سیستم  دسترسی مدیر ارشد پیداکنه : CVE-2016-5195 A race condition was found in the way the Linux kernel’s memory subsystem handled the copy-on-write (COW) breakage of private read-only…
Read more

نمایش کارت شبکه و لینک ها (اتصال و عدم اتصال) در سولاریس Solaris

  نمایش کارت شبکه و لینک ها (اتصال و عدم اتصال) در سولاریس   Solaris   برای اینکار از دستور dladm استفاده میکنیم #dladm   برای دیدن وصل بودن لینک و آپ و دان بودن کارت شبکه از : # dladm show-dev nxge0 link: down speed: 0 Mbps duplex: unknown nxge1 link: down speed: 0 Mbps…
Read more

Fix Network Card Naming issue “__tmpxxxx” in Linux (Redhat)

Fix Network Card Naming issue “__tmpxxxx” in Linux (Redhat) After inserting some of the network interface cards (NIC) in HP servers (DL 380 G8 in my case) hosting Linux, they are shown and named as  ‘__tmpxxxx’ instead of “ ethX” . Ethernet interface keeps changing into c even after two more reboot of the server.  …
Read more

IP Forwarding in Solaris 10 without reboot

برای فعال / غیرفعال کردن آی پی فوراردینگ : # routeadm -e ipv4-forwarding -e = enable # routeadm -d ipv4-forwarding -d = disable حالا واسه اینکه کامندمون اوکی شه باید یه کامند دیگه هم بزنیم # routeadm –u خوب حله . اوه راستی اگه بخواییدرو یه کارت شبکه خاص اینکار رو بکنید: #ifconfig ce0 router…
Read more


Hey After long time , I’ll start blogging and sharing my knowledge

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!