> -----Original Message-----
> From: :::H M::: [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, January 25, 2004 6:22 PM
> To: [EMAIL PROTECTED]
> Subject: [tanya-jawab] iptables
> 
> 
> MOhon petunjuk rekan2.
> Saya install Redhat 9.0 sebagai getway dengan tambahan squid dan
> iptables. Sekarang internet bisa jalan oleh user juga dengan proxy:80.
> Maksud hati saya ingin hanya menggunakan port2 tertentu aja dan
> mem-block port yang nggak kepakai. Misalnya buka port
> :21,22,23,25,80,110,1080,5100,5050,8080,10000. Selain port tersebut
> di-Block. 

ehm, default policy-nya dibikin drop aja.

iptables -P FORWARD DROP

lalu, dibolongin port yang mau liwat. Paling enak pake module state. conto
port 80.

iptables -A FORWARD -i $INBOUND_IF \
        -p tcp --dport 80 \
        -m state --state RELATED,ESTABLISHED\
        -j ACCEPT

lalu allow forwarding

echo 1 > /proc/sys/net/ip_forward

rebes...

btw, kalo cuma itu aja, kaga secure itu getwei. coba di utak2x chain INPUT
-nya.

> mohon petunjuk gimana setting di iptables-nya. Dah nyoba2
> tetep blom bisa. Thank's.

udah nyobanya model gimana ? udah pernah baca2x www.netfilter.org ? baca
juga tutorialnya.

ef

Disclaimer - This message and any attachments may contain privileged
information. Any unauthorised use of this message by any person may lead to
legal consequences. Any views expressed in this message are those of the
individual sender and may not necessarily reflect the views of PT Kaltim
Prima Coal.

-- 
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip dan info di http://linux.or.id/milis.php
FAQ milis http://linux.or.id/faq.php

Kirim email ke