|
|
|
@ -2,6 +2,10 @@ package daemon |
|
|
|
|
|
|
|
|
|
import "strconv" |
|
|
|
|
|
|
|
|
|
type ConfigTun struct { |
|
|
|
|
Device string `yaml:"device"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type ConfigFirewall struct { |
|
|
|
|
Conntrack ConfigConntrack `yaml:"conntrack"` |
|
|
|
|
Outbound []ConfigFirewallRule `yaml:"outbound"` |
|
|
|
@ -50,6 +54,7 @@ type Config struct { |
|
|
|
|
VPN struct { |
|
|
|
|
PublicAddr string `yaml:"public_addr"` |
|
|
|
|
Firewall ConfigFirewall `yaml:"firewall"` |
|
|
|
|
Tun ConfigTun `yaml:"tun"` |
|
|
|
|
} `yaml:"vpn"` |
|
|
|
|
Storage struct { |
|
|
|
|
Allocations []ConfigStorageAllocation |
|
|
|
|