Compare commits
No commits in common. "5c05e540cbb7f4fa4676fb5e9743d6535f7b0b1e" and "d1b5f85fb3288fde993668721dd3367b5931294e" have entirely different histories.
5c05e540cb
...
d1b5f85fb3
@ -48,10 +48,6 @@
|
|||||||
hostName = "loutreos"; # Define your hostname.
|
hostName = "loutreos"; # Define your hostname.
|
||||||
hostId = "7e66e347";
|
hostId = "7e66e347";
|
||||||
|
|
||||||
hosts = {
|
|
||||||
"127.0.0.1" = [ "gitea.nyanlout.re" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
|
|
||||||
@ -118,7 +114,6 @@
|
|||||||
|
|
||||||
# Redirect local network request from server external IP to internal IP
|
# Redirect local network request from server external IP to internal IP
|
||||||
# Make the server available even without internet access
|
# Make the server available even without internet access
|
||||||
iptables -t nat -D PREROUTING -s 10.30.0.0/16 -d 176.180.172.105 -j DNAT --to 10.30.0.1 || true
|
|
||||||
iptables -t nat -A PREROUTING -s 10.30.0.0/16 -d 176.180.172.105 -j DNAT --to 10.30.0.1
|
iptables -t nat -A PREROUTING -s 10.30.0.0/16 -d 176.180.172.105 -j DNAT --to 10.30.0.1
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@ -228,18 +223,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Options explanations
|
services.autossh.sessions = [ { extraArguments = "-N -R 0.0.0.0:2222:127.0.0.1:22 loutre@vps772619.ovh.net"; monitoringPort = 20000; name = "backup-ssh-reverse"; user = "autossh"; } ];
|
||||||
# -N disable shell
|
|
||||||
# -R 0.0.0.0:2222:127.0.0.1:22 redirect SSH port on VPS server on port 2222
|
|
||||||
# -R 127.0.0.1:2525:127.0.0.1:25 redirect SMTP port on VPS port 2525
|
|
||||||
services.autossh.sessions = [
|
|
||||||
{
|
|
||||||
extraArguments = "-N -R 0.0.0.0:2222:127.0.0.1:22 -R 127.0.0.1:2525:127.0.0.1:25 loutre@vps772619.ovh.net";
|
|
||||||
monitoringPort = 20000;
|
|
||||||
name = "backup-ssh-reverse";
|
|
||||||
user = "autossh";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
virtualisation.podman.enable = true;
|
virtualisation.podman.enable = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user