f-86: agent: dummy, DNAT et open par VPC, DHCP 6 et 42, watchdog #86
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
d4b83bdb17
commit
2e24a5da0a
16 changed files with 565 additions and 13 deletions
|
|
@ -30,7 +30,8 @@ func GenerateConfig(c Config) (string, error) {
|
|||
} else {
|
||||
fmt.Fprintf(&sb, "dhcp-option=3\n")
|
||||
}
|
||||
fmt.Fprintf(&sb, "dhcp-option=6,1.1.1.1,8.8.8.8\n")
|
||||
fmt.Fprintf(&sb, "dhcp-option=6,%s\n", c.InterfaceIP.String())
|
||||
fmt.Fprintf(&sb, "dhcp-option=42,%s\n", c.InterfaceIP.String())
|
||||
fmt.Fprintf(&sb, "dhcp-option=26,%d\n", c.interfaceMTU())
|
||||
fmt.Fprintf(&sb, "dhcp-hostsdir=%s\n", HostsDir(c.ConfDir, c.Name))
|
||||
fmt.Fprintf(&sb, "dhcp-optsdir=%s\n", OptsDir(c.ConfDir, c.Name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue