Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| coreprojects:pf [2005/10/19 02:27] – created bang | coreprojects:pf [2025/10/25 17:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| '' | '' | ||
| - | ===== Aktikvasi | + | ===== Aktivasi |
| < | < | ||
| Line 19: | Line 19: | ||
| </ | </ | ||
| - | ==== Packet Filtering ==== | + | untuk menonaktifkan pf di gunakan perintah berikut |
| + | < | ||
| + | pfctl -d | ||
| + | </ | ||
| - | Filtering untuk '' | + | beberapa perintah pfctl yang sering digunakan |
| + | < | ||
| + | # pfctl -f /etc/pf.conf Memuat file konfigurasi pf | ||
| + | # pfctl -nf /etc/pf.conf | ||
| + | # pfctl -Nf / | ||
| + | # pfctl -Rf / | ||
| - | Konsep | + | # pfctl -sn Menampilkan rules NAT |
| + | # pfctl -sr Menampilkan rules filter | ||
| + | # pfctl -ss Menampilkan tables stat | ||
| + | # pfctl -sa Menampilkan semuanya yang bisa di tampilkan | ||
| + | </ | ||
| + | |||
| + | ===== Konsep | ||
| < | < | ||
| Line 32: | Line 46: | ||
| Mohon maaf jika tidak ada fitur '' | Mohon maaf jika tidak ada fitur '' | ||
| + | |||
| + | |||
| + | ==== Macro ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | Penggunaan '' | ||
| + | |||
| + | < | ||
| + | server_if = " | ||
| + | udp_port = "{ 53 123 }" | ||
| + | pass in on $server_if inet proto udp from any to any port $udp_port keep state | ||
| + | </ | ||
| + | |||
| + | Ruleset di atas di'' | ||
| + | |||
| + | < | ||
| + | pass in on fxp0 inet proto udp from any to any port 53 keep state | ||
| + | pass in on fxp0 inet proto udp from any to any port 123 keep state | ||
| + | </ | ||
| + | |||
| + | ==== Tables ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | < | ||
| + | table <iix> { 114.120.0.0/ | ||