Topology: Basic test
This commit is contained in:
BIN
topology/images/ProtectliVaultFW2B.png
Normal file
BIN
topology/images/ProtectliVaultFW2B.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 331 KiB |
18
topology/images/TPLinkTLSG108E.jpg
Normal file
18
topology/images/TPLinkTLSG108E.jpg
Normal file
@ -0,0 +1,18 @@
|
||||
xdg-desktop-portal-termfilechooser saving files tutorial
|
||||
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!!! === WARNING! === !!!
|
||||
!!! The contents of *whatever* file you open last in !!!
|
||||
!!! your file manager will be *overwritten*! !!!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
Instructions:
|
||||
1) Move this file wherever you want.
|
||||
2) Rename the file if needed.
|
||||
3) Confirm your selection by opening the file.
|
||||
|
||||
Notes:
|
||||
1) This file is provided for your convenience. You
|
||||
could delete it and choose another file to overwrite.
|
||||
2) If you quit without opening a file, this file
|
||||
will be removed and the save operation aborted.
|
||||
39
topology/topology.nix
Normal file
39
topology/topology.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{config, ...}: let
|
||||
inherit (config.lib.topology) mkInternet mkRouter mkConnection mkSwitch;
|
||||
in {
|
||||
# Add a node for the internet
|
||||
nodes.internet = mkInternet {
|
||||
connections = mkConnection "router" "wan1";
|
||||
};
|
||||
|
||||
nodes.switch = mkSwitch "Switch" {
|
||||
info = "TP-Link TL-SG108E";
|
||||
image = ./images/TPLinkTLSG108E.jpg;
|
||||
interfaceGroups = [["eth0" "eth1" "eth2" "eth3" "eth4" "eth5" "eth6" "eth7"]];
|
||||
# connections.eth1 = mkConnection "host1" "lan";
|
||||
# connections.eth2 = [(mkConnection "host2" "wan") (mkConnection "host3" "eth0")];
|
||||
|
||||
# any other attributes specified here are directly forwarded to the node:
|
||||
interfaces.eth1.network = "home";
|
||||
};
|
||||
|
||||
# Add a router that we use to access the internet
|
||||
nodes.router = mkRouter "Firewall" {
|
||||
info = "Protectli Vault FW2B";
|
||||
image = ./images/ProtectliVaultFW2B.png;
|
||||
interfaceGroups = [
|
||||
["wan1"]
|
||||
["eth1"]
|
||||
];
|
||||
connections.eth1 = mkConnection "switch" "eth0";
|
||||
interfaces.eth1 = {
|
||||
addresses = ["192.168.86.5"];
|
||||
network = "home";
|
||||
};
|
||||
};
|
||||
|
||||
networks.home = {
|
||||
name = "Mafia Home";
|
||||
cidrv4 = "192.168.86.0/24";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user