Hello,
I'm a newbee concerning openvpn so please excuse me if i don't use the right terms...
Context :
I have a dedicated server running ubuntu and an openvpn server on it.
I have also a nas running a second openvpn server at home.
So on my ubuntu server i have :
-a openvpn server on dev tun (10.8.0.0 255.255.255.0)
-a openvpn client connecting the nas (10.9.0.0 255.255.255.0)
Problem
I'm looking for a way to connect those two tunnels in order to allow the clients (10.8.0.X) connecting to the ubuntu openvpn server to see the nas (10.9.0.1).
I tried a couple of things including push routes but i don't really have an idee how to do it.
Configs
Ubuntu server side :
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
tls-auth ta.key 0 # This file is secret
comp-lzo
user nobody
group nogroup
chroot /etc/openvpn/jail
persist-key
persist-tun
status openvpn-status.log
log-append openvpn_server.log
verb 3
;mute 20
Client side connecting to the nas :
dev tun1
tls-client
remote XXX.XXX.XXX.XXX 1194
# The "float" tells OpenVPN to accept authenticated packets from any address,
# not only the address which was specified in the --remote option.
# This is useful when you are connecting to a peer which holds a dynamic address
# such as a dial-in user or DHCP client.
# (Please refer to the manual of OpenVPN for more information.)
#float
# If redirect-gateway is enabled, the client will redirect it's
# default network gateway through the VPN.
# It means the VPN connection will firstly connect to the VPN Server
# and then to the internet.
# (Please refer to the manual of OpenVPN for more information.)
#redirect-gateway
# dhcp-option DNS: To set primary domain name server address.
# Repeat this option to set secondary DNS server addresses.
#dhcp-option DNS DNS_IP_ADDRESS
pull
proto udp
script-security 2
ca ca.crt
comp-lzo
reneg-sec 0
auth-user-pass
Thx for your help !
Regards