Skip to content

Commit

Permalink
release: 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
oddmario committed Sep 23, 2024
1 parent aa6f090 commit be0f29d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v1.15

### Changed
* Updated kernel tuning parameters

## v1.14

## v1.13
Expand Down
4 changes: 2 additions & 2 deletions tunnel/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ func (t *Tunnel) Init(mode, main_network_interface string, dynamic_ip_updater_ap
}
}

utils.Cmd("tc qdisc replace dev "+t.TunnelInterfaceName+" root fq_codel limit 999999", true, true)
utils.Cmd("ip link set "+t.TunnelInterfaceName+" txqueuelen 999999", true, true)
utils.Cmd("tc qdisc replace dev "+t.TunnelInterfaceName+" root fq limit 99999 flow_limit 99999", true, true)
utils.Cmd("ip link set "+t.TunnelInterfaceName+" txqueuelen 99999", true, true)

t.IsInitialised = true

Expand Down
15 changes: 7 additions & 8 deletions utils/tuning.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,23 @@ func SysTuning(shouldEnableIPIPmod, shouldEnableGREmod, shouldEnableWGmod bool,
Cmd("sysctl -w fs.aio-max-nr=2097152", true, true)
Cmd("sysctl -w net.ipv4.tcp_syncookies=1", true, true)
Cmd("sysctl -w net.core.somaxconn=65535", true, true)
Cmd("sysctl -w net.ipv4.tcp_max_syn_backlog=4096", true, true)
Cmd("sysctl -w net.core.netdev_max_backlog=999999", true, true)
Cmd("sysctl -w net.core.dev_weight=128", true, true)
Cmd("sysctl -w net.ipv4.tcp_max_syn_backlog=65535", true, true)
Cmd("sysctl -w net.core.netdev_max_backlog=99999", true, true)
Cmd("sysctl -w net.ipv4.ip_local_port_range=\"16384 65535\"", true, true)
Cmd("sysctl -w net.nf_conntrack_max=1000000", true, true)
Cmd("sysctl -w net.netfilter.nf_conntrack_max=1000000", true, true)
Cmd("sysctl -w net.ipv4.tcp_max_tw_buckets=1440000", true, true)
Cmd("sysctl -w net.ipv4.tcp_congestion_control=cubic", true, true)
Cmd("sysctl -w net.core.default_qdisc=fq_codel", true, true)
Cmd("sysctl -w net.ipv4.tcp_congestion_control=bbr", true, true)
Cmd("sysctl -w net.core.default_qdisc=fq", true, true)

Cmd("sysctl -w net.ipv4.tcp_mtu_probing=1", true, true)

Cmd("sysctl -w net.ipv4.route.flush=1", true, true)
Cmd("sysctl -w net.ipv6.route.flush=1", true, true)

Cmd("modprobe tcp_cubic", true, true)
Cmd("tc qdisc replace dev "+mainNetworkInterface+" root fq_codel limit 999999", true, true)
Cmd("ip link set "+mainNetworkInterface+" txqueuelen 999999", true, true)
Cmd("modprobe tcp_bbr", true, true)
Cmd("tc qdisc replace dev "+mainNetworkInterface+" root fq limit 99999 flow_limit 99999", true, true)
Cmd("ip link set "+mainNetworkInterface+" txqueuelen 99999", true, true)
}

Cmd("iptables-nft -F", true, true)
Expand Down
2 changes: 1 addition & 1 deletion vars/vars.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package vars

var ConfigFilePath string = ""
var Version string = "1.14"
var Version string = "1.15"

var IsRouteAllTrafficThroughTunnelEnabled bool = false

0 comments on commit be0f29d

Please sign in to comment.