Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustmolch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stustanet
lustmolch
Commits
72389013
Commit
72389013
authored
5 years ago
by
Michael Loipführer
Browse files
Options
Downloads
Patches
Plain Diff
add iptable rules, update ssh config
parent
e8f617ce
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
container/iptables.v4
+8
-0
8 additions, 0 deletions
container/iptables.v4
container/iptables.v6
+7
-0
7 additions, 0 deletions
container/iptables.v6
container/sshd_config
+3
-3
3 additions, 3 deletions
container/sshd_config
lustmolch.py
+3
-1
3 additions, 1 deletion
lustmolch.py
with
21 additions
and
4 deletions
container/iptables.v4
0 → 100644
+
8
−
0
View file @
72389013
# 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
This diff is collapsed.
Click to expand it.
container/iptables.v6
0 → 100644
+
7
−
0
View file @
72389013
# iptable v6 rules for lustmolch container {{name}}
*filter
-A INPUT -p tcp -m tcp --dport {{ssh_port}} 2001:4ca0:200::/48 -j ACCEPT
COMMIT
This diff is collapsed.
Click to expand it.
container/sshd_config
+
3
−
3
View file @
72389013
...
...
@@ -29,8 +29,8 @@ Port {{ssh_port}}
# Authentication:
#LoginGraceTime 2m
PermitRootLogin
prohibi
t-password
#
StrictModes yes
PermitRootLogin
withou
t-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
...
...
This diff is collapsed.
Click to expand it.
lustmolch.py
+
3
−
1
View file @
72389013
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment