quality-of-life improvemets

This commit is contained in:
Grigory Shipunov 2023-01-30 23:46:21 +01:00
parent b1823c1d2c
commit 58c7b0ab24
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
2 changed files with 5 additions and 0 deletions

View file

@ -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