liminix/pkgs/routeros
Daniel Barlow 3df1ec76ff cleanup whitespace and commas
* [] 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
2024-06-30 17:16:28 +01:00
..
README.md add routeros to overlay 2023-02-08 18:13:35 +00:00
default.nix cleanup whitespace and commas 2024-06-30 17:16:28 +01:00
ros-exec-script.py add routeros to overlay 2023-02-08 18:13:35 +00:00
routeros.config add routeros to overlay 2023-02-08 18:13:35 +00:00

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.