LinuxSecurity.com
Share your story
The central voice for Linux and Open Source security news
Home News Topics Advisories HOWTOs Features Newsletters About Register

Welcome!
Sign up!
EnGarde Community
Login
Polls
What is the most important Linux security technology?
 
Advisories
Community
Linux Events
Linux User Groups
Link to Us
Security Center
Book Reviews
Security Dictionary
Security Tips
SELinux
White Papers
Featured Blogs
All About Linux
DanWalsh LiveJournal
Securitydistro
Latest Newsletters
Linux Security Week: February 6th, 2012
Linux Advisory Watch: February 3rd, 2012
Subscribe
LinuxSecurity Newsletters
E-mail:
Choose Lists:
About our Newsletters
RSS Feeds
Get the LinuxSecurity news you want faster with RSS
Powered By

  
Linux Security: Easy as 1-2-3 Print E-mail
User Rating:      How can I rate this item?
Source: EnterpriseNetworkingPlanet - Posted by Bill Keys   
Security But you can certainly beef up the security of a given Linux system to make it more secure than it would otherwise be - while still enabling it to do its job - and it's that process, known as hardening, that is the subject of this article. Without going in to the finer details, we'll be looking at the general steps you should take to harden any system under your control that warrants extra security beyond what you believe is necessary for your "normal" systems. This article is a good start to improving a Linux user's security. It does not take a lot of work to harden any Linux system, so take a look at different security practices with this article. Do you have any basic steps to harden a Linux machine?

Read this full article at EnterpriseNetworkingPlanet

