mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 14:02:53 +08:00
65 lines
1.5 KiB
Plaintext
65 lines
1.5 KiB
Plaintext
# This configuration file is customized by fox,
|
|
# Optimize sysctl parameters for local TS server.
|
|
|
|
kernel.panic = 20
|
|
kernel.panic_on_oops = 1
|
|
|
|
net.core.default_qdisc = cake
|
|
net.ipv4.tcp_congestion_control = bbr
|
|
|
|
net.ipv4.ip_forward = 1
|
|
|
|
net.ipv6.conf.all.forwarding = 1
|
|
net.ipv6.conf.default.forwarding = 1
|
|
|
|
# Other adjustable system parameters
|
|
|
|
net.core.netdev_budget = 600
|
|
net.core.netdev_budget_usecs = 20000
|
|
|
|
net.core.rps_sock_flow_entries = 32768
|
|
|
|
net.ipv4.conf.all.accept_redirects = 0
|
|
net.ipv4.conf.default.accept_redirects = 0
|
|
|
|
net.ipv4.conf.all.accept_source_route = 0
|
|
net.ipv4.conf.default.accept_source_route = 0
|
|
|
|
net.ipv4.conf.all.arp_ignore = 1
|
|
net.ipv4.conf.default.arp_ignore = 1
|
|
|
|
net.ipv4.conf.all.rp_filter = 2
|
|
net.ipv4.conf.default.rp_filter = 2
|
|
|
|
net.ipv4.conf.all.log_martians = 1
|
|
|
|
net.ipv4.igmp_max_memberships = 256
|
|
|
|
net.ipv4.route.error_burst = 500
|
|
net.ipv4.route.error_cost = 100
|
|
|
|
net.ipv4.route.redirect_load = 2
|
|
net.ipv4.route.redirect_silence = 2048
|
|
|
|
net.ipv4.tcp_challenge_ack_limit = 1000
|
|
net.ipv4.tcp_fin_timeout = 30
|
|
net.ipv4.tcp_keepalive_time = 120
|
|
net.ipv4.tcp_syncookies = 1
|
|
|
|
net.ipv6.conf.all.accept_ra = 0
|
|
net.ipv6.conf.default.accept_ra = 0
|
|
|
|
net.ipv6.conf.all.accept_redirects = 0
|
|
net.ipv6.conf.default.accept_redirects = 0
|
|
|
|
net.ipv6.conf.all.accept_source_route = 0
|
|
net.ipv6.conf.default.accept_source_route = 0
|
|
|
|
net.ipv6.conf.all.use_tempaddr = 0
|
|
net.ipv6.conf.default.use_tempaddr = 0
|
|
|
|
net.netfilter.nf_conntrack_acct = 1
|
|
net.netfilter.nf_conntrack_checksum = 0
|
|
net.netfilter.nf_conntrack_tcp_timeout_established = 7440
|
|
|