Skip to content

Commit

Permalink
release: 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
oddmario committed Sep 19, 2024
1 parent de113fb commit d68150b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 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.13

### Removed
* Removed the handling of GRO, GSO and TSO. Tunnel Manager no longer touches them.

## v1.12

### Changed
Expand Down
2 changes: 1 addition & 1 deletion dynamicipupdater/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func updateIPHandler(c *gin.Context) {
utils.Cmd("wg set "+tunnel.TunnelInterfaceName+" listen-port "+utils.IToStr(tunnel.WGServerTunnelHostListenPort)+" peer "+tunnel.WGBackendServerPubKey+" allowed-ips "+tunnel.BackendServerTunnelIP+"/32 endpoint "+tunnel.BackendServerPublicIP+":"+utils.IToStr(tunnel.WGServerBackendServerListenPort)+" persistent-keepalive 25", true, true)
}
} else {
tunnel.Init(config.Config.Mode, config.Config.MainNetworkInterface, config.Config.DynamicIPUpdaterAPIListenPort, config.Config.DynamicIPUpdateInterval, config.Config.DynamicIPUpdateTimeout, config.Config.PingInterval, config.Config.PingTimeout, config.Config.ApplyKernelTuningTweaks)
tunnel.Init(config.Config.Mode, config.Config.MainNetworkInterface, config.Config.DynamicIPUpdaterAPIListenPort, config.Config.DynamicIPUpdateInterval, config.Config.DynamicIPUpdateTimeout, config.Config.PingInterval, config.Config.PingTimeout)
}

c.Status(http.StatusOK)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func main() {
}

for _, tun := range config.Config.Tunnels {
tun.Init(config.Config.Mode, config.Config.MainNetworkInterface, config.Config.DynamicIPUpdaterAPIListenPort, config.Config.DynamicIPUpdateInterval, config.Config.DynamicIPUpdateTimeout, config.Config.PingInterval, config.Config.PingTimeout, config.Config.ApplyKernelTuningTweaks)
tun.Init(config.Config.Mode, config.Config.MainNetworkInterface, config.Config.DynamicIPUpdaterAPIListenPort, config.Config.DynamicIPUpdateInterval, config.Config.DynamicIPUpdateTimeout, config.Config.PingInterval, config.Config.PingTimeout)
}

quitChannel := make(chan os.Signal, 1)
Expand Down
6 changes: 1 addition & 5 deletions tunnel/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (t *Tunnel) sendIPToTunHost(main_network_interface string, dynamic_ip_updat
}
}

func (t *Tunnel) Init(mode, main_network_interface string, dynamic_ip_updater_api_listen_port, dynamic_ip_update_attempt_interval, dynamic_ip_update_timeout, ping_interval, ping_timeout int, apply_tuning bool) bool {
func (t *Tunnel) Init(mode, main_network_interface string, dynamic_ip_updater_api_listen_port, dynamic_ip_update_attempt_interval, dynamic_ip_update_timeout, ping_interval, ping_timeout int) bool {
if t.IsInitialised {
logger.Warn("Failed to initialise the tunnel " + t.TunHostMainPublicIP + " <-> " + t.BackendServerPublicIP + ": The tunnel has already been initialised. Ignoring tunnel initialisation.")

Expand Down Expand Up @@ -256,10 +256,6 @@ 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 99999999", true, true)
utils.Cmd("ip link set "+t.TunnelInterfaceName+" txqueuelen 999999999", true, true)

if apply_tuning {
utils.Cmd("ethtool -K "+t.TunnelInterfaceName+" gro off gso off tso off", true, true)
}

t.IsInitialised = true

logger.Info("The tunnel " + t.TunHostMainPublicIP + " <-> " + t.BackendServerPublicIP + " has been setup successfully.")
Expand Down
1 change: 0 additions & 1 deletion utils/tuning.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func SysTuning(shouldEnableIPIPmod, shouldEnableGREmod, shouldEnableWGmod bool,
Cmd("modprobe tcp_cubic", true, true)
Cmd("tc qdisc replace dev "+mainNetworkInterface+" root fq_codel limit 99999999", true, true)
Cmd("ip link set "+mainNetworkInterface+" txqueuelen 999999999", true, true)
Cmd("ethtool -K "+mainNetworkInterface+" gro off gso off tso off", 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.12"
var Version string = "1.13"

var IsRouteAllTrafficThroughTunnelEnabled bool = false

0 comments on commit d68150b

Please sign in to comment.