
{INTERNET}-----------[LINUX]----------------{LAN}
Lalu di Linux itu, cari file namanya rc.local (biasanya di /etc/rc.d/rc.local atau /etc/init.d/rc.local) lalu tambahkan 6 baris berikut (tidak termasuk comment)
DEVICE=ppp0
# Ini jalur INTERNAL ke INTERNET
iptables -A FORWARD -o $DEVICE -i ! $DEVICE -j ACCEPT
# In jalur balik dari INTERNET
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -f -j ACCEPT
# Ini rahasianya internet sharing
iptables -t nat -A POSTROUTING -o $DEVICE -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
Kalau sudah, reboot si Linux, hidupkan modemnya (kalau pakai). Terus semua komputer di LAN, diset supaya GATEWAY=IP-DALAM nya si Linux. Sementara itu DNS masih tetap DNS dari ISP.
Selamat Mencoba, semoga berhasil. :-p

1 comments:
Nice Blog!!! I thought I'd tell you about a site that will let give you places where
you can make extra cash! I made over $800 last month. Not bad for not doing much. Just put in your
zip code and up will pop up a list of places that are available. I live in a small area and found quite
a few. MAKE MONEY NOW
Post a Comment