SysCtl (System Control) is an interface for examining and dynamically changing parameters in the BSD and Linux operating systems. The implementation mechanism in these two systems is very different.
ToDo: Update this config later…
This is rough research, this speed may very on different computers and isp’s. But usually this tweak shows noticeable speed differences. Only do this if you understand how to tweak this file to your own connection. Otherwise just remove all of “speed tweak” options and just leave the security ones.
- Equipment Used:
- Motorola (SB6120) Cable Modem
- Hardware Version: 3.0
- Firmware Version: SB612X-1.0.3.3-SCM00-NOSH
- D-Link DIR-615 4-Port Router
- Hardware Version: C1
- Firmware Version: 3.11NA
- Speeds Achieved:
- ISP “Advertised” Plan: 15mbps Download & 5mbps Upload
- Default “Real” Speed: 2mbps Download & 256kb Upload
- Tweaked SysCtl Speed: 4mbps Download & 1mbps Upload
- ISP “Advertised” Plan: 30mbps Download & 5mbps Upload
- Default “Real” Speed: 5mbps Download & 1mbps Upload
- Tweaked SysCtl Speed: 8mbps Download & 2mbps Upload
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# # Kernel Configuration # /etc/sysctl.conf # kernel.sysrq = 0 ## speed tweak net.core.rmem_max = 12582912 net.core.wmem_max = 12582912 #net.core.rmem_default = 31457280 #net.core.wmem_default = 31457280 net.ipv4.tcp_rmem = 10240 87380 12582912 net.ipv4.tcp_wmem = 10240 87380 12582912 net.ipv4.tcp_sack = 1 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_no_metrics_save = 1 net.core.netdev_max_backlog = 5000 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_keepalive_time = 1800 #net.ipv4.tcp_keepalive_intvl = 30 #net.ipv4.tcp_keepalive_probes = 5 #net.ipv4.tcp_moderate_rcvbuf = 1 #sys.net.ipv4.route.flush = 1 #### IPv4 networking #### # settings for security # # Disable packet forwarding/redirects. net.ipv4.ip_forward = 0 net.ipv4.conf.all.send_redirects = 0 net.ipv4.conf.default.send_redirects = 0 net.ipv4.conf.all.accept_source_route = 0 net.ipv4.conf.all.accept_redirects = 0 net.ipv4.conf.all.secure_redirects = 0 # Number of times SYNACKs for passive TCP connection. net.ipv4.tcp_synack_retries = 2 # Prevent SYN flood attack. net.ipv4.tcp_syncookies = 1 # Protect Against TCP Time-Wait net.ipv4.tcp_rfc1337 = 1 # TCP Timestamps net.ipv4.tcp_timestamps = 0 # Ignore All Echo Requests net.ipv4.icmp_echo_ignore_all = 1 # Ignore Bogus ICMP Errors net.ipv4.icmp_ignore_bogus_error_responses = 1 # Prevent all ICMP_ECHO and TIMESTAMP requests. net.ipv4.icmp_echo_ignore_broadcasts = 1 # Prevent IP spoofing and DDoS attacks. # Enable source validation by reversed path. net.ipv4.conf.all.rp_filter = 1 net.ipv4.conf.default.rp_filter = 1 # Increase system IP port limits. #net.ipv4.ip_local_port_range = 2000 65000 # Log packets with impossible addresses to kernel net.ipv4.conf.all.log_martians = 1 net.ipv4.conf.default.accept_source_route = 0 net.ipv4.conf.default.accept_redirects = 0 net.ipv4.conf.default.secure_redirects = 0 |