CONFIG FILES IN SERVER MACHINE
Config file of first tun adapter with IP address 10.8.0.1
port 1194
proto udp
dev tun
dev-node TUN
ca "C:\\Archivos de Programa\\OpenVPN\\config\\ca.crt"
cert "C:\\Archivos de Programa\\OpenVPN\\config\\ServidorVM.crt"
key "C:\\Archivos de Programa\\OpenVPN\\config\\ServidorVM.key"
dh "C:\\Archivos de Programa\\OpenVPN\\config\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0" # this is the network in the server side
client-config-dir "C:\\Archivos de Programa\\OpenVPN\\config\\ccd\\"
route 192.168.2.0 255.255.255.0 # this is the network in the client side
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3
In the directory C:\Archivos de Programa\OpenVPN\config\ccd\ I have a file whose name is ClienteBoyuibe with this
content
iroute 192.168.2.0 255.255.255.0
the config file of second tun adapter with IP address 10.9.0.1
port 1195
proto udp
dev tun
dev-node TUN2
ca "C:\\Archivos de Programa\\OpenVPN\\config\\ca.crt"
cert "C:\\Archivos de Programa\\OpenVPN\\config\\ServidorVM.crt"
key "C:\\Archivos de Programa\\OpenVPN\\config\\ServidorVM.key"
dh "C:\\Archivos de Programa\\OpenVPN\\config\\dh1024.pem"
server 10.9.0.0 255.255.255.0
ifconfig-pool-persist "C:\\Archivos de programa\\OpenVPN\\config\\config2\\ipp.txt"
push "route 192.168.1.0 255.255.255.0" # this is the network in the server side
client-config-dir "C:\\Archivos de Programa\\OpenVPN\\config\\config2\\ccd\\"
route 192.168.2.0 255.255.255.0 # this is the network in the client side
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3
In the directory C:\Archivos de Programa\OpenVPN\config\config2\ccd\ I have a file whose name is ClienteBoyuibe with this
content
iroute 192.168.2.0 255.255.255.0
CONFIG FILES OF CLIENT MACHINE
Config file of first tun adapter with IP address 10.8.0.6
client
dev tun
dev-node TUN
proto udp
remote 200.212.128.254 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Archivos de programa\\OpenVPN\\config\\ca.crt"
cert "C:\\Archivos de programa\\OpenVPN\\config\\ClienteBoyuibe.crt"
key "C:\\Archivos de programa\\OpenVPN\\config\\ClienteBoyuibe.key"
ns-cert-type server
comp-lzo
verb 3
Config file of second tun adapter with IP address 10.9.0.6
client
dev tun
dev-node TUN2
proto udp
remote 200.212.128.254 1195
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Archivos de programa\\OpenVPN\\config\\ca.crt"
cert "C:\\Archivos de programa\\OpenVPN\\config\\ClienteBoyuibe.crt"
key "C:\\Archivos de programa\\OpenVPN\\config\\ClienteBoyuibe.key"
ns-cert-type server
comp-lzo
verb 3