malik wrote:

> [EMAIL PROTECTED] wrote:

> - Untuk menambah IP pada eth1 gimana caranya ? yang sudah ada 
> 192.254.97.249 ditambah lagi dengan 192.254.5.2
>    yang akhirnya eth1 punya 2 IP

Pake ip aliasing (ip aliasing support harus compiled in atau moduled)

# ifconfig eth1:0 192.254.5.2

Jadi anda akan punya :
eth1 = 192.254.97.249
dan
eth1:0 = 192.1254.5.2

> - Bagaimana menerapkan IPTABLE-nya agar IP-IP 192.254.97.0/24 dan 
> 192.254.5.0/24 bisa mengakses internet ?


# rc.gateway - gak perlu ip address
EXTERNAL=eth0
INTERNAL1=eth1
INTERNAL2=eth1:0
#
echo 1 > /proc/sys/net/ipv4/ip_forward
echo "Setting up NAT (Network Address Translation)..."
#
iptables -P FORWARD DROP
#
iptables -A FORWARD -i $EXTERNAL -o $INTERNAL1 -m state --state 
ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i $EXTERNAL -o $INTERNAL2 -m state --state 
ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i $INTERNAL1 -o $EXTERNAL -j ACCEPT
iptables -A FORWARD -i $INTERNAL2 -o $EXTERNAL -j ACCEPT
#
iptables -t nat -A POSTROUTING -o $EXTERNAL -j SNAT


-- 
rumy








-- 
www.ITCENTER.or.id - Komunitas Teknologi Informasi Indonesia 
Info, Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED] 
::: Hapus bagian yang tidak perlu (footer, dst) saat reply! ::: 
## Jobs: ITCENTER.or.id/jobs ## Bursa: ITCENTER.or.id/bursa ##

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ITCENTER/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Kirim email ke