We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2361d0a commit 23f6f97Copy full SHA for 23f6f97
CHANGELOG.md
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
## [Unreleased]
8
### Fixed
9
- init: make pf.conf more robust
10
+- vnet-start: make pf start more robust, in case pf as service is not up
11
12
## [0.6.0] 2019-06-23
13
### Added
share/pot/vnet-start.sh
@@ -73,6 +73,12 @@ pot-vnet-start()
73
74
# load pf module
75
kldload -n pf
76
+ # check anchors
77
+ if [ -z "$( pfctl -s Anchors | grep -F '^[ \t]*pot-nat$' )" ] ||
78
+ [ -z "$( pfctl -s Anchors | grep -F '^[ \t]*pot-rdr$' )" ]; then
79
+ _debug "Pot anchors are missing - load pf.conf"
80
+ pfctl -f pf.conf
81
+ fi
82
_nat_rules="/tmp/pot_pf_nat_rules"
83
if [ -w "$_nat_rules" ]; then
84
rm -f "$_nat_rules"
0 commit comments