Linux System Engineer Community Thailand
ยินดีต้อนรับคุณ,
บุคคลทั่วไป
กรุณา
เข้าสู่ระบบ
หรือ
ลงทะเบียน
พฤษภาคม 21, 2012, 02:34:47 am
1 ชั่วโมง
1 วัน
1 สัปดาห์
1 เดือน
ตลอดกาล
เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
บุคคลทั่วไป สามรถสอบถามปัญหาต่างๆ ที่เกี่ยวกับ Linux ได้...
อยาทราบอะไรเกี่ยวกับ RedHat Enterprise Linux หรือ Platform อื่นก็ขอกันมาได้ครับ...
หน้าแรก
ช่วยเหลือ
ค้นหา
เข้าสู่ระบบ
สมัครสมาชิก
Advertise 299X69 pixel at here สนใจโฆษณาคลิ๊กที่นี่ครับ
Linux System Engineer Community Thailand
Knowledge Zone
Basic Linux know how
Transparent quid version 2.6 and beyond
หน้า: [
1
]
« หน้าที่แล้ว
ต่อไป »
ผู้เขียน
หัวข้อ: Transparent quid version 2.6 and beyond (อ่าน 1354 ครั้ง)
sysadm
Administrator
กระทู้: 212
liunxsyseng.com [ลินุกซ์-ซีด-เอน]
Transparent quid version 2.6 and beyond
«
เมื่อ:
กรกฎาคม 31, 2011, 09:34:19 pm »
Transparent quid version 2.6 and beyond
1.#echo "1" > /proc/sys/net/ipv4/ip_forward
2.#vim /etc/squid/squid.conf
edit
http_port 3128 to http_port 3128 transparent
3.#iptables -F
4.#iptables -t nat -F
5.#iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
6.#iptables -t nat -A PREROUTING -i eth1 -p tcp –dport 80 -j REDIRECT –to-port 3128
-A PREROUTING -i <your lan interface> -s ! <the IP of your squid host> -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
บันทึกการเข้า
liunxsyseng.com [ลินุกซ์-ซีด-เอน] ยินดีต้อนรับ
sysadm@linuxsyseng.com
หน้า: [
1
]
« หน้าที่แล้ว
ต่อไป »
กระโดดไป:
เลือกหัวข้อ:
-----------------------------
General Category Zone
-----------------------------
=> Announcement
-----------------------------
Knowledge Zone
-----------------------------
=> General RHL, RHEL, Fedora, Other Open Platform
=> Application RH, RHEL, Fedora, Other Open Platform
=> General Databases, Open Database Platform
=> Certificate RHCT/RHCE Other Cert.
=> Basic Linux know how
=> Documents Center
-----------------------------
Other Zone
-----------------------------
=> Living Room
=> Public Relations
=> Linux Jobs
กำลังโหลด...