K
K
Konkase2014-07-31 11:16:00
openvpn
Konkase, 2014-07-31 11:16:00

How to build a route in an IPv4 network through openvpn on IPv6?

Good afternoon! There are 2 servers with ipv6 addresses, between them OpenVPN. Each server has its own ipv4 network, how to register a route to each ipv4 network so that it goes through an ipv6 tunnel?

Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konkase, 2014-07-31
@Konkase

Found an option. 4over6
tools.ietf.org/html/rfc5747 - RFC
www.tldp.org/HOWTO/Linux+IPv6-HOWTO/chapter-config... - configuration

T
Ti Fix, 2014-07-31
@Ti_Fix

If this is a Windows Server, then through rout -add -p for each subnet on both servers.
if Linux, then through the ip command with the -6 parameter, for example (/sbin/ip -6 route add 2000::/3 dev eth0 metric 1).

S
Sergey, 2014-07-31
@bk0011m

First you need to understand. What kind of servers do you have with OpenVPN.
Are these gateways? Or is it just a VPN server and there are separate gateways?
If each of these servers is a gateway in its own network, then you need to deal with the OpenVPN configs. Since the OpenVPN server is essentially a router. And he doesn’t care about all the other routes, he builds the routes himself.
Accordingly, the config should contain the following lines:
route "Your or other networks where you need access." For example: route 192.168.100.0 255.255.255.0
and
push "route Network behind VPN". For example: push "route 192.168.111.0 255.255.255.0"
Also in client properties (client name file in ccd directory)
iroute 192.168.100.0 255.255.255.0
If these servers are not gateways, then each of the gateways must have a route to the VPN network and the VPN server as destination
. If something is not clear, ask. And first, try to draw your network with IP, then it will be easier to answer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question