Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| coreprojects:pf [2008/08/23 13:29] – hky | coreprojects:pf [2025/10/25 17:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| $ sudo pfctl -e | $ sudo pfctl -e | ||
| $ sudo ifconfig pflog0 up | $ sudo ifconfig pflog0 up | ||
| + | </ | ||
| + | |||
| + | untuk menonaktifkan pf di gunakan perintah berikut | ||
| + | < | ||
| + | pfctl -d | ||
| + | </ | ||
| + | |||
| + | beberapa perintah pfctl yang sering digunakan | ||
| + | < | ||
| + | # pfctl -f / | ||
| + | # pfctl -nf / | ||
| + | # pfctl -Nf / | ||
| + | # pfctl -Rf / | ||
| + | |||
| + | # pfctl -sn Menampilkan rules NAT | ||
| + | # pfctl -sr Menampilkan rules filter | ||
| + | # pfctl -ss Menampilkan tables stat | ||
| + | # pfctl -sa Menampilkan semuanya yang bisa di tampilkan | ||
| </ | </ | ||
| Line 47: | Line 65: | ||
| 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 53 keep state | ||
| pass in on fxp0 inet proto udp from any to any port 123 keep state | pass in on fxp0 inet proto udp from any to any port 123 keep state | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | iix = " {114.120.0.0/ | ||