summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-01 17:40:25 +0100
committertv <tv@krebsco.de>2016-02-01 17:40:25 +0100
commit80928f3a135fc636080ea6217c403f71cebefd17 (patch)
treed6da5e772311b2f84dc7ee0d93d7c866e0959570
parent821a650575d6260334cf1beb5ec1de27634075d1 (diff)
tv: open ssh port by default
-rw-r--r--tv/1systems/cd.nix4
-rw-r--r--tv/1systems/nomic.nix1
-rw-r--r--tv/1systems/wu.nix1
-rw-r--r--tv/1systems/xu.nix1
-rw-r--r--tv/2configs/default.nix5
5 files changed, 5 insertions, 7 deletions
diff --git a/tv/1systems/cd.nix b/tv/1systems/cd.nix
index da44f50..6db78ca 100644
--- a/tv/1systems/cd.nix
+++ b/tv/1systems/cd.nix
@@ -41,7 +41,6 @@ with lib;
tv.iptables = {
enable = true;
input-internet-accept-new-tcp = [
- "ssh"
"tinc"
"smtp"
"xmpp-client"
@@ -58,10 +57,7 @@ with lib;
"cgit.cd.krebsco.de"
"cgit.cd.viljetic.de"
];
- }
- {
# TODO make public_html also available to cd, cd.retiolum (AKA default)
- tv.iptables.input-internet-accept-new-tcp = singleton "http";
krebs.nginx.servers.public_html = {
server-names = singleton "cd.viljetic.de";
locations = singleton (nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
diff --git a/tv/1systems/nomic.nix b/tv/1systems/nomic.nix
index b7e77e9..f176a5f 100644
--- a/tv/1systems/nomic.nix
+++ b/tv/1systems/nomic.nix
@@ -17,7 +17,6 @@ with lib;
tv.iptables = {
enable = true;
input-internet-accept-new-tcp = [
- "ssh"
"http"
"tinc"
"smtp"
diff --git a/tv/1systems/wu.nix b/tv/1systems/wu.nix
index f52bbc0..1670905 100644
--- a/tv/1systems/wu.nix
+++ b/tv/1systems/wu.nix
@@ -129,7 +129,6 @@ with lib;
tv.iptables = {
enable = true;
input-internet-accept-new-tcp = [
- "ssh"
"http"
"tinc"
"smtp"
diff --git a/tv/1systems/xu.nix b/tv/1systems/xu.nix
index 54e1686..c6f1a39 100644
--- a/tv/1systems/xu.nix
+++ b/tv/1systems/xu.nix
@@ -127,7 +127,6 @@ with lib;
tv.iptables = {
enable = true;
input-internet-accept-new-tcp = [
- "ssh"
"http"
"tinc"
"smtp"
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix
index 3100770..abe9d3d 100644
--- a/tv/2configs/default.nix
+++ b/tv/2configs/default.nix
@@ -163,12 +163,17 @@ with lib;
}
{
+ tv.iptables.enable = true;
+ }
+
+ {
services.openssh = {
enable = true;
hostKeys = [
{ type = "ed25519"; path = "/etc/ssh/ssh_host_ed25519_key"; }
];
};
+ tv.iptables.input-internet-accept-new-tcp = singleton "ssh";
}
{