!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

914 Members
Declaratively manage your switching, routing, wireless, tunneling and more.274 Servers

Load older messages


SenderMessageTime
16 Aug 2021
@eyjhb:eyjhb.dkeyJhbIe. so that I could access the internet, and then went on from there :)20:55:43
@hpfr:matrix.orghpfr * if you mean features, I set up a Wireguard VPN to access my LAN from away and a DNS server with some overrides for homelab services. In the future I want to try network wide ad blocking and VLAN's for IoT20:56:51
@eyjhb:eyjhb.dkeyJhb But I can't even give you a good base config to use hpfr , I think mine is too specific now... :/ 21:03:16
@hpfr:matrix.orghpfreven if you had one, I'm not sure I'd want it. there are others available anyway. my main concern is I want to have enough knowledge not to shoot myself in the foot and either accidentally make my network unusable (obviously a serious issue) for some period of time while I struggle to troubleshoot due to lack of knowledge, or worse, make some security blunder21:05:17
@hpfr:matrix.orghpfrso I'm looking for Linux networking resources that are somewhere between "blindly copying commands from the internet" and "reading a networking textbook"21:06:12
@schnecfk:ruhr-uni-bochum.deCRTifiedDepending on what level of knowledge you're looking for a textbook might be your best bet to be honest21:11:12
@schnecfk:ruhr-uni-bochum.deCRTifiedOr just start with a toy setup with multiple virtual machines? That way, you can test stuff and build your config as desired (this is IMHO one of the biggest advantages of nix - you can test more complex setups like this, too)21:13:58
@hpfr:matrix.orghpfroof, ok. got any book recommendations21:14:50
@hpfr:matrix.orghpfras for the VM's, how does nix make things easier here?21:15:01
@schnecfk:ruhr-uni-bochum.deCRTifiedThe "default book" for most universities in my country is either "Computer Networking: A Top-Down Approach" by Kurose/Ross or "Computer Networks" by Tannenbaum21:16:19
@schnecfk:ruhr-uni-bochum.deCRTifiedThe former has a - well - top down approach, while the second one is "bottom-up" (with respect to the OSI layers) 21:16:59
@schnecfk:ruhr-uni-bochum.deCRTified * The former has a - well - top down approach, while the second one is "bottom-up" (with respect to the OSI layers) (I personally did only work with the first one)21:17:24
@schnecfk:ruhr-uni-bochum.deCRTified
In reply to @hpfr:matrix.org
as for the VM's, how does nix make things easier here?
You can use e.g. nixops to deploy to libvirtd or virtualbox and orchestrate multiple machines that way. I'm currently writing a configuration for a HPC cluster and have one "master node" and five identical slave nodes that are all created by nixops
21:18:40
@schnecfk:ruhr-uni-bochum.deCRTified
In reply to @hpfr:matrix.org
as for the VM's, how does nix make things easier here?
* You can use e.g. nixops to deploy to libvirtd or virtualbox and orchestrate multiple machines that way. I'm currently writing a configuration for a HPC cluster and have one "master node" (where the slurm administration, LDAP and NFS server are running) and five identical "slave nodes" that are all created by nixops
21:19:14
@hpfr:matrix.orghpfroh, yeah21:19:11
@hpfr:matrix.orghpfrok, thanks21:19:23
@schnecfk:ruhr-uni-bochum.deCRTifiedAnd as soon as you're happy, you "only" need to switch the deployment target :)21:19:39
@hpfr:matrix.orghpfrwhy the scare quotes 😅21:20:22
@hpfr:matrix.orghpfrthat sounds accurate21:20:34
@schnecfk:ruhr-uni-bochum.deCRTifiedWell, VMs don't need a hardware-configuration - I'm not sure whether it will work completely out of the box 😅21:21:07
@hpfr:matrix.orghpfroh, right21:21:47
@schnecfk:ruhr-uni-bochum.deCRTifiedAnd I don't have enough time right now to test it on the real hardware, as there's a somewhat urgent deadline coming 🤐21:22:43
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneIs it possible for anyone to tell me how to port forward?23:15:28
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI'm trying to provide someone access to a libvirt vm that is using the default nat interface. This would be great, since then the person I'm giving access to this VM wouldn't be able to snoop around my network.23:16:03
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI was hoping I could do it entirely in the libvirt xml config, but can someone tell me how to set it up in Nix code, since I don't want to manually be playing with iptables!23:16:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneSo I want to port forward: 192.168.3.4:2222 -> 192.168.122.x:222223:19:32
@schnecfk:ruhr-uni-bochum.deCRTified
In reply to @matthewcroughan:defenestrate.it
So I want to port forward: 192.168.3.4:2222 -> 192.168.122.x:2222
Probably networking.nat.forwardPorts?
23:25:12
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneis that the only option I need to set?23:25:20
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * is that the only option I need to set and use?23:25:22
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone what about .enable .internalIPs and externalInterface? 23:25:38

Show newer messages


Back to Room ListRoom Version: 6