liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8b1e871b8a266e5e605f39d7d18862a6b1dc2337
parent bd430f1abdea53e4aa2787c035340884ec50f6da
Author: Daniel Barlow <dan@telent.net>
Date:   Fri, 10 Oct 2025 23:42:56 +0100

bordervm forward 9428 (victorialogs) from eth1 to vm hypervisor

Diffstat:
Mbordervm-configuration.nix | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/bordervm-configuration.nix b/bordervm-configuration.nix @@ -200,6 +200,10 @@ in enable = true; internalInterfaces = [ "eth1" ]; externalInterface = "eth0"; + extraCommands = '' + iptables -t nat -A PREROUTING -p tcp --dport 9428 -j DNAT --to-destination 10.0.2.10:9428 + iptables -t nat -A POSTROUTING -p tcp -d 10.0.2.10 --dport 9428 -j SNAT --to-source 10.0.0.1 + ''; }; }; users.users.liminix = {