|
เพิ่งลองสำเร็จเมื่อหนึ่งชั่วโมงที่ผ่านมา ระยะยาวไม่ทราบกำลังทดลอง ทางแก้คือ ตอนลง Squid เลือก config เพิ่มให้ทำ transparent ด้วย ipfw ได้ด้วยอยู่ติดกับ transparent pf นั่นแหละ จากนั้นปิด transparent on pfc.conf then add ipfw rules in rc.loclal for use transparent with ipfw example :
ipfw add 1600 fwd 10.8.0.1 tcp from any to 10.8.0.0/16 80 ipfw add 1700 fwd 10.8.0.1,8080 tcp from 10.8.0.0/16 to any 80 ipfw add 1800 deny tcp from any to any 8080 ### Don't forget change your ip and bit for your network.
### If you want to active this rules on startup plese input the rules in rc.locla file.
ขออภัยสำหรับภาษาอังกฤษแบบมั่ว ๆ ผมเป็นโรคขี้เกียจเปลี่ยนปุ่มสลับภาษาแก้ไม่หาย ได้ผลอย่างไรบอกกันมั่ง
สวัสดีครับ
พรชัย |