23
samples/network.dcfg
Normal file
23
samples/network.dcfg
Normal file
@@ -0,0 +1,23 @@
|
||||
fn lib = {
|
||||
enable = true
|
||||
|
||||
interfaces = {
|
||||
eth0.ip = '192.168.0.10'
|
||||
eth0.gateway = '192.168.0.1'
|
||||
eth0.dns = [ '8.8.8.8' '1.1.1.1' ]
|
||||
|
||||
wlan0 = {
|
||||
ssid = "HomeWiFi"
|
||||
password = "super_secret"
|
||||
dhcp = on
|
||||
}
|
||||
}
|
||||
|
||||
firewall = {
|
||||
tcp = (lib.join
|
||||
[ 22 80 443 ]
|
||||
(lib.list_from_range 3000 3010)
|
||||
)
|
||||
udp = [ 53 123 ]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user