You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-24Lines changed: 26 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
PFRE is a packet filter rule editor for OpenBSD/pf. PFRE is expected to be used by beginners and system administrators alike.
4
4
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.
6
6
7
7
## Features
8
8
@@ -58,8 +58,8 @@ You can find a couple of screenshots on the [wiki](https://github.com/sonertari/
58
58
59
59
Here are the basic steps to obtain a working PFRE installation:
60
60
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.
63
63
- Copy the files in PFRE src folder to /var/www/htdocs/pfre/.
64
64
- Configure httpd.conf for PFRE.
65
65
- 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
74
74
75
75
Here are a couple of guidelines:
76
76
77
-
- You can download install69.iso available at OpenBSD mirrors.
77
+
- You can download install71.iso available at OpenBSD mirrors.
78
78
- 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.
80
80
- If you want to obtain a packet filtering firewall, make sure the VM has at least 2 ethernet interfaces:
81
81
+ The external interface may obtain its IP address over DHCP
82
82
+ 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
100
100
101
101
argon2-20190702.tgz
102
102
bzip2-1.0.8p0.tgz
103
+
capstone-4.0.2.tgz
103
104
femail-1.0p1.tgz
104
105
femail-chroot-1.0p3.tgz
105
106
gettext-runtime-0.21p1.tgz
106
107
libiconv-1.16p0.tgz
107
108
libsodium-1.0.18p1.tgz
108
-
libxml-2.9.12.tgz
109
+
libxml-2.9.13.tgz
109
110
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
115
116
116
117
Install PHP, php-pcntl, and php-cgi by running the following commands, which should install their dependencies as well:
117
118
@@ -127,18 +128,19 @@ Here is the expected output of that command:
127
128
128
129
argon2-20190702 C implementation of Argon2 - password hashing function
femail-chroot-1.0p3 simple SMTP client for chrooted web servers
132
134
gettext-runtime-0.21p1 GNU gettext runtime libraries and programs
133
135
libiconv-1.16p0 character set conversion library
134
136
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
136
138
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
142
144
143
145
### Install PFRE
144
146
@@ -216,19 +218,19 @@ However, you are advised to pick a better password than soner123.
216
218
Go to /usr/local/bin/ and create a link to php executable:
217
219
218
220
# cd /usr/local/bin
219
-
# ln -s php-8.0 php
221
+
# ln -s php-8.1 php
220
222
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:
222
224
223
225
error_log = syslog
224
226
225
227
Also, edit the /etc/php-fpm.conf file to write error messages to syslog:
226
228
227
229
error_log = syslog
228
230
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:
230
232
231
-
# cd /etc/php-8.0/
233
+
# cd /etc/php-8.1/
232
234
# touch pcntl.ini
233
235
234
236
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
267
269
268
270
Then add the following lines to it:
269
271
270
-
if [ -x /usr/local/sbin/php-fpm-8.0 ]; then
272
+
if [ -x /usr/local/sbin/php-fpm-8.1 ]; then
271
273
echo 'PHP CGI server'
272
-
/usr/local/sbin/php-fpm-8.0
274
+
/usr/local/sbin/php-fpm-8.1
273
275
fi
274
276
275
277
Create the rc.conf.local file under /etc/
@@ -294,7 +296,7 @@ And uncomment the line which enables forwarding of IPv4 packets:
294
296
295
297
Now you can either reboot the system or start the php cgi server and the web server manually using the following commands:
296
298
297
-
# /usr/local/sbin/php-fpm-8.0
299
+
# /usr/local/sbin/php-fpm-8.1
298
300
# /usr/sbin/httpd
299
301
300
302
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.
0 commit comments