tv: open ssh port by default

This commit is contained in:
tv 2016-02-01 17:40:25 +01:00
parent d6ded00d01
commit bb1dbae818
5 changed files with 5 additions and 7 deletions

View File

@ -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 "~ ^/~(.+?)(/.*)?\$" ''

View File

@ -17,7 +17,6 @@ with lib;
tv.iptables = {
enable = true;
input-internet-accept-new-tcp = [
"ssh"
"http"
"tinc"
"smtp"

View File

@ -129,7 +129,6 @@ with lib;
tv.iptables = {
enable = true;
input-internet-accept-new-tcp = [
"ssh"
"http"
"tinc"
"smtp"

View File

@ -127,7 +127,6 @@ with lib;
tv.iptables = {
enable = true;
input-internet-accept-new-tcp = [
"ssh"
"http"
"tinc"
"smtp"

View File

@ -162,6 +162,10 @@ with lib;
};
}
{
tv.iptables.enable = true;
}
{
services.openssh = {
enable = true;
@ -169,6 +173,7 @@ with lib;
{ type = "ed25519"; path = "/etc/ssh/ssh_host_ed25519_key"; }
];
};
tv.iptables.input-internet-accept-new-tcp = singleton "ssh";
}
{