Skip to content

Commit 045a8de

Browse files
committed
Update to 7.1
Also update with the UTMFW changes
1 parent 9cb88a7 commit 045a8de

197 files changed

Lines changed: 980 additions & 541 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Doxyfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
# Doxyfile 1.9.1
1+
# Doxyfile 1.9.3
22

33
#---------------------------------------------------------------------------
44
# Project related configuration options
55
#---------------------------------------------------------------------------
66
DOXYFILE_ENCODING = UTF-8
77
PROJECT_NAME = "PF Rule Editor"
8-
PROJECT_NUMBER = 7.0
8+
PROJECT_NUMBER = 7.1
99
PROJECT_BRIEF =
1010
PROJECT_LOGO =
1111
OUTPUT_DIRECTORY = ./docs
1212
CREATE_SUBDIRS = NO
1313
ALLOW_UNICODE_NAMES = NO
1414
OUTPUT_LANGUAGE = English
15-
OUTPUT_TEXT_DIRECTION = None
1615
BRIEF_MEMBER_DESC = YES
1716
REPEAT_BRIEF = YES
1817
ABBREVIATE_BRIEF = "The $name class" \
@@ -82,6 +81,7 @@ INTERNAL_DOCS = NO
8281
CASE_SENSE_NAMES = YES
8382
HIDE_SCOPE_NAMES = YES
8483
HIDE_COMPOUND_REFERENCE= NO
84+
SHOW_HEADERFILE = YES
8585
SHOW_INCLUDE_FILES = YES
8686
SHOW_GROUPED_MEMB_INC = NO
8787
FORCE_LOCAL_INCLUDES = NO
@@ -111,6 +111,7 @@ QUIET = NO
111111
WARNINGS = YES
112112
WARN_IF_UNDOCUMENTED = YES
113113
WARN_IF_DOC_ERROR = YES
114+
WARN_IF_INCOMPLETE_DOC = YES
114115
WARN_NO_PARAMDOC = NO
115116
WARN_AS_ERROR = NO
116117
WARN_FORMAT = "$file:$line: $text"
@@ -176,6 +177,7 @@ HTML_DYNAMIC_SECTIONS = NO
176177
HTML_INDEX_NUM_ENTRIES = 100
177178
GENERATE_DOCSET = NO
178179
DOCSET_FEEDNAME = "Doxygen generated docs"
180+
DOCSET_FEEDURL =
179181
DOCSET_BUNDLE_ID = org.doxygen.Project
180182
DOCSET_PUBLISHER_ID = org.doxygen.Publisher
181183
DOCSET_PUBLISHER_NAME = Publisher
@@ -198,14 +200,17 @@ GENERATE_ECLIPSEHELP = NO
198200
ECLIPSE_DOC_ID = org.doxygen.Project
199201
DISABLE_INDEX = NO
200202
GENERATE_TREEVIEW = YES
203+
FULL_SIDEBAR = NO
201204
ENUM_VALUES_PER_LINE = 4
202205
TREEVIEW_WIDTH = 250
203206
EXT_LINKS_IN_WINDOW = NO
207+
OBFUSCATE_EMAILS = YES
204208
HTML_FORMULA_FORMAT = png
205209
FORMULA_FONTSIZE = 10
206210
FORMULA_TRANSPARENT = YES
207211
FORMULA_MACROFILE =
208212
USE_MATHJAX = NO
213+
MATHJAX_VERSION = MathJax_2
209214
MATHJAX_FORMAT = HTML-CSS
210215
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
211216
MATHJAX_EXTENSIONS =
@@ -236,7 +241,6 @@ PDF_HYPERLINKS = YES
236241
USE_PDFLATEX = YES
237242
LATEX_BATCHMODE = NO
238243
LATEX_HIDE_INDICES = NO
239-
LATEX_SOURCE_CODE = NO
240244
LATEX_BIB_STYLE = plain
241245
LATEX_TIMESTAMP = NO
242246
LATEX_EMOJI_DIRECTORY =
@@ -249,7 +253,6 @@ COMPACT_RTF = NO
249253
RTF_HYPERLINKS = NO
250254
RTF_STYLESHEET_FILE =
251255
RTF_EXTENSIONS_FILE =
252-
RTF_SOURCE_CODE = NO
253256
#---------------------------------------------------------------------------
254257
# Configuration options related to the man page output
255258
#---------------------------------------------------------------------------
@@ -270,7 +273,6 @@ XML_NS_MEMB_FILE_SCOPE = NO
270273
#---------------------------------------------------------------------------
271274
GENERATE_DOCBOOK = NO
272275
DOCBOOK_OUTPUT = docbook
273-
DOCBOOK_PROGRAMLISTING = NO
274276
#---------------------------------------------------------------------------
275277
# Configuration options for the AutoGen Definitions output
276278
#---------------------------------------------------------------------------
@@ -305,7 +307,6 @@ EXTERNAL_PAGES = YES
305307
#---------------------------------------------------------------------------
306308
# Configuration options related to the dot tool
307309
#---------------------------------------------------------------------------
308-
CLASS_DIAGRAMS = YES
309310
DIA_PATH =
310311
HIDE_UNDOC_RELATIONS = NO
311312
HAVE_DOT = YES
@@ -327,6 +328,7 @@ CALL_GRAPH = YES
327328
CALLER_GRAPH = YES
328329
GRAPHICAL_HIERARCHY = YES
329330
DIRECTORY_GRAPH = YES
331+
DIR_GRAPH_MAX_DEPTH = 1
330332
DOT_IMAGE_FORMAT = png
331333
INTERACTIVE_SVG = NO
332334
DOT_PATH = /usr/local/bin/

