บทความอัพเดทในเว็บ ขออนุญาตอัพเดทช่องทาง https://fb.com/siamcafefan

ผู้เขียน หัวข้อ: Share Internet  (อ่าน 4515 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

naynoi

  • บุคคลทั่วไป
Share Internet
« เมื่อ: กันยายน 01, 2007, 09:36:58 am »
มือใหม่จริงๆ นะครับ ขอรบกวนหน่อยนะครับ ผมจะใช้ Fedora 6 ในการแชร์ Internet ผมตั้งติดตั้ง อะไรบ้าง ใช้ Card Land 2 อัน Internet เป็นของ ADSL ของ TT&T ต้อง set Card Lan แต่ละอันยังไง (ถ้าผมใส่ Card Lan อันเดียว เล่นเน็ตได้ ติดต่อ เครื่องอื่นในวงแลนได้ แต่ใช้ 2 อัน อัน 1 จะต่อเน็ตฯ อีกอันจะต่อกับ local network และให้แชร์ เน็ตกลับทำมะได้งงครับ ขอบคุณมากครับ)

ออฟไลน์ alo555

  • ผ่านการทดสอบเลื่อนชั้น
  • **
  • กระทู้: 48
  • Reputation: -1
Re: Share Internet
« ตอบกลับ #1 เมื่อ: กันยายน 01, 2007, 02:28:13 pm »
ใฃ้ IPCOP ง่ายกว่าไหมครับ ไปดูที่ www.linuxthai.org มีทุกอย่างที่คุณ ต้องการ
Signature cleanned by Admin

hijack

  • บุคคลทั่วไป
Re: Share Internet
« ตอบกลับ #2 เมื่อ: กันยายน 01, 2007, 04:47:20 pm »
ดูที่นี่เลยครับ http://www.siamcafe.net/board/index.php/topic,10683.0.html

kerati

  • บุคคลทั่วไป
Re: Share Internet
« ตอบกลับ #3 เมื่อ: กันยายน 03, 2007, 07:19:14 am »
1 อย่างแรก ต้องกำหนดในIPTABLES SERVICE ครับ ให้ REDIRECT PORT จาก 80>>>>>3128 (default).iptables
ทำให้ service iptables startทุกครั้งที่เครื่องเปิด chkconfig --level 345 iptables on
ในiptables ครับ  ใช้ คำสั่ง   iptables  -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128(redirect จาก port 80>>>>3128
iptables
2.iptables  -A POSTROUTING -o eth1 -j MASQUERADE (eth0 >local interface (Connect HUB , eth1 > net interface connect to router ip)
ส่วนการconfig ipต่างๆ อย่างท่านได้แนะนำมาเเล้วก่อนหน้านี้
3ในsquid.conf (/etc/squid/squid.conf)
เพิ่มค่าเข้าไป
คือ http_port 3128
httpd_accel_host localhost
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

 start squid ดูค่าพวกacl ต่างๆ นะครับ(/etc/rc.d/init.d/squid start)
 acl local src 192.168.XX.XX
chkconfig --level 345 squid on
http_access allow local