ข่าว: ข่าวประกาศ

  • 05 ตุลาคม 2024, 20:28:49

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - admin

หน้า: 1 ... 93 94 [95] 96 97 ... 115
1411
คุยกับทีมวิจัย / Re: การติดตั้ง Ubuntu 7.10
« เมื่อ: 27 กรกฎาคม 2008, 02:59:36 »
ให้ทำการ copy ไฟล์ใน cdrom ลงไปใน Server ใหม่อีกครั้ง

แล้วทำการ compile ใหม่อีกครั้ง

1412
คุยกับทีมวิจัย / Re: การติดตั้ง ubuntu server
« เมื่อ: 26 กรกฎาคม 2008, 21:44:13 »
ตอนติดตั้งใส่ ip และ Gateway ที่สามารถออกเน็ตได้

แต่พอรัน Script ก็ใส่ ip ที่จะใช้จริงลงไป

1413
คุยกับทีมวิจัย / Re: การติดตั้ง ubuntu server
« เมื่อ: 26 กรกฎาคม 2008, 18:15:34 »
เครื่อง Server ก็ Set ip เป็น 192.168.2.1  ตามปกติ  ไม่ต้อง Set Gateway อะไร

ตัว DHCP หรือตัว แจกไอพีอัตโนมัติ จะเป็นตัวจัดการให้เอง โดยจะแจก IP ตามกลุ่มที่กำหนดไว้

แล้วแจก IP Gateway และ Primary DNS เป็น IP ของ Server โดยอัตโนมัติเอง

1414
คุยกับทีมวิจัย / Re: การติดตั้ง ubuntu server
« เมื่อ: 26 กรกฎาคม 2008, 17:05:26 »
ทำแบบนั้น เพื่ออะไรครับ

จุดประสงค์ที่ใส่ ip gateway เป็น ip server  มันก็วิ่งวนไปไหนไม่ได้ซิครับ

1415
ลองใช้คำสั่ง  tail -f /var/log/messages  ดูครับ ว่า log file แจ้ง error ว่าอย่างไร

จะได้ดำเนินการแก้ไขได้ถูก

1416
ระหว่าง 3Com 2226 Plus กับ Zyxel ES-2024 ความสามารถพอ ๆ กัน ครับ

ต่างกันนิดเดียว คือ Zyxel ES-2024 จะมี CLI Mode มาด้วย และสามารถกำหนดความเร็วในแต่ละ Port ได้ และสามารถกำหนด Management VLAN ได้ รองรับการทำงานแบบ Port Base VLAN และสามารถทำ Port isolate ได้

ส่วน 3Com 2226 Plus จะไม่มีความสามารถนี้

ขอบคุณครับ

1417
Every 2.0s: netstat-nat -n -s 192.168.1.34                                                                                           Thu Jul 24 23:53:39 2008

Could not read info about connections from the kernel, make sure netfilter is enabled in kernel or by modules.


แสดงว่า ยังไม่มีการทำ nat  เลยยังไม่สามารถใช้งาน netstat-nat ได้ครับ

1418
คุยกับทีมวิจัย / Re: Ubuntu Distro Hadyai Internet Version WebInterface
« เมื่อ: 25 กรกฎาคม 2008, 03:05:58 »
มันก็ทำได้หมดนั่นแหละครับ

เพียงแต่ว่ายังไม่มีหน้า WebBase ในการจัดการ

สำหรับการเพิ่ม HDD เอาไว้ version หลังๆ ใช้เป็น command ไปก่อน

1419
คุยกับทีมวิจัย / Re: iptables-1.3.8.tar
« เมื่อ: 25 กรกฎาคม 2008, 02:29:01 »
สรุป สาเหตุที่เกิด error ดังกล่าวก่อนนะครับ

เนื่องจากมีการ update ipp2p ตอนที่มีการ download มา ทำให้ไม่ตรงกับ kernel ที่ compile ไว้

จึงทำให้เกิด error ขึ้นมา

ให้แก้ดังนี้ครับ

