Choose fontsize:
ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
 
หน้า: [1]   ลงล่าง
  ตอบส่งหัวข้อนี้พิมพ์  
ผู้เขียน หัวข้อ: FreeBSD แชร์อินเทอเน็ตแบบด่วน  (อ่าน 1371 ครั้ง)
0 สมาชิก และ 2 บุคคลทั่วไป กำลังดูหัวข้อนี้
nong 
บุคคลทั่วไป
« เมื่อ: 30 ตุลาคม 2009, 11:31:34 »
ตอบโดยอ้างถึงข้อความอ้างถึง

หลังจากติดตั้ง FreeBSD มาแล้ว  เราก็มาทำให้เครื่องเป็น Gateway สามารถแชร์เนทให้กับเครื่อง client ได้ครับ

==========================================

ไปที่ /etc/rc.conf
#pico  rc.conf

พิมพ์ตามนี้นะครับ
firewall_enable="YES"
firewall_type="OPEN"
firewall_quite="YES"
natd_enable="YES"
natd_interface="rl0"         *** ชื่อ card lan ตั้งใหม่เองนะครับ *****
natd_flags="-s -u -m"
gateway_enable="YES"
======================

ไปที่

#cd /usr/src/sys/i386/conf
#cp GENERIC RIP
#pico RIP

(แก้ไขบรรทัดที่มีข้อความว่า ident GERNERIC เป็น  ident RIP
พิมพ์ตามนี้นะครับ

options IPFIREWALL
options IPFIREWALL_FORWARD
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=120
options IPDIVERT

====================================

ไปที่

cd /usr/src/sys/i386/conf
config RIP
cd ../compile/RIP
make depend ; make; make install

reboot เครื่องครับ
แจ้งลบกระทู้นี้หรือติดต่อผู้ดูแล   บันทึกการเข้า
nong 
บุคคลทั่วไป
« ตอบ #1 เมื่อ: 30 ตุลาคม 2009, 11:32:07 »
ตอบโดยอ้างถึงข้อความอ้างถึง

###########################
options         IPFIREWALL
options         IPFIREWALL_FORWARD
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPFIREWALL_VERBOSE              #firewall keep log
options         IPFIREWALL_VERBOSE_LIMIT=120            #log per page
options         IPDIVERT
options         QUOTA
options         SMP
#options         APIC_IO
##########################
#PPPoE Bridge
options  NETGRAPH
options  NETGRAPH_ASYNC
options  NETGRAPH_BPF
options  NETGRAPH_ECHO
options  NETGRAPH_CISCO
options  NETGRAPH_FRAME_RELAY
options  NETGRAPH_HOLE
options  NETGRAPH_IFACE
options  NETGRAPH_LMI
options  NETGRAPH_MPPC_ENCRYPTION
options  NETGRAPH_PPP
options  NETGRAPH_PPTPGRE
options  NETGRAPH_RFC1490
options  NETGRAPH_KSOCKET
options  NETGRAPH_TEE
options  NETGRAPH_TTY
options  NETGRAPH_UI
options  NETGRAPH_VJC
options  NETGRAPH_ETHER
options  NETGRAPH_SOCKET
options  NETGRAPH_PPPOE
options  BRIDGE
options  DUMMYNET
#options  NMBCLUSTERS
options  HZ=1000
################
แจ้งลบกระทู้นี้หรือติดต่อผู้ดูแล   บันทึกการเข้า
บุคคลทั่วไป 
บุคคลทั่วไป
« ตอบ #2 เมื่อ: 19 พฤศจิกายน 2009, 15:47:21 »
ตอบโดยอ้างถึงข้อความอ้างถึง

แล้วมันใช้งานได้แน่นอนใช่ป่ะ  Huh?
แจ้งลบกระทู้นี้หรือติดต่อผู้ดูแล   บันทึกการเข้า
nong 
บุคคลทั่วไป
« ตอบ #3 เมื่อ: 25 พฤศจิกายน 2009, 09:43:25 »
ตอบโดยอ้างถึงข้อความอ้างถึง

มันน่าจะ เป็นแบบ นั้น ครับ  :Smiley
แจ้งลบกระทู้นี้หรือติดต่อผู้ดูแล   บันทึกการเข้า
หน้า: [1]   ขึ้นบน
  ตอบส่งหัวข้อนี้พิมพ์  
 
กระโดดไป:  

Powered by SMF 1.1.4 | SMF © 2006, Simple Machines LLC | Thai language by ThaiSMF
Forum Pangmapha Hospital Power Byed | ICT Pangmapha Hospital | XHTML | CSS