How to build a route to the IPv4 network via openvpn on IPv6?

Good day! There are 2 servers with ipv6 addresses between them OpenVPN. Every server has its own ipv4 network, how to set the ipv4 route to every network that it runs over the ipv6 tunnel?

Thank you.
September 26th 19 at 06:02
3 answers
September 26th 19 at 06:08
First you need to understand. That you have a server with OpenVPN.
It's gateways? Or just the VPN server is separate gateways?

If each of these servers is the gateway to your network, you need to deal with the OpenVPN configs. Since the OpenVPN server is essentially a router. And all other routes his drum, he builds routes.
Suitability in the config file should contain these lines:
route "Your or other network where you have access." For example: route
push "route Network for VPN". For example: push "route"

Also in the properties of the client (the file with the client name in the directory ccd)


If these servers are gateways, each of the gateways should route to the VPN network and the VPN server as destination
If anything is unclear, ask. For a start, try to draw your network, specifying the IP, then it will be easier to answer
September 26th 19 at 06:04
September 26th 19 at 06:06
If it's Windows Server, then rout add-p for each subnet on both servers.
if Linux, the ip command with the -6 option, for example (/sbin/ip -6 route add 2000::/3 dev eth0 metric 1).
You probably did not understand me. Need to construct ipv4 over ipv6 - Schuyler.Johnson18 commented on September 26th 19 at 06:09
From what you wrote, I realized the following: there are two servers connected by a vpn tunnel to ipv6 at the same subnet are servers are running on ipv4. When it's on every server has at least two network interfaces: ipv6(vpn) ipv4 (LAN). While you need to register on servers routes: to go out of our subnet to another subnet using the ipv6 interface (vpn). If so, then it should fit command, ip route add dev mascaro наименование_интерфейса_vpn metric 1. Or you do not understand. - tanner_Rayn commented on September 26th 19 at 06:12

Find more questions by tags IPOpenVPN