root@AuthGW:~# cd /usr/src
root@AuthGW:/usr/src# wget http://www.hadyaiinternet.com/upload/iptables.tar.gz
--19:36:18--  http://www.hadyaiinternet.com/upload/iptables.tar.gz
           => `iptables.tar.gz'
Resolving www.hadyaiinternet.com... 203.146.253.13
Connecting to www.hadyaiinternet.com|203.146.253.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 300,143 (293K) [application/x-gzip]

100%[=============================================>] 300,143      145.83K/s             

19:36:21 (145.42 KB/s) - `iptables.tar.gz' saved [300143/300143]

root@AuthGW:/usr/src# tar xvzf iptables.tar.gz
....
ย่อไว้
....
iptables-1.3.8/description-pak
iptables-1.3.8/COMMIT_NOTES
iptables-1.3.8/.makefirst
iptables-1.3.8/ip6tables.o
iptables-1.3.8/ip6tables
root@AuthGW:/usr/src# cd iptables
root@AuthGW:/usr/src/iptables# make clean
root@AuthGW:/usr/src/iptables# make install
...
รอจนกระทั่งเสร็จ
..
cp extensions/libip6t_rt.so /lib/iptables/libip6t_rt.so
cp extensions/libip6t_sctp.so /lib/iptables/libip6t_sctp.so
rm libiptc/libip6tc.o libipq/libipq.o libiptc/libip4tc.o
root@AuthGW:/usr/src/iptables#

เสร็จแล้วลองทดสอบดู

iptables -V
iptables -m time -h
iptables -m ipp2p -h
iptables -m layer7 -h

หมายเหตุ
*** จะจัดส่งแผ่น update แก้ error นี้ พร้อมกับ version WebInterface ให้ครับ ***

1420
คุยกับทีมวิจัย / Re: iptables-1.3.8.tar
« เมื่อ: 25 กรกฎาคม 2008, 01:03:25 »
งั้นเด๋ว คืนนี้ ผมเอาวิธีแบบละเอียดมาแสดงให้ดูนะครับ


1421
คุยกับทีมวิจัย / Re: iptables-1.3.8.tar
« เมื่อ: 25 กรกฎาคม 2008, 00:03:24 »
ทำตามข้อความข้างบนแล้ว  มีข้อความให้ยืนยัน 3 รอบ ซ้ำกัน
พอทดสอบก็เป็นแบบนี้  ต้องแก้ยังไงครับ

root@xcafe:/usr/src/iptables# iptables -V
iptables v1.3.8
root@igscafe:/usr/src/iptables# iptables -m layer7 --17proto bittorrent -h
iptables v1.3.8: Couldn't load match `layer7':/lib/iptables/libipt_layer7.so: cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
root@xcafe:/usr/src/iptables# iptables -m ipp2p -h
iptables v1.3.8: Couldn't load match `ipp2p':/lib/iptables/libipt_ipp2p.so: cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
root@xcafe:/usr/src/iptables# iptables -m time -h
iptables v1.3.8: Couldn't load match `time':/lib/iptables/libipt_time.so: cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.


ลอง uname -a ดูครับ ว่าขึ้นว่าอะไร

root@netcafe:~# uname -a
Linux netcafe 2.6.22.14-l7support #1 SMP Thu Jun 12 16:46:34 ICT 2008 i686 GNU/Linux
root@netcafe:~#

แบบนี้หรือเปล่าครับ

1422
ถ้าใช้สำหรับเล่นเน็ตอย่างเดียว ก็สามารถ ใช้ default route ได้เลยโดยใช้คำสั่ง

ip route replace default equalize nexthop dev ppp101 weight 2 nexthop dev ppp102 weight 2 nexthop dev ppp103 weight 2 nexthop dev ppp104 weight 2

ได้เลยครับและต้องเพิ่ม Script สำหรับ checklink.sh และ 0route กรณีมีเส้นใดเส้นหนึ่งหลุดไป ก็ให้ทำการวิ่งเส้นที่เหลือแทน

/etc/init.d/checklink.sh
-------------------------------------------------
#!/bin/sh

