The client config
daemon
dev tun
remote [serverip]
rport 1000
lport 1000
proto udp
ifconfig 10.0.0.2 10.0.0.1
cipher none
auth none
Now I have another vpn program that will send my request, however, I want to specify that it uses the established openvpn tunnel rather than sending request using the ip of this client machine. I can config that program to use specific source IP like 10.0.0.2.
Then is it possible for openvpn to automatically send those packages through the tunnel right to 10.0.0.1 where the openvpn server will do the rest of work (which I tested possible already)
The problem now is that it will not send to 10.0.0.1 but instead thinks that 10.0.0.1 is not default gateway then auto "corrects" such mistake by sending through the default netcard using the ip of this client machine. However, I do not want to depict default gateway or def1 to let all the outbound traffic go through openvpn, which causes trouble for another service on this machine. I want the SIP=10.0.0.2 packages to route through 10.0.0.1.
Can this be configured? Thanks in advance.