coba ini pak, saya kutip dari forum linux juga
di mesin router
# iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT
--to-destination ip_squid_box:port squid
di mesin squid
# iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
--to-port port_squid_box
mohon koreksinya kalo ada yang salah
makasi
polutan <[EMAIL PROTECTED]> wrote: ---------- Forwarded message ----------
From: cadas <[EMAIL PROTECTED]>
Date: Mar 21, 2006 3:59 PM
Subject: [BALInux] port forward
To: [email protected]
Saudara-saudara sekalian, mohon info nya dong
1. Bagaimana caranya mengalihkan permintaan ke port 80 dari link
internet supaya di alihkan ke mesin dengan Ip private yang menjalankan web
server?
2. Pada squid dengan transparent proxy, saya menggunakan ip private,
nah untuk iptables nya pada router saya lakukan dengan
a. Iptables -t nat -p tcp -dport 80 -j DNAT -to-destination
192.168.0.2:3128.
b. Router tsb menggunakan ip public pada eth0 dan ip 192.168.0.1 pada
eth1. squid box dengan ip 192.168.0.2
c. Tapi ternyata kok malah ga bisa browsing semua ya. Kenapa ya???
[Non-text portions of this message have been removed]
Yahoo! Groups Links
[Non-text portions of this message have been removed]
SPONSORED LINKS
Linux software
Linux operating system
Linux
Hosting linux unix web Unix operating
system Unix vs linux
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "balinux" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2ยข/min or less.
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/balinux/
<*> 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/