Hi,
I am trying to follow this guide: https://www.vultr.com/docs/building-your-own-mail-server-with-freebsd-11
Unfortunately when copying the
Here are the concerned lines:
/usr/local/etc/pf.conf:27
/usr/local/etc/pf.conf:29
/usr/local/etc/pf.conf:35
/usr/local/etc/pf.conf:60
My VPS is running FreeBSD 12.2-RELEASE.
I have little to no knowledge in firewalls, what did I do wrong?
I am trying to follow this guide: https://www.vultr.com/docs/building-your-own-mail-server-with-freebsd-11
Unfortunately when copying the
pf
config and starting the daemon (or reloading the config with pfctl -f /usr/local/etc/pf.conf
) I get this output:
Code:
/usr/local/etc/pf.conf:27: syntax error
/usr/local/etc/pf.conf:29: syntax error
/usr/local/etc/pf.conf:35: Rules must be in order: options, normalization, queueing, translation, filtering
/usr/local/etc/pf.conf:60: port only applies to tcp/udp
/usr/local/etc/pf.conf:60: skipping rule due to errors
/usr/local/etc/pf.conf:60: rule expands to no valid combination
pfctl: Syntax error in config file: pf rules not loaded
Here are the concerned lines:
/usr/local/etc/pf.conf:27
Code:
pass quick log on $ext_if inet proto tcp from <spamd-allow> to $ext_if port smtp \
-> 127.0.0.1 port 25
/usr/local/etc/pf.conf:29
Code:
rdr pass quick log on $ext_if inet proto tcp from <gmail> to $ext_if port smtp \
-> 127.0.0.1 port 25
/usr/local/etc/pf.conf:35
Code:
rdr pass log on $ext_if inet proto tcp from {!<spamd-allow> <spamd>} to $ext_if port smtp \
-> 127.0.0.1 port 8025
/usr/local/etc/pf.conf:60
Code:
pass quick on $ext_if from any to any port http
My VPS is running FreeBSD 12.2-RELEASE.
I have little to no knowledge in firewalls, what did I do wrong?