liminix-fork/tests/support/ppp-server
Daniel Barlow 16a923f58f convert routeros pppoe service to a derivation
and make it configure itself automatically instead of starting
out blank
2023-02-05 17:35:41 +00:00
..
default.nix convert routeros pppoe service to a derivation 2023-02-05 17:35:41 +00:00
README.md convert routeros pppoe service to a derivation 2023-02-05 17:35:41 +00:00
ros-exec-script.py convert routeros pppoe service to a derivation 2023-02-05 17:35:41 +00:00
routeros.config convert routeros pppoe service to a derivation 2023-02-05 17:35:41 +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.