Change IP of Intuos and forward SSH to it

This commit is contained in:
Bun 2025-03-31 12:30:45 -04:00
parent 0da3e4a95f
commit d183ffb5a1
2 changed files with 2 additions and 1 deletions

View file

@ -13,7 +13,7 @@
hostName = "intuos"; hostName = "intuos";
wireless.enable = true; wireless.enable = true;
interfaces."wlp1s0".ipv4.addresses = [{ interfaces."wlp1s0".ipv4.addresses = [{
address = "10.2.0.102"; address = "10.2.0.101";
prefixLength = 8; prefixLength = 8;
}]; }];
defaultGateway = { defaultGateway = {

View file

@ -7,6 +7,7 @@
type nat hook prerouting priority dstnat; policy accept; type nat hook prerouting priority dstnat; policy accept;
tcp dport 2211 dnat ip to 10.2.0.100:22 comment "SSH to Tower" tcp dport 2211 dnat ip to 10.2.0.100:22 comment "SSH to Tower"
tcp dport 2222 dnat ip to 10.2.0.2:22 comment "SSH to Kitty" tcp dport 2222 dnat ip to 10.2.0.2:22 comment "SSH to Kitty"
tcp dport 2233 dnat ip to 10.2.0.101:22 comment "SSH to Intuos"
udp dport { 27005, 27015 } dnat ip to 10.2.0.100 comment "PC Hosted Games" udp dport { 27005, 27015 } dnat ip to 10.2.0.100 comment "PC Hosted Games"