1
0
liminix/pkgs/routeros
Daniel Barlow 7e2b0068e6 nixfmt-rfc-style
There is nothing in this commit except for the changes made by
nix-shell -p nixfmt-rfc-style --run "nixfmt ."

If this has mucked up your open branches then sorry about that. You
can probably nixfmt them to match before merging
2025-02-10 21:55:08 +00:00
..
default.nix nixfmt-rfc-style 2025-02-10 21:55:08 +00:00
README.md add routeros to overlay 2023-02-08 18:13:35 +00: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

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.