HCC
How do i create a openvpn server that is a client to another openvpn connection
This is the client file on the server
#client on server
dev tun
fast-io
client
dev-node Client
persist-key
persist-tun
nobind
remote <url> 123
proto udp
comp-lzo
tls-client
management 127.0.0.1 7000
verb 5
mute 10
auth-user-pass ".nfa-pass.txt"
#log c:/openvpn.log
<ca>
<removed>
</ca>
This is the server file
#server
port 321
proto udp
dev tap
dev-node Server
ca ca.crt
cert server.crt
key server.key
dh dh.pem
server 10.8.0.0 255.255.255.0
push "route 10.8.0.0 255.255.255.0"
push "redirect-gateway def1"
duplicate-cn
keepalive 10 120
tls-auth ta.key 0
key-direction 0
cipher AES-256-CBC
auth SHA256
persist-key
persist-tun
status C:\\Program Files\\OpenVPN\\log\\openvpn-status.log
log-append C:\\Program Files\\OpenVPN\\log\\openvpn.log
verb 3
explicit-exit-notify 1
This is the client file on the client
#client
client
dev tap
proto udp
remote <local ip > 321
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
auth SHA256
key-direction 1
verb 5
<ca>
-----BEGIN CERTIFICATE-----
<removed>
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
<removed>
-----BEGIN CERTIFICATE-----
<removed>
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
<removed>
-----END PRIVATE KEY-----
</key>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
<removed>
-----END OpenVPN Static key V1-----
</tls-auth>
TinCanTech
Your own server is Windows so you cannot do what you want.
HCC
if i need to i can switch to Linux
TinCanTech
If you do then you need to learn about policy based routing.