Realice algunas pruebas basicas y funciono, sin embargo ahora que modifico el archivo con las siguientes reglas:
Citar
table <private> const { 10/8, 172.16/12, 192.168/16 }
table <badhosts> persist file "/etc/badhosts"
table <friendhosts> persist file "/etc/friendhosts"
block on msk0 from <badhost> to any
pass on msk0 from { <private>,<friendhost> } to any
pass in on msk0 tcp from any to any port 22
block out on msk0 from any to any
table <badhosts> persist file "/etc/badhosts"
table <friendhosts> persist file "/etc/friendhosts"
block on msk0 from <badhost> to any
pass on msk0 from { <private>,<friendhost> } to any
pass in on msk0 tcp from any to any port 22
block out on msk0 from any to any
Explico brevemente lo que quiero:
block on msk0 from <badhost> to any
Bloqueo todo lo que venga o vaya hacia los host malos xD
pass on msk0 from { <private>,<friendhost> } to any
pasa todo desde/hacia mi red local, y hacia los host de los amigos etc.
pass in on msk0 tcp from any to any port 22
Permito todo lo que vaya dirijido al Ssh
block out on msk0 from any to any
Y por ultimo bloqueo todo lo que salga hacia cualquier destino.
Nada funciona. no se si desconfigure algo o omiti algun comando pero nada.
Agrego tambien el archivo rc.conf
Citar
keymap="spanish.iso"
moused_enable="YES"
inetd_enable="YES"
#Firewall PF BSD
pf_enable="YES" # Enable PF (load module if required)
pf_rules="/etc/pf.conf" # rules definition file for pf
pf_flags="" # additional flags for pfctl startup
pflog_enable="YES" # start pflogd(8)
pflog_logfile="/var/log/pflog" # where pflogd should store the logfile
pflog_flags="" # additional flags for pflogd startup
#Apache
ifconfig_msk0="DHCP"
moused_enable="YES"
inetd_enable="YES"
#Firewall PF BSD
pf_enable="YES" # Enable PF (load module if required)
pf_rules="/etc/pf.conf" # rules definition file for pf
pf_flags="" # additional flags for pfctl startup
pflog_enable="YES" # start pflogd(8)
pflog_logfile="/var/log/pflog" # where pflogd should store the logfile
pflog_flags="" # additional flags for pflogd startup
#Apache
ifconfig_msk0="DHCP"
Que podre estar omitiendo.?










Autor





En línea



