I have the following openvpn setup, the goal is to make host D can connect to any of the computer(linux) in the corporate network to do some maintaining job:
corporate network remote vpn server
============================================= =====================
A B C(vpn client) D(vpn server)
10.0.10.101 ---- 10.0.10.100 |
10.0.51.100 ---- 10.0.51.101 |
10.8.1.2 ---|-- 10.8.1.1
|
host B route table:
10.8.1.0/24 via 10.0.51.101
host C route table:
10.0.10.0/24 via 10.0.51.100
host D route table:
10.0.10.0/24 via 10.8.1.2
10.0.51.0/24 via 10.8.1.2
The openvpn is being setup with subnet topology, which links corporate network subnet 10.0.51.0/24.
My purpose is to make host D can link with host A, here is the progress I made:
- B ping through D(10.8.1.1): OK
- D ping through B(10.0.10.100): Failed
- D ping through B(10.0.51.100): OK
- B ping C 10.0.51.101/10.8.1.2: OK
- C ping B(10.0.10.100/10.0.51.100): OK
It seems that route 10.0.10./24 via 10.8.1.2 being ignored when doing traceroute. How can I setup to make the host D on subnet 10.0.51.0/24 link to 10.0.10.0/24?