Compare commits

..

2 commits

Author SHA1 Message Date
Caleb Jasik
c59b006078
Merge ad9b331f32 into de2b3dccb7 2025-07-31 08:41:55 -04:00
John Maguire
de2b3dccb7
Enable tunnels.drop_inactive with 10m timeout (#287) 2025-07-29 16:29:02 -04:00

View file

@ -13,6 +13,7 @@ type config struct {
Logging configLogging `yaml:"logging"`
Stats configStats `yaml:"stats"`
Handshakes configHandshakes `yaml:"handshakes"`
Tunnels configTunnels `yaml:"tunnels"`
Firewall configFirewall `yaml:"firewall"`
Relay configRelay `yaml:"relay"`
}
@ -64,6 +65,10 @@ func newConfig() *config {
Retries: 20,
WaitRotation: 5,
},
Tunnels: configTunnels{
DropInactive: true,
InactivityTimeout: "10m",
},
Firewall: configFirewall{
Conntrack: configConntrack{
TcpTimeout: "120h",
@ -180,6 +185,11 @@ type configHandshakes struct {
WaitRotation int `yaml:"wait_rotation"`
}
type configTunnels struct {
DropInactive bool `yaml:"drop_inactive"`
InactivityTimeout string `yaml:"inactivity_timeout"`
}
type configFirewall struct {
Conntrack configConntrack `yaml:"conntrack"`
Outbound []configFirewallRule `yaml:"outbound"`