| Perintah |
Deskripsi |
|
# iptables -t filter -L |
perlihatkan seluruh rantai tabel filter [man] |
|
# iptables -t nat -L |
perlihatkan seluruh rantai tabel nat [man] |
|
# iptables -t filter -F |
hapus semua aturan pada tabel filter [man] |
|
# iptables -t nat -F |
hapus semua aturan pada tabel nat [man] |
|
# iptables -t filter -X |
hapus semua rantai yang dibuat oleh pengguna [man] |
|
# iptables -t filter -A INPUT -p tcp --dport telnet -j ACCEPT |
izinkan koneksi telnet ke rantai input [man] |
|
# iptables -t filter -A OUTPUT -p tcp --dport http -j DROP |
tolak koneksi HTTP ke rantai output [man] |
|
# iptables -t filter -A FORWARD -p tcp --dport pop3 -j ACCEPT |
izinkan koneksi POP3 melalui rantai forward [man] |
|
# iptables -t filter -A INPUT -j LOG --log-prefix |
catat transaksi pada rantai input [man] |
|
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE |
konfigurasikan PAT (Port Address Traslation) pada eth0 dengan merubah paket yang keluar [man] |
|
# iptables -t nat -A PREROUTING -d 192.168.0.1 -p tcp -m tcp --dport 22 -j DNAT --to-destination 10.0.0.2:22 |
alihkan paket yang ditujukan untuk suatu alamat ke alamat lainnya [man] |