-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create OpenNMS ferm IP tables rules and allow to divide policies for …
…several components like WebUI, Trapd, Syslogd. Lockdown all common management ports to localhost only.
- Loading branch information
Showing
8 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Firewall configuration | ||
# | ||
# Hardening OpenNMS and don't allow RMI 1099 port on IPv4 and IPv6 | ||
opennms.common.ferm: | ||
file.managed: | ||
- name: /etc/ferm.d/20-opennms-common.conf | ||
- source: salt://opennms/ferm.common.conf | ||
- makedirs: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# DO NOT CHANGE THIS FILE IT IS CONTROLLED BY SALTSTACK! | ||
# | ||
# IPv4 / IPv6 firewall | ||
# - RMI registry 1099 | ||
# - Apache Karaf admin console | ||
# - JMX monitoring | ||
# - Active MQ | ||
# | ||
domain ip | ||
table filter { | ||
chain INPUT { | ||
proto tcp dport (1099 8101 18980 61616) { | ||
saddr 127.0.0.1/32 ACCEPT; | ||
} | ||
} | ||
} | ||
|
||
domain ip6 | ||
table filter { | ||
chain INPUT { | ||
proto tcp dport (1099 8101 18980 61616) { | ||
saddr ::1/128 ACCEPT; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# DO NOT CHANGE THIS FILE IT IS CONTROLLED BY SALTSTACK! | ||
# | ||
# IPv4 / IPv6 firewall - Syslog daemon rule | ||
|
||
domain (ip ip6) | ||
table filter { | ||
chain INPUT { | ||
proto udp dport 10514 ACCEPT; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# DO NOT CHANGE THIS FILE IT IS CONTROLLED BY SALTSTACK! | ||
# | ||
# IPv4 / IPv6 firewall - SNMP Trap daemon rule | ||
|
||
domain (ip ip6) | ||
table filter { | ||
chain INPUT { | ||
proto udp dport 162 ACCEPT; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# DO NOT CHANGE THIS FILE IT IS CONTROLLED BY SALTSTACK! | ||
# | ||
# IPv4 / IPv6 firewall - Web application rule | ||
|
||
domain (ip ip6) | ||
table filter { | ||
chain INPUT { | ||
proto tcp dport 8980 { | ||
mod conntrack ctstate NEW | ||
ACCEPT; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Firewall configuration | ||
# | ||
|
||
# Allow OpenNMS to receive Syslog messages | ||
opennms.ferm.syslogd: | ||
file.managed: | ||
- name: /etc/ferm.d/20-opennms-syslogd.conf | ||
- source: salt://opennms/ferm.syslogd.conf | ||
- makedirs: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Firewall configuration | ||
# | ||
|
||
# Allow OpenNMS to receive SNMP Traps | ||
opennms.ferm.trapd: | ||
file.managed: | ||
- name: /etc/ferm.d/20-opennms-trapd.conf | ||
- source: salt://opennms/ferm.trapd.conf | ||
- makedirs: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Firewall configuration | ||
# | ||
|
||
# Allow access to the WebUI | ||
opennms.ferm.web: | ||
file.managed: | ||
- name: /etc/ferm.d/20-opennms-web.conf | ||
- source: salt://opennms/ferm.web.conf | ||
- makedirs: True |