Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - Linux Tweaks > ARCHIVES - Sample Config Files
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Sample Config Files Lost a config file, get a copy of popular service files here.

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-Feb-2005, 23:27
broch
Guest
 
Posts: n/a
Default

here are few network settings that you might find interesting. I would sugest to read more about these settings here
Network tuning tutorial

The values below should be tested of course

MTU value
run YAST2
select "Network Devices" then below "Already configured devices:" press "change..." Next "Edit" followed by "Advanced.." button and select "Detailed settings"
Now enterthe value that is the best for your type of network connection (i.e. cable/dsl 1500)

run this to alter the number of transmit buffers
#/sbin/ifconfig eth0 txqueuelen 1000

useful commands:
#sysctl -a
above lists current settings in kernel
#sysctl -p
lists current settings from /etc/sysctl.conf and brings them up

obviously some are security related (*)
/etc/sysctl.conf example:
Quote:
# Turn off the tcp_window_scaling if you have networking
# with systems behind broken routers, otherwise keep it on (default)
net.ipv4.tcp_window_scaling = 1
# Turn off the tcp_sack
net.ipv4.tcp_sack = 0
# tcp_fack should be off because of sack
net.ipv4.tcp_fack = 0
# Turn off the tcp_timestamps
net.ipv4.tcp_timestamps = 0
# Set TCP Re-Ordering value in kernel to 5
net.ipv4.tcp_reordering = 5
#Decrease SYN ACK retry attempts to 2
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 3
# Decrease the time default value for tcp_fin_timeout connection (*)
net.ipv4.tcp_fin_timeout = 25
# Increase the tcp-time-wait buckets pool size (*)
net.ipv4.tcp_max_tw_buckets = 360000
# Enable TCP SYN Cookie Protection (*)
net.ipv4.tcp_syncookies = 1
net.ipv4.ip_forward = 0 (*)
# Set Max SYN Backlog (*)
net.ipv4.tcp_max_syn_backlog = 2048
net.ipv4.core.netdev_max_backlog = 1024
# This will increase the amount of memory available for socket input/output queues.
#These numbers can be adjusted depending of the machine
net.core.optmem_max = 40960
net.ipv4.core.rmem_max = 8388608
net.ipv4.core.rmem_default = 65535
net.ipv4.core.wmem_max = 8388608
net.ipv4.core.wmem_default = 65535
net.ipv4.tcp_rmem = 4096 87380 8388608
net.ipv4.tcp_wmem = 4096 87380 8388608
net.ipv4.tcp_mem = 8388608 8388608 8388608

## Controls source route verification (*)
net.ipv4.conf.default.rp_filter = 1

# Enable bad error message Protection (*)
net.ipv4.icmp_ignore_bogus_error_responses = 1

# Disable ICMP broadcasts request (*)
net.ipv4.icmp_echo_ignore_broadcasts = 1
# Disables IP source routing (*)
net.ipv4.conf.all.default_source_route = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
#Enable log of spoofed packets
net.ipv4.conf.all.log_martians = 1
# Decrease time between keepalives (*)
net.ipv4.tcp_keepalive_time = 1200
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
Remember to restart network for changes.
happy networking
  #2 (permalink)  
Old 13-Feb-2005, 11:13
a1phaomega
Guest
 
Posts: n/a
Default

http://eth0.us/?q=node/28

has some good stuff too
  #3 (permalink)  
Old 13-Feb-2005, 12:25
broch
Guest
 
Posts: n/a
Default

that is basically the same thing, except that it unnecessary repeats come entries:
e.g.
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

only need default eventually all

now some of the options will be reset after reboot. I don't know if this is SuSe quirk or linux in general.

For example if you want to keep these:
net.core.optmem_max = 40960
net.ipv4.core.rmem_max = 8388608
net.ipv4.core.rmem_default = 65535
net.ipv4.core.wmem_max = 8388608
net.ipv4.core.wmem_default = 65535
net.ipv4.tcp_rmem = 4096 87380 8388608
net.ipv4.tcp_wmem = 4096 87380 8388608
net.ipv4.tcp_mem = 8388608 8388608 8388608

you have to configure them using YAST -> powertweak (which must be installed)
If you never used powertweak it will warn you that powertweak is for the expers only. Soo... are you expert?

Most of the rest of the sysctl.conf also can be configured through powertweak, I did not mention it because it seems to be more cumbersome and personally I prefer vi.
  #4 (permalink)  
Old 07-Mar-2005, 12:58
bkoeper
Guest
 
Posts: n/a
Default

Broch - Wow! Thanks for the tip.
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2