Skip to content
Snippets Groups Projects
Commit 72389013 authored by Michael Loipführer's avatar Michael Loipführer
Browse files

add iptable rules, update ssh config

parent e8f617ce
No related branches found
No related tags found
No related merge requests found
# iptable v4 rules for lustmolch container {{name}}
*filter
-A INPUT -p tcp -m tcp --dport {{ssh_port}} 10.150.0.0/17 -j ACCEPT
-A INPUT -p tcp -m tcp --dport {{ssh_port}} 141.84.69.0/24 -j ACCEPT
COMMIT
# iptable v6 rules for lustmolch container {{name}}
*filter
-A INPUT -p tcp -m tcp --dport {{ssh_port}} 2001:4ca0:200::/48 -j ACCEPT
COMMIT
......@@ -29,8 +29,8 @@ Port {{ssh_port}}
# Authentication:
#LoginGraceTime 2m
PermitRootLogin prohibit-password
#StrictModes yes
PermitRootLogin without-password
StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
......@@ -53,7 +53,7 @@ PubkeyAuthentication yes
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
PasswordAuthentication no
#PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with
......
......@@ -13,7 +13,9 @@ cfg_template = namedtuple('cfg_template', ['source', 'path', 'filename'])
template_files_host = [
cfg_template('nginx', Path('/etc/nginx/sites-available'), '{name}'),
cfg_template('nspawn', Path('/etc/systemd/nspawn'), '{name}.nspawn')
cfg_template('nspawn', Path('/etc/systemd/nspawn'), '{name}.nspawn'),
cfg_template('iptables.v4', Path('/etc/iptables'), '{50-container-{name}.v4'),
cfg_template('iptables.v6', Path('/etc/iptables'), '{50-container-{name}.v6')
]
template_files_container = [
cfg_template('sshd_config', Path('/etc/ssh'), 'sshd_config')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment