Page MenuHomeDevCentral

D4099.diff
No OneTemporary

D4099.diff

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

Mime Type
text/plain
Expires
Tue, May 5, 22:38 (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3688950
Default Alt Text
D4099.diff (1 KB)

Event Timeline