Harid Web Id

Free Software, Antivirus, AntiMalware, Driver

 
 
 
 

Contoh konfigurasi packet filter (pf) di Freebsd

Cetak PDF

Untuk konfigurasi Pfctl di FreeBSD secara sederhana sudah disediakan. File-file contoh tersebut diletakan di direktori example >> /usr/share/example/pf/. contoh-contoh file tersebut berisi contoh konfigurasi untuk masing-masing jenis kebutuhan standar minimal untuk pengaturan akses jaringan komputer dengan server freebsd menggunakan packet filter (pf).

ll /usr/share/examples/pf/
total 24
-r--r--r--    1 root     wheel        1363 Jan 12 14:40 ackpri
-r--r--r--    1 root     wheel        1201 Jan 12 14:40 faq-example1
-r--r--r--    1 root     wheel        3255 Jan 12 14:40 faq-example2
-r--r--r--    1 root     wheel        4691 Jan 12 14:40 faq-example3
-r--r--r--    1 root     wheel         985 Jan 12 14:40 queue1
-r--r--r--    1 root     wheel        1206 Jan 12 14:40 queue2
-r--r--r--    1 root     wheel         593 Jan 12 14:40 queue3
-r--r--r--    1 root     wheel         980 Jan 12 14:40 queue4
-r--r--r--    1 root     wheel         338 Jan 12 14:40 spamd

Dengan contoh konfigurasi minimal ini, maka koneksi ke jaringan sudah dapat berjalan.
tinggal terserah kita contoh konfigurasi yang mana akan kita gunakan.
Direktori example ( /usr/share/example ) sendiri menyediakan beberapa contoh konfigurasi lainnya selain packet filter (pf), seperti packet filter kita hanya perlu memodifikasi sedikit sesuai dengan konfigurasi sistem kita maka file-file contoh tersebut dapat kita gunakan di sistem operasi FreeBSD kita.

 ll /usr/share/examples/
total 76
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 BSD_daemon
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 FreeBSD_version
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 IPv6
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 atm
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 bc
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 bootforth
drwxr-xr-x    3 root     wheel         512 Apr 19 07:05 cvs
drwxr-xr-x    2 root     wheel         512 Apr 21 05:16 cvsup
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 dialog
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 diskless
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 drivers
drwxr-xr-x    3 root     wheel        1536 Apr 19 07:05 etc
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 find_interface
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 ibcs2
drwxr-xr-x    2 root     wheel        1024 Apr 19 07:05 ipfilter
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 ipfw
drwxr-xr-x    5 root     wheel         512 Apr 19 07:05 isdn
drwxr-xr-x    5 root     wheel         512 Apr 19 07:05 kld
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 libdialog
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 libvgl
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 mdoc
drwxr-xr-x    3 root     wheel         512 Apr 19 07:05 netgraph
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 nwclient
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 perfmon
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 pf
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 portal
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 ppi
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 ppp
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 pppd
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 printing
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 scsi_target
drwxr-xr-x    7 root     wheel         512 Apr 19 07:05 ses
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 slattach
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 sliplogin
drwxr-xr-x    3 root     wheel         512 Apr 19 07:05 smbfs
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 startslip
drwxr-xr-x    5 root     wheel         512 Apr 19 07:05 sunrpc
drwxr-xr-x    2 root     wheel         512 Apr 19 07:05 tcsh
 

Add comment


Security code
Refresh

 
 
 
 
English French German Italian Portuguese Russian Spanish

Latest Article