ออกตัวก่อนว่าไม่เก่งเรื่อง Network เลย แต่พอจะหาความรู้ได้อยู่บ้าง วันนี้ติดปัญหาเลยคิดว่าชุมชนบล๊อกนันจะชี้ทางสว่างให้ผมได้

โจทย์ที่ได้มาคือ

ต้องการให้ Client วิ่งผ่าน Server(a) โดยที่ Server(a) ก็วิ่งผ่าน Server(b) อีกทีนึง คือเชคไอพีแล้ว Client ต้องเลขเดียวกับ Server(b)
ประมาณแบบในรูป

  1. Client ไม่สามารถเข้าถึง Server(b) ได้โดยตรง
  2. Client / Server(a) / Server(b) อยู่คนละที่กัน เชื่อมต่อกันผ่าน Internet อย่างเดียว
    โดย Server(a) ต้องจอยโดยผ่าน VPN(b) ของ Server(b) เท่านั้น
  3. Client และ Server(a) เป็น Windows สามารถปรับแต่งได้ แต่ Server(b) ไม่สามารถจัดการได้ และไม่รู้ว่าใช้ระบบอะไร (*ไม่ใช่ของเราแต่ Server(a) มีสิทธิเข้าถึง Server(b) ผ่าน VPN อย่างถูกต้อง)
  4. เหตุผลที่เลือกใช้ OpenVPN เนื่องจาก เริ่มไม่ถูกเหมือนกัน แต่ลองทำแล้วพอจะใช้งานได้ระดับนึงหากมีตัวอื่นที่ Run on Windows ได้ตามเงื่อนไขก็จะใช้ครับ
  5. Server(b) อนุญาต ให้วงแลนเดียวกับ Server(a) ต่อเข้ามากี่ Connection ก็ได้
  6. ฟรียิ่งดีครับ

ผมลองใช้ OpenVPN สร้าง VPN(a) ใน Server(a) ขึ้นมาแล้วให้ Client จอยเข้ามาและวิ่งผ่าน Server(a) ได้เรียบร้อยครับไอพีเลขเดียวกับ Server(a) ผมใช้วิธีบ้านๆเลยคือ Share internet ของ Server(a) ให้วง VPN(a) ก็สามารถใช้งานได้ระดับนึง

ปัญหา : คือเมื่อ Server(a) เชื่อมต่อเข้า VPN(b) ของ Server(b) เพื่อเปลี่ยนไอพีให้เป็นของ Server(b) ทำให้ Client ไม่สามารถ เชื่อมต่อผ่านไอพีของ Server(a) เดิมได้อีกต่อไป และไม่สามารถเข้าถึง Server(b) ผ่านไอพี Server(b)

อันนี้ผมคิดต่อไปอีกนิด หาก Client เชื่อมต่อเข้า Server(a) ได้จริง แล้วจะทำอย่างไรให้ Client วิ่งผ่าน Server(b) (ในนาม Server(a))

ก็ตามนี้ครับ ขอบคุณมากๆครับ ศึกษาเองอาจจะไม่ทันใช้ยังไงก็รบกวนชาวบล๊อกนันครับ

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

ต้องลอง ทำเป็น Routing ดูครับ อันนี้ ต้องศึกษาเรื่อง Routing ด้วยนะครับ หรือถ้าจะให้เป็น วงเดียวกัน ก็ต้องทำ bridged เอานะครับ

LuvStry Mon, 16/01/2012 - 17:35

ขอบคุณครับ ผมไปเจอวิธีจัดการแล้วกำลังลองทำอยู่ครับ หลักการคือ

  1. Client ต้อง run Client instance 2 ตัว
  2. Client instance แรก ต่อเข้า server(a) ไม่ต้อง แชร์เน็ต
  3. Client instance สอง ล๊อคอินเข้า Server(b) ผ่าน gateway ของ server(a) อีกที เพื่อหลอกให้ Server(b) คิดว่า Connection มาจาก Server(a) 
  4. Server(a) ห้าม เชื่อมต่อ Server(b) โดยตรง

http://forums.openvpn.net/topic7483.html

จากกระทู้นี้เลย ไดอาแกรมสุดท้าย