Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions nebula/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -64,6 +65,10 @@ func newConfig() *config {
Retries: 20,
WaitRotation: 5,
},
Tunnels: configTunnels{
DropInactive: true,
InactivityTimeout: "10m",
},
Firewall: configFirewall{
Conntrack: configConntrack{
TcpTimeout: "120h",
Expand Down Expand Up @@ -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"`
Expand Down
Loading