I use Pf to avoid DDOS attack
The problem is that the homepage (online check) gets blocked
So i tried to pass the homepage, but that does not work
pf.conf:
How do i pass the homepage right/avoid the homepage getting blocked?
The problem is that the homepage (online check) gets blocked
So i tried to pass the homepage, but that does not work
pf.conf:
Code:
# my external card and internal card, as macros
ext_if="re0"
int_if="lo0"
icmp_types="echoreq"
# Ports
tcp_ports = "{ 9000, 9200, 9300, 9400, 2002, 18099, 29911, 29910}"
udp_ports = "{ 9000, 9200, 9300, 9400, 2002}"
homepage = "{192.168.0.102}"
# options
set block-policy return
set loginterface $ext_if
set skip on lo
# scrub
scrub in
# filter rules - catch-all block
block in
# let's kill the bad guys
table <abusive_hosts> persist
block quick from <abusive_hosts>
# let through all verified traffic
pass out keep state
# ssh blockage rule
pass in on $ext_if proto tcp to ($ext_if) port ssh flags S/SA keep state
# allow homepage tcp access to everything
pass in on $ext_if proto tcp to $homepage
# allow ports
pass in on $ext_if proto tcp to ($ext_if) port $tcp_ports flags S/SA keep state \
(max-src-conn 25, max-src-conn-rate 6/2, overload <abusive_hosts> flush global)
pass in on $ext_if proto udp to ($ext_if) port $udp_ports
pass in inet proto icmp all icmp-type $icmp_types keep state
pass quick on $int_if
How do i pass the homepage right/avoid the homepage getting blocked?