******************************************************************
#
#Contoh isi file Konfigurasi pf.conf pada FreeBSD
#
******************************************************************
#
#Contoh isi file Konfigurasi pf.conf pada FreeBSD
#
******************************************************************
nah ini ada contoh isi file konfigrasi pf.conf yag pernah aku coba ni
moga ada manfaatya, keterangan lebih lanjut :
http://indofreebsd.or.id/
http://www.freebsd.org/
moga ada manfaatya, keterangan lebih lanjut :
http://indofreebsd.or.id/
http://www.freebsd.org/
###################################################################
## == deklarasi interface ==
ext_if=”dc0″
int_if=”fxp0″
amikom =”{202.91.9.7, 202.91.9.8}”
table { 202.158.66.190, 203.190.241.41, 203.190.241.43, \
203.190.241.166, 202.158.66.20, 202.158.66.86, \
202.190.241.94 }
## == deklarasi interface ==
ext_if=”dc0″
int_if=”fxp0″
amikom =”{202.91.9.7, 202.91.9.8}”
table
203.190.241.166, 202.158.66.20, 202.158.66.86, \
202.190.241.94 }
#block in on fxp0 from { } to any
#pass in on fxp0 from { } to any
## === Normalisasi===
#scrub in all
#pass in on fxp0 from {
## === Normalisasi===
#scrub in all
##== NAT ==
nat on $ext_if from 192.168.10.0/24 to any -> 202.91.11.228
nat on $ext_if from 192.168.10.0/24 to any -> 202.91.11.228
##== transparent ===proxy ==
#rdr on $int_if proto {tcp,udp} from any to any port www -> $int_if port 3128
#rdr on $int_if proto tcp from any to any port ssh -> 202.91.8.245 port 22
##=== membolehkan akses====
pass in all
pass out all
#rdr on $int_if proto {tcp,udp} from any to any port www -> $int_if port 3128
#rdr on $int_if proto tcp from any to any port ssh -> 202.91.8.245 port 22
##=== membolehkan akses====
pass in all
pass out all
##== Blocking situs===
block in on $int_if proto tcp from any to $int_if port ftp
block in on $int_if proto {tcp, udp} from 192.168.10.0/24 to
block in on $int_if proto {tcp, udp, icmp} from 192.168.10.0/24 to $amikom
block in on $int_if proto tcp from any to $int_if port ftp
block in on $int_if proto {tcp, udp} from 192.168.10.0/24 to
block in on $int_if proto {tcp, udp, icmp} from 192.168.10.0/24 to $amikom
######################################################################

0 comments:
Post a Comment