Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ldap-linuxlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Dustin Michael Frisch
ldap-linuxlab
Commits
5e66fbbc
Verified
Commit
5e66fbbc
authored
5 months ago
by
Dustin Michael Frisch
Browse files
Options
Downloads
Patches
Plain Diff
Enables SNMP agent
parent
ceb20ad3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
system.nix
+38
-3
38 additions, 3 deletions
system.nix
with
38 additions
and
3 deletions
system.nix
+
38
−
3
View file @
5e66fbbc
...
...
@@ -52,9 +52,44 @@
settings
.
PermitRootLogin
=
"without-password"
;
};
networking
.
firewall
.
allowedTCPPorts
=
[
22
];
services
.
snmpd
=
{
enable
=
true
;
package
=
pkgs
.
net-snmp
.
overrideAttrs
(
old
:
{
patches
=
old
.
patches
++
[
(
pkgs
.
fetchpatch
{
name
=
"modern-linux-compat.patch"
;
url
=
"https://patch-diff.githubusercontent.com/raw/net-snmp/net-snmp/pull/785.patch"
;
hash
=
"sha256-ZSF16RacrHddH50inHdmDYnu+fDS5eZd4PgK62s5C4g="
;
})
];
});
configText
=
''
rocommunity public 193.174.29.55/32
rocommunity public 127.0.0.1/8
rocommunity6 public ::1/64
com2sec notConfigUser default public
com2sec6 notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
access notConfigGroup "" any noauth exact systemview none none
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
dontLogTCPWrappersConnects yes
''
;
};
networking
.
firewall
=
{
allowedTCPPorts
=
[
22
# SSH
];
allowedUDPPorts
=
[
161
# SNMP
];
};
sops
.
secrets
.
"root/password"
=
{
sopsFile
=
./secrets/root.yaml
;
...
...
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