Comments
This article wouldn't help beginner or Written by stephen on 2008-06-27 21:20:46
This article was very vague, I know it had to be short but he could have included so much more like PAM and sudoers file, suid guid,  
ls -d /proc/* |grep [0-9] |wc -l; ps ax |wc -l 
This is process miscount, meaning possiblity or rootkit 
find /dir -xdev -perm +o=w ! \( -type d -perm +o=t \) ! -type l -print 
This is find world writable files 
find /dir -xdev -type f -perm +ug=s -print 
This is find setuid and setgid 
This noob didn't even mention tripwire or aide after install, 
no separate partition for /tmp with noexec 
No mention of any /etc/sysctl.conf tweaking 
 
Now lets paste the following example below then ctrl-s save and exit 
After you make the changes to the file lets apply the changes without a reboot: 
 
 
sysctl -p 
sysctl -w net.ipv4.route.flush=1 
 
Example: 
# Kernel sysctl configuration file for Red Hat Linux 

# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and 
# sysctl.conf(5) for more details. 
 
# Controls IP packet forwarding 
net.ipv4.ip_forward = 0 
 
# Controls source route verification 
net.ipv4.conf.default.rp_filter = 1 
 
 
 
# Controls whether core dumps will append the PID to the core filename. 
# Useful for debugging multi-threaded applications. 
kernel.core_uses_pid = 1 
 
#Prevent SYN attack 
net.ipv4.tcp_syncookies = 1 
net.ipv4.tcp_max_syn_backlog = 2048 
net.ipv4.tcp_synack_retries = 2 
 
# Disables packet forwarding 
net.ipv4.ip_forward=0 
 
# Disables IP source routing 
net.ipv4.conf.all.accept_source_route = 0 
net.ipv4.conf.lo.accept_source_route = 0 
net.ipv4.conf.eth0.accept_source_route = 0 
net.ipv4.conf.default.accept_source_route = 0 
 
# Enable IP spoofing protection, turn on source route verification 
net.ipv4.conf.all.rp_filter = 1 
net.ipv4.conf.lo.rp_filter = 1 
net.ipv4.conf.eth0.rp_filter = 1 
net.ipv4.conf.default.rp_filter = 1 
 
# Disable ICMP Redirect Acceptance 
net.ipv4.conf.all.accept_redirects = 0 
net.ipv4.conf.lo.accept_redirects = 0 
net.ipv4.conf.eth0.accept_redirects = 0 
net.ipv4.conf.default.accept_redirects = 0 
 
# Enable Log Spoofed Packets, Source Routed Packets, Redirect Packets 
net.ipv4.conf.all.log_martians = 1 
net.ipv4.conf.lo.log_martians = 1 
net.ipv4.conf.eth0.log_martians = 1 
 
# Disables IP source routing 
net.ipv4.conf.all.accept_source_route = 0 
net.ipv4.conf.lo.accept_source_route = 0 
net.ipv4.conf.eth0.accept_source_route = 0 
net.ipv4.conf.default.accept_source_route = 0 
 
# Enable IP spoofing protection, turn on source route verification 
net.ipv4.conf.all.rp_filter = 1 
net.ipv4.conf.lo.rp_filter = 1 
net.ipv4.conf.eth0.rp_filter = 1 
net.ipv4.conf.default.rp_filter = 1 
 
# Disable ICMP Redirect Acceptance 
net.ipv4.conf.all.accept_redirects = 0 
net.ipv4.conf.lo.accept_redirects = 0 
net.ipv4.conf.eth0.accept_redirects = 0 
net.ipv4.conf.default.accept_redirects = 0 
 
 
 
# Modify system limits for Ensim WEBppliance 
fs.file-max = 65000 
 
# Decrease the time default value for tcp_fin_timeout connection 
net.ipv4.tcp_fin_timeout = 15 
 
# Decrease the time default value for tcp_keepalive_time connection 
net.ipv4.tcp_keepalive_time = 1800 
 
# Turn off the tcp_window_scaling 
net.ipv4.tcp_window_scaling = 0 
 
# Turn off the tcp_sack 
net.ipv4.tcp_sack = 0 
 
# Turn off the tcp_timestamps 
net.ipv4.tcp_timestamps = 0 
 
# Enable TCP SYN Cookie Protection 
net.ipv4.tcp_syncookies = 1 
 
# Enable ignoring broadcasts request 
net.ipv4.icmp_echo_ignore_broadcasts = 1 
 
# Enable bad error message Protection 
net.ipv4.icmp_ignore_bogus_error_responses = 1 
 
# Log Spoofed Packets, Source Routed Packets, Redirect Packets 
net.ipv4.conf.all.log_martians = 1 
 
# Set maximum amount of memory allocated to shm to 256MB 
kernel.shmmax = 268435456 
 
 
 
# Increases the size of the socket queue (effectively, q0). 
net.ipv4.tcp_max_syn_backlog = 1024 
 
# Increase the maximum total TCP buffer-space allocatable 
net.ipv4.tcp_mem = 57344 57344 65536 
 
# Increase the maximum TCP write-buffer-space allocatable 
net.ipv4.tcp_wmem = 32768 65536 524288 
 
# Increase the maximum TCP read-buffer space allocatable 
net.ipv4.tcp_rmem = 98304 196608 1572864 
 
# Increase the maximum and default receive socket buffer size 
net.core.rmem_max = 524280 
net.core.rmem_default = 524280 
 
# Increase the maximum and default send socket buffer size 
net.core.wmem_max = 524280 
net.core.wmem_default = 524280 
 
# Increase the tcp-time-wait buckets pool size 
net.ipv4.tcp_max_tw_buckets = 1440000 
 
# Allowed local port range 
net.ipv4.ip_local_port_range = 16384 65536 
 
# Increase the maximum memory used to reassemble IP fragments 
net.ipv4.ipfrag_high_thresh = 512000 
net.ipv4.ipfrag_low_thresh = 446464 
 
# Increase the maximum amount of option memory buffers 
net.core.optmem_max = 57344 
 
I mean you could have contributed something other than that vague generic non-helpful babble. I hope you don't get paid for this.

Only registered users can write comments.
Please login or register.

Powered by AkoComment!

 
< Prev   Next >
    
Partner

 

Latest Features
Password guessing with Medusa 2.0
Password guessing as an attack vector
Squid and Digest Authentication
Squid and Basic Authentication
Demystifying the Chinese Hacking Industry: Earning 6 Million a Night
Free Online security course (LearnSIA) - A Call for Help
What You Need to Know About Linux Rootkits
Review: A Practical Guide to Fedora and Red Hat Enterprise Linux - Fifth Edition
Using the sec-wall Security Proxy
sec-wall: Open Source Security Proxy
Yesterday's Edition
Hackers Hit Apple Supplier Foxconn, Leak Usernames And Passwords
Hackers Mug Google's Wallet App on Rooted Android Devices
Google Chrome will no longer check for revoked SSL certificates online
Have Your Users' Passwords Already Been Hacked?
DDoS Tools Flourish, Give Attackers Many Options
Partner Sponsor

Community | HOWTOs | Blogs | Features | Book Reviews | Networking
 Security Projects |  Latest News |  Newsletters |  SELinux |  Privacy |  Home
 Hardening |   About Us |   Advertise |   Legal Notice |   RSS |   Guardian Digital
(c)Copyright 2012 Guardian Digital, Inc. All rights reserved.