forked from dan/liminix
* [] is now [ ] * {} is now { } * commas in arglists go at end of line not beginning In short, I ran the whole thing through nixfmt-rfc-style but only accepted about 30% of its changes. I might grow accustomed to more of it over time |
||
---|---|---|
.. | ||
README.md | ||
default.nix | ||
ros-exec-script.py | ||
routeros.config |
README.md
ppp-server
To test a router, we need an upstream connection. This directory contains a derivation to download, start and configure a RouterOS "Cloud Hosted Router" instance in a Qemu VM. It is currently set up for automated tests only, and may require some manual frobbing to run interactively.
Note that you need to open some multicast ports if you're using the NixOS firewall (or probably, any other firewall). For iptables you can accomplish this by editing your configuration.nix or some module it calls:
networking.firewall.extraCommands = ''
ip46tables -A nixos-fw -m pkttype --pkt-type multicast -p udp --dport 1234:1236 -j nixos-fw-accept
'';
Provenance
The chr-7.x.img image is taken from https://mikrotik.com/download - look in the section titled "Cloud Hosted Router" for "Raw disk image". Note that this is proprietary software: please read the license information and make sure you're using it legally.