oldstatus=0
while [ 1 ]
do

        status=0

        ppp101=`/sbin/ifconfig -a | grep "ppp101"`

        if [ -n "$ppp101" ]; then
                # echo "ppp101 is up"
                status=`expr $status + 1`
        fi

        ppp102=`/sbin/ifconfig -a | grep "ppp102"`

        if [ -n "$ppp102" ]; then
                # echo "ppp102 is up"
                status=`expr $status + 2`
        fi

        ppp103=`/sbin/ifconfig -a | grep "ppp103"`

        if [ -n "$ppp103" ]; then
                # echo "ppp103 is up"
                status=`expr $status + 4`
        fi

        ppp104=`/sbin/ifconfig -a | grep "ppp104"`

        if [ -n "$ppp104" ]; then
                # echo "ppp104 is up"
                status=`expr $status + 8`
        fi

        if [ $status != $oldstatus ]; then

                /etc/ppp/ip-up.d/0route

        fi
        oldstatus=$status

        sleep 5
done


/etc/init.d/0route
-------------------------------------------------
#!/bin/sh

        droute=""
       
        ppp101=`/sbin/ifconfig -a | grep "ppp101"`

        if [ -n "$ppp101" ]; then
                # echo "ppp101 is up"
                status=`expr $status + 1`
                ip route add default table 101 dev ppp101
                ip route add default table 201 dev ppp101
                IPWAN=`ip addr show ppp101 |grep inet |cut -d " " -f 6`
                ip rule del prio 201
                ip rule add from $IPWAN lookup 201 prio 201
                droute="$droute nexthop dev ppp101 weight 2"
        fi

        ppp102=`/sbin/ifconfig -a | grep "ppp102"`
        if [ -n "$ppp102" ]; then
                # echo "ppp102 is up"
                status=`expr $status + 2`
                ip route add default table 102 dev ppp102
                ip route add default table 202 dev ppp102
                IPWAN=`ip addr show ppp102 |grep inet |cut -d " " -f 6`
                ip rule del prio 202
                ip rule add from $IPWAN lookup 202 prio 202
                droute="$droute nexthop dev ppp102 weight 2"
        fi

        ppp103=`/sbin/ifconfig -a | grep "ppp103"`

        if [ -n "$ppp103" ]; then
                # echo "ppp103 is up"
                status=`expr $status + 4`
                ip route add default table 103 dev ppp103
                ip route add default table 203 dev ppp103
                IPWAN=`ip addr show ppp103 |grep inet |cut -d " " -f 6`
                ip rule del prio 203
                ip rule add from $IPWAN lookup 203 prio 203
                droute="$droute nexthop dev ppp103 weight 2"
        fi

        ppp104=`/sbin/ifconfig -a | grep "ppp104"`

        if [ -n "$ppp104" ]; then
                # echo "ppp104 is up"
                status=`expr $status + 8`
                ip route add default table 104 dev ppp104
                ip route add default table 204 dev ppp104
                IPWAN=`ip addr show ppp104 |grep inet |cut -d " " -f 6`
                ip rule del prio 204
                ip rule add from $IPWAN lookup 204 prio 204
                droute="$droute nexthop dev ppp104 weight 2"
        fi

        if [ -n "$droute" ]; then
                ip route del default
                defroute="ip route add default equalize $droute"
                `$defroute`
        fi

ip route flush cache

1423
ไม่ทราบว่าทำถึงขั้นตอนไหนแล้วครับ

ต่อครบ 4 เส้นหรือยังครับ  ppp101 - ppp104 หรือเปล่าครับ

ยังไง pm มาก็ได้ครับ ผมจะได้เอา script ตัวอย่างส่งให้

1424
คุยกับทีมวิจัย / Re: iptables-1.3.8.tar
« เมื่อ: 24 กรกฎาคม 2008, 18:50:23 »
ถ้าหากยังไม่ได้ ให้ทำตามนี้นะครับ

http://www.hadyaiinternet.com/index.php?topic=196.msg726#msg726

1425
คงอีกสักระยะนึงนะครับ

เพราะตอนนี้อยู่ระหว่างการพัฒนาตัว WebInterface ของ MultiWAN Server อยู่

และก็คงจะออกมาให้ทดลองใช้กันก่อน

หากผลการทดสอบ หรือการใช้งานของลูกค้าเป็นที่พอใจ

ก็จะออกเอกสารตามมาอีกทีนึงครับ

ขอบคุณครับ

หน้า: 1 ... 93 94 [95] 96 97 ... 115