2007/Jul/31

สำหรับท่านที่ใช้งาน IPCOP แล้วต้องการที่จะทำการ remote จากที่ใดในโลกนี้ที่มี web
แต่อาจเป็นไปได้ว่า บาง ISP อาจจะมีการ block ที่ port 445 (ผมโดนมาแล้ว ทำอยู่หลายวัน) ดังนั้น
เราต้องต้องทำการแก้ไข port ของ ipcop จากเดิมให้เป็น port อื่นดังนี้
login ที่เครื่อง ipcop แล้วมพิมพ์ commnad line

root@cop:~ # /usr/local/bin/setreservedports 5445 <---- สำหรับ 5445 อันนี้เป็นเลขอะไรก็ได้ที่ ว่างอยู่
สำหรับ คำสั่งนี้จะมีผลต่อการเปลี่ยนแปลงข้อมูลของ port ทั้งหมดครับ
สำหรับรายละเอียดสามารถอ่านเพิ่มเติมได้ที่ http://www.ipcop.org/index.php?module=pnWikka&tag=IPCop140HttpsPortHowto

สำหรับบางท่าน ที่ไม่สามารถเข้า web ของ ipcop ที่ port 445 ได้ แต่สามารถใช้ ssh เข้าได้ ก็สามารถใช้คำสั่งในการแก้ไข ได้ดังนี้ครับ

1.8.3  How do I change the external access settings from the command line?

To change the external access settings, do the following:

  1. Edit /var/ipcop/xtaccess/config
  2. Run /usr/local/bin/setxtaccess
ก็สามารถแก้ได้แล้ว สำหรับ บางท่านที่ไม่ได้ทำการกำหนดค่าไว้ก่อน ต้องพิมพ์ไว้เองตามนี้

เพิ่ม ค่า นี้ tcp,0.0.0.0/0,5445,on,0.0.0.0,ipcop
แล้วบันทึก และสั่ง run ก็จะใช้ได้แล้วครับ

ผมขอคัดลอกมาจาก

IPCOP FAQ

http://home.comcast.net/~ds531/IPCOP_FAQ.html#x1-800001.8.3

ขอแถมอีกนิด

1.8.4  How do I enable SSH access from the command line?

  • To enable SSH access
    1. Edit /var/ipcop/remote/settings
    2. Run /bin/touch /var/ipcop/remote/enablessh
    3. Run /usr/local/bin/restartssh
  • To disable SSH access
    1. Edit /var/ipcop/remote/settings
    2. Run rm /var/ipcop/remote/enablessh
    3. Run /usr/local/bin/restartssh
    สำหรับท่านที่จะกำหนดค่า SSH

ผมเกือบลืมครับ สำหรับการทำให้ remote ผ่านทาง web ได้ ท่านต้องไปกำหนดการทำ
port forwarding ใน adsl router ด้วยนะครับ หากไม่ทำจะไม่สามารถใช้ได้ สำหรับวิธีการให้ท่านดูได้ที่ website http://portforward.com/


edit @ 2007/07/31 08:36:35
edit @ 2007/07/31 08:40:24
ชื่อ: 
เว็บไซต์: 
คอมเมนต์:




smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry

<< Home