Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F27525616
D4099.id10729.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4099.id10729.diff
View Options
diff --git a/roles/router/init.sls b/roles/router/init.sls
--- a/roles/router/init.sls
+++ b/roles/router/init.sls
@@ -8,3 +8,4 @@
include:
- .carp
- .frrouting
+ - .pf
diff --git a/roles/router/pf/files/pf.conf b/roles/router/pf/files/pf.conf
new file mode 100644
--- /dev/null
+++ b/roles/router/pf/files/pf.conf
@@ -0,0 +1,28 @@
+# -------------------------------------------------------------
+# Network — pf configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/router/pf/files/pf.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+### Macros ###
+public_interface="vmx1"
+intranought_interface="vmx0"
+net_intranought="172.27.27.0/27"
+
+### Options
+set skip on lo
+
+### Normalization
+scrub in all fragment reassemble
+
+### Nat for Intranought
+nat on $public_interface from $net_intranought to any -> ($public_interface)
diff --git a/roles/router/init.sls b/roles/router/pf/init.sls
copy from roles/router/init.sls
copy to roles/router/pf/init.sls
--- a/roles/router/init.sls
+++ b/roles/router/pf/init.sls
@@ -1,10 +1,10 @@
# -------------------------------------------------------------
-# Salt — Router
+# Salt — Router — pf
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-include:
- - .carp
- - .frrouting
+/etc/pf.conf:
+ file.managed:
+ - source: salt://roles/router/pf/files/pf.conf
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 5, 23:26 (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3688950
Default Alt Text
D4099.id10729.diff (1 KB)
Attached To
Mode
D4099: Add PF firewall configuration management for routers
Attached
Detach File
Event Timeline
Log In to Comment