
Originally Posted by
HawaiiMan08
1. Monitor incoming traffic and see the logs.
/var/log/pflog is default binary log file. To monitor traffic in real time type
Code:
tcpdump -n -e -ttt -i pflog0
To view the log file:
Code:
tcpdump -n -e -ttt -r /var/log/pflog
However, you need to log traffic using log keyword, for example, log all udp 53, traffic you may enter something as follows:
Code:
pass in log (all) on em1 inet proto udp port 53 keep state

Originally Posted by
HawaiiMan08
2. Be able to connect additional servers to the Internet via Port 80.
One port can be used by one server at a time. So port 80 can be used by apache. What do you mean by connect additonal servers via port 80?

Originally Posted by
HawaiiMan08
3. To open and close new ports.
You need to use following rule to open port, 80 or 22
Code:
pass in on $ext_if proto tcp from any to any port 80 flags S/SA synproxy modulate state
# Open SSH port
pass in on $ext_if proto tcp from any to any port 22 flags S/SA synproxy modulate state

Originally Posted by
HawaiiMan08
4. To update OpenBSD.
15 - The OpenBSD packages and ports system

Originally Posted by
HawaiiMan08
5. To see incoming mail and re-direct alerts to admin or a email address.
You can see it via log file located in /var/log directory. Usually, it is /var/log/maillog.
Code:
tail -f /var/log/maillog
Try following resources for further information:
PF Firewall
- PF: The OpenBSD Packet Filter
- https://calomel.org/pf_config.html
- man pages pf, pf.conf, pfctl
- Book- The Book of PF - A No-Nonsense Guide to the OpenBSD Firewall
- Book - Absolute OpenBSD
- Building Firewalls with OpenBSD and PF
If you have more question, just reply back.
HTH