Make dropbear configuration flexible, closes #13
This commit is contained in:
parent
f5668614bd
commit
024105c44c
3 changed files with 88 additions and 36 deletions
|
@ -11,17 +11,26 @@ in {
|
|||
networking.interfaces.eno1 = {
|
||||
ipv4.addresses = [{
|
||||
address = montalin-net.v4.ip;
|
||||
prefixLength = plessur-net.lan.v4.bitmask;
|
||||
prefixLength = plessur-net.dmz.v4.bitmask;
|
||||
}];
|
||||
};
|
||||
networking.interfaces.wlp1s0.useDHCP = true;
|
||||
|
||||
networking.defaultGateway = plessur-net.lan.v4.gateway;
|
||||
networking.nameservers = plessur-net.lan.v4.nameservers;
|
||||
networking.defaultGateway = plessur-net.dmz.v4.gateway;
|
||||
networking.nameservers = plessur-net.dmz.v4.nameservers;
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
|
||||
services.dropbear = {
|
||||
enable = true;
|
||||
interface = "eno1";
|
||||
ip = montalin-net.v4.ip;
|
||||
netmask = "255.255.255.0";
|
||||
gateway = plessur-net.dmz.v4.gateway;
|
||||
sshPort = 2222;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue