Add fsol02.home.foo.sh
This commit is contained in:
parent
f73ca08805
commit
3ad51924eb
5 changed files with 118 additions and 0 deletions
55
roles/pf/files/pf.conf.gw_fsol
Normal file
55
roles/pf/files/pf.conf.gw_fsol
Normal file
|
@ -0,0 +1,55 @@
|
|||
# interfaces
|
||||
int_if = "vio0"
|
||||
ext_if = "vio1"
|
||||
dmz_if = "vio2"
|
||||
fsol_if = "tap0"
|
||||
|
||||
# networks
|
||||
int_net = "(" $int_if:network ")"
|
||||
ext_net = "(" $ext_if:network ")"
|
||||
dmz_net = "(" carp145:network ")"
|
||||
|
||||
# my addrss
|
||||
int_me = "(" $int_if:0 ")"
|
||||
ext_me = "(" $ext_if:0 ")"
|
||||
|
||||
# options
|
||||
set block-policy return
|
||||
set loginterface $int_if
|
||||
set skip on lo0
|
||||
|
||||
# assemble fragmented packets
|
||||
match in all scrub (no-df)
|
||||
|
||||
# allow icmp
|
||||
pass quick inet proto icmp
|
||||
pass quick inet6 proto icmp6
|
||||
|
||||
# antispoof at this point
|
||||
antispoof for lo0
|
||||
antispoof for vio0
|
||||
|
||||
# admin connection (internal)
|
||||
pass in quick on $int_if proto tcp from $int_net to self port ssh
|
||||
|
||||
# internal network
|
||||
block in quick from any to self
|
||||
pass out quick on $int_if from $int_me to $int_net
|
||||
|
||||
# dmz network
|
||||
pass in quick on $dmz_if inet from $dmz_net to any
|
||||
pass out quick on $dmz_if inet from any to $dmz_net
|
||||
|
||||
# allow myself to communicate dna network but don't use pfsync
|
||||
pass out quick on $ext_if from self to any
|
||||
|
||||
# fsol (router) network
|
||||
pass in quick on $fsol_if proto ospf from any to any
|
||||
pass out quick on $fsol_if proto ospf from self to any
|
||||
pass in quick on $fsol_if inet from any to $dmz_net
|
||||
pass out quick on $fsol_if inet from $dmz_net to any
|
||||
pass out quick on $fsol_if inet from self to any
|
||||
|
||||
# drop rest
|
||||
block in quick log all
|
||||
block out quick log all
|
Loading…
Add table
Add a link
Reference in a new issue