Just got this up recently
With Gimp
And now with Dia
extra:
Code:
dhcpd.conf
shared-network LOCAL-NET {
option domain-name-servers 68.54.80.5, 68.54.80.6;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
range 192.168.1.10 192.168.1.20;
}
}
pf.conf
# define some macros to make writing the rule set easier
ext_if="rl0"
int_if="fxp0"
web_server = "192.168.1.11"
# Protocol settings
tcp_options = "flags S/SAFRUP keep state"
udp_options = "keep state"
icmp_options = "keep state"
# Common settings
set block-policy drop
# nat rule
nat on $ext_if from $int_if:network to any -> ($ext_if)
rdr on $ext_if proto tcp from any to any port 80 -> $web_server port 80
# default policy
block log all
# pass firewall rules
pass quick on lo0 all
dhcpd.conf
shared-network LOCAL-NET {
option domain-name-servers 68.54.80.5, 68.54.80.6;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
range 192.168.1.10 192.168.1.20;
}
}
pf.conf
# define some macros to make writing the rule set easier
ext_if="rl0"
int_if="fxp0"
web_server = "192.168.1.11"
# Protocol settings
tcp_options = "flags S/SAFRUP keep state"
udp_options = "keep state"
icmp_options = "keep state"
# Common settings
set block-policy drop
# nat rule
nat on $ext_if from $int_if:network to any -> ($ext_if)
rdr on $ext_if proto tcp from any to any port 80 -> $web_server port 80
# default policy
block log all
# pass firewall rules
pass quick on lo0 all