diff options
| author | Grigory Shipunov | 2023-01-30 23:46:21 +0100 |
|---|---|---|
| committer | Grigory Shipunov | 2023-01-30 23:46:21 +0100 |
| commit | 58c7b0ab241e7e3436199f7aba191df7570cfc62 (patch) | |
| tree | f0ca372036da29ad17c2e483a3d4d6a1ecf9daad /hosts/cirrus/wireguard-server.nix | |
| parent | b1823c1d2cf6c91dc0213e49b720814d1ac11767 (diff) | |
quality-of-life improvemets
Diffstat (limited to 'hosts/cirrus/wireguard-server.nix')
| -rw-r--r-- | hosts/cirrus/wireguard-server.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hosts/cirrus/wireguard-server.nix b/hosts/cirrus/wireguard-server.nix index a869294..5b17782 100644 --- a/hosts/cirrus/wireguard-server.nix +++ b/hosts/cirrus/wireguard-server.nix @@ -13,6 +13,7 @@ # port-forward ssh to the music machine extraCommands = '' iptables -t nat -I PREROUTING -p tcp --dport 2020 -j DNAT --to-destination 10.34.45.101:22 + iptables -t nat -A POSTROUTING -j MASQUERADE ''; extraStopCommands = '' iptables -t nat -D PREROUTING -p tcp --dport 2020 -j DNAT --to-destination 10.34.45.101:22 || true |