README.md

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
PFRE is a packet filter rule editor for OpenBSD/pf. PFRE is expected to be used by beginners and system administrators alike.
44

5-
The [UTMFW](https://github.com/sonertari/UTMFW) and [PFFW](https://github.com/sonertari/PFFW) projects use PFRE on their web administration interfaces. If you don't want to [install PFRE](https://github.com/sonertari/PFRE#how-to-install) yourself, you can download the installation iso file of [UTMFW](https://github.com/sonertari/UTMFW#download) or [PFFW](https://github.com/sonertari/PFFW#download) to test drive PFRE easily.
5+
The [UTMFW](https://github.com/sonertari/UTMFW) and [PFFW](https://github.com/sonertari/PFFW) projects use PFRE on their web administration interfaces. If you don't want to [install PFRE](https://github.com/sonertari/PFRE#how-to-install) yourself, you can download the installation files of [UTMFW](https://github.com/sonertari/UTMFW#download) or [PFFW](https://github.com/sonertari/PFFW#download) to test drive PFRE easily.
66

77
## Features
88

@@ -58,8 +58,8 @@ You can find a couple of screenshots on the [wiki](https://github.com/sonertari/
5858

5959
Here are the basic steps to obtain a working PFRE installation:
6060

61-
- Install OpenBSD 7.0, perhaps on a VM.
62-
- Install PHP 8.0.10, php-pcntl, and php-cgi.
61+
- Install OpenBSD 7.1, perhaps on a VM.
62+
- Install PHP 8.1.4, php-pcntl, and php-cgi.
6363
- Copy the files in PFRE src folder to /var/www/htdocs/pfre/.
6464
- Configure httpd.conf for PFRE.
6565
- Create admin and user users, and set their passwords.
@@ -74,9 +74,9 @@ The OpenBSD installation guide is at [faq4](http://www.openbsd.org/faq/faq4.html
7474

7575
Here are a couple of guidelines:
7676

77-
- You can download install69.iso available at OpenBSD mirrors.
77+
- You can download install71.iso available at OpenBSD mirrors.
7878
- It may be easier to install a PFRE test system on a VM of your choice, e.g. VMware or VirtualBox, rather than bare hardware.
79-
- 512MB RAM and 8GB HD should be more than enough.
79+
- 256MB RAM and 8GB HD should be enough.
8080
- If you want to obtain a packet filtering firewall, make sure the VM has at least 2 ethernet interfaces:
8181
+ The external interface may obtain its IP address over DHCP
8282
+ The internal interface should have a static IP address
@@ -100,18 +100,19 @@ Download the required packages from an OpenBSD mirror and copy them to $PKG\_PAT
100100

101101
argon2-20190702.tgz
102102
bzip2-1.0.8p0.tgz
103+
capstone-4.0.2.tgz
103104
femail-1.0p1.tgz
104105
femail-chroot-1.0p3.tgz
105106
gettext-runtime-0.21p1.tgz
106107
libiconv-1.16p0.tgz
107108
libsodium-1.0.18p1.tgz
108-
libxml-2.9.12.tgz
109+
libxml-2.9.13.tgz
109110
oniguruma-6.9.7.1.tgz
110-
pcre2-10.36.tgz
111-
php-8.0.10p0.tgz
112-
php-cgi-8.0.10p0.tgz
113-
php-pcntl-8.0.10p0.tgz
114-
xz-5.2.5.tgz
111+
pcre2-10.37.tgz
112+
php-8.1.4p1.tgz
113+
php-cgi-8.1.4.tgz
114+
php-pcntl-8.1.4.tgz
115+
xz-5.2.5p0.tgz
115116

116117
Install PHP, php-pcntl, and php-cgi by running the following commands, which should install their dependencies as well:
117118

@@ -127,18 +128,19 @@ Here is the expected output of that command:
127128

128129
argon2-20190702 C implementation of Argon2 - password hashing function
129130
bzip2-1.0.8p0 block-sorting file compressor, unencumbered
131+
capstone-4.0.2 multi-platform, multi-architecture disassembly framework
130132
femail-1.0p1 simple SMTP client
131133
femail-chroot-1.0p3 simple SMTP client for chrooted web servers
132134
gettext-runtime-0.21p1 GNU gettext runtime libraries and programs
133135
libiconv-1.16p0 character set conversion library
134136
libsodium-1.0.18p1 library for network communications and cryptography
135-
libxml-2.9.12 XML parsing library
137+
libxml-2.9.13 XML parsing library
136138
oniguruma-6.9.7.1 regular expressions library
137-
pcre2-10.36 perl-compatible regular expression library, version 2
138-
php-8.0.10p0 server-side HTML-embedded scripting language
139-
php-cgi-8.0.10p0 php CGI binary
140-
php-pcntl-8.0.10p0 PCNTL extensions for php
141-
xz-5.2.5 LZMA compression and decompression tools
139+
pcre2-10.37 perl-compatible regular expression library, version 2
140+
php-8.1.4p1 server-side HTML-embedded scripting language
141+
php-cgi-8.1.4 php CGI binary
142+
php-pcntl-8.1.4 PCNTL extensions for php
143+
xz-5.2.5p0 LZMA compression and decompression tools
142144

143145
### Install PFRE
144146

@@ -216,19 +218,19 @@ However, you are advised to pick a better password than soner123.
216218
Go to /usr/local/bin/ and create a link to php executable:
217219

218220
# cd /usr/local/bin
219-
# ln -s php-8.0 php
221+
# ln -s php-8.1 php
220222

221-
Edit the /etc/php-8.0.ini file to write error messages to syslog, otherwise they may disturb pfctl test reports:
223+
Edit the /etc/php-8.1.ini file to write error messages to syslog, otherwise they may disturb pfctl test reports:
222224

223225
error_log = syslog
224226

225227
Also, edit the /etc/php-fpm.conf file to write error messages to syslog:
226228

227229
error_log = syslog
228230

229-
To enable pcntl, go to /etc/php-8.0/ and create the pcntl.ini file:
231+
To enable pcntl, go to /etc/php-8.1/ and create the pcntl.ini file:
230232

231-
# cd /etc/php-8.0/
233+
# cd /etc/php-8.1/
232234
# touch pcntl.ini
233235

234236
And add the following line to pcntl.ini:
@@ -267,9 +269,9 @@ If you want the web server to be started automatically after a reboot, first cop
267269

268270
Then add the following lines to it:
269271

270-
if [ -x /usr/local/sbin/php-fpm-8.0 ]; then
272+
if [ -x /usr/local/sbin/php-fpm-8.1 ]; then
271273
echo 'PHP CGI server'
272-
/usr/local/sbin/php-fpm-8.0
274+
/usr/local/sbin/php-fpm-8.1
273275
fi
274276

275277
Create the rc.conf.local file under /etc/
@@ -294,7 +296,7 @@ And uncomment the line which enables forwarding of IPv4 packets:
294296

295297
Now you can either reboot the system or start the php cgi server and the web server manually using the following commands:
296298

297-
# /usr/local/sbin/php-fpm-8.0
299+
# /usr/local/sbin/php-fpm-8.1
298300
# /usr/sbin/httpd
299301

300302
Finally, if you point your web browser to the IP address of PFRE, you should see the login page. And you should be able to log in by entering admin:soner123 as user and password.

src/Controller/ctlr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33
/*
4-
* Copyright (C) 2004-2021 Soner Tari
4+
* Copyright (C) 2004-2022 Soner Tari
55
*
66
* This file is part of UTMFW.
77
*

src/Controller/lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright (C) 2004-2021 Soner Tari
3+
* Copyright (C) 2004-2022 Soner Tari
44
*
55
* This file is part of UTMFW.
66
*

src/Controller/sh.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33
/*
4-
* Copyright (C) 2004-2021 Soner Tari
4+
* Copyright (C) 2004-2022 Soner Tari
55
*
66
* This file is part of UTMFW.
77
*
@@ -90,7 +90,7 @@
9090
$cwd= dirname(__FILE__);
9191

9292
// Run the ctlr using doas and passing -n for no arg validation, as we have already done that above
93-
exec("/usr/bin/doas $cwd/ctlr.php -n '$args' 2>&1", $encoded, $retval);
93+
exec("/usr/bin/doas $cwd/ctlr.php -n ".escapeshellarg($args)." 2>&1", $encoded, $retval);
9494
// There must be only one element in $encoded array, but do not miss the others if any
9595
$encoded= implode(' ', $encoded);
9696
echo $encoded;

src/Model/include.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright (C) 2004-2021 Soner Tari
3+
* Copyright (C) 2004-2022 Soner Tari
44
*
55
* This file is part of UTMFW.
66
*

src/Model/lib/AfTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright (C) 2004-2021 Soner Tari
3+
* Copyright (C) 2004-2022 Soner Tari
44
*
55
* This file is part of PFRE.
66
*

src/Model/lib/Anchor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright (C) 2004-2021 Soner Tari
3+
* Copyright (C) 2004-2022 Soner Tari
44
*
55
* This file is part of PFRE.
66
*

src/Model/lib/Antispoof.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright (C) 2004-2021 Soner Tari
3+
* Copyright (C) 2004-2022 Soner Tari
44
*
55
* This file is part of PFRE.
66
*

src/Model/lib/BinatTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright (C) 2004-2021 Soner Tari
3+
* Copyright (C) 2004-2022 Soner Tari
44
*
55
* This file is part of PFRE.
66
*

0 commit comments

Comments
 (0)