≡ Menu


Linux: Log Suspicious Martian Packets / Un-routable Source Addresses

I run a web-server and I would like to log packets with un-routable source addresses on Linux operating system. How can I log spoofed packets on Debian / Ubuntu / CentOS / RHEL / Linux based server? How can I log a Martian packet (packet from Mars) on Linux operating systems?
[click to continue…]

Ubuntu Linux: Turn On Exec-Shield Buffer Overflow Protection

I am trying to set exec-shield protection on Linux as described here but getting the following error on Ubuntu Linux server version 12.04 LTS:

sysctl -w kernel.exec-shield=1
error: "kernel.exec-shield" is an unknown key

How do I fix this problem and make sure exec-shield buffer overflow protection security feature turned on Ubuntu Linux?
[click to continue…]

Linux: Turn On TCP SYN Cookie Protection

I am under DoS attack. My cloud based server hosting company asked me to enable TCP SYN cookie protection to save my domain from SYN Attack. How do I turn on TCP Syn cookie protection under Ubuntu or CentOS Linux based server?
[click to continue…]

Linux: Force Close A Socket / Port On Server In a TIME_WAIT State

I run a BT client and few other server program on Linux. Sometime these programs get overloaded with too many connections and crashes. If I restart my apps, I see lots of old IPs in a TIME_WAIT state. How do I force and and close everything in a TIME_WAIT state under Linux operating systems?
[click to continue…]

FreeBSD: Allow Normal Users To Mount CDROMs / DVDs / USB Devices

How do I allow any ordinary users (such as my son or wife) to mount CD-ROMs, DVDs, USB drives, and other removable media on our home server powered by FreeBSD operating systems?
[click to continue…]

I'm trying to use Cinelerra video editing and compositing software under Linux operating systems. However, I'm getting the following error:

MWindow::init_shm: /proc/sys/kernel/shmmax is 0x1000000.
It should be at least 0x7ffffff for cinelerra.

How do I fix this problem?
[click to continue…]

Linux: Find Out Open Files [ Descriptors ] Command

How do I find out that how many files are open and how many allowed in Linux server operating systems?
[click to continue…]

Linux: Neighbour Table Overflow Error and Solution

I setup a CentOS Linux based Linux server running as a gateway and firewall server. However, I'm getting the following messages in the /var/log/messages log file:

Dec 20 00:41:01 fw01 kernel: Neighbour table overflow.
Dec 20 00:41:01 fw01 last message repeated 20 times


Dec 20 00:41:01 fw03 kernel: [ 8987.821184] Neighbour table overflow.
Dec 20 00:41:01 fw03 kernel: [ 8987.860465] printk: 100 messages suppressed.

Why does kernel throw "Neighbour table overflow" messages in syslog? How do I fix this problem under Debian / CentOS / RHEL / Fedora / Ubuntu Linux?
[click to continue…]

Linux Stop Flushing of mmaped Pages To Disk

How can I stop the flushing of mmaped pages to disk in Linux?
[click to continue…]

FreeBSD: Disable / Stop Console Beep ( Bell )

I know how to turn off console beep under Gnome Linux desktop. How do I stop console beep under FreeBSD operating systems?
[click to continue…]