Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to set up an OpenVPN server on my QNAP Nas.

My network:

Router: 192.168.0.254
QNAP Nas: 192.168.0.5
Some other computer in LAN: 192.168.0.7
Subnet 255.255.255.0

I've forward port 1194 to 192.168.0.5 in my router. I can connect to the QNAP Nas OpenVPN server from an outside client but can't reach "Some other computer" through that connection.

server.conf

# OpenVPN server configuration QNAP NAS  
local 192.168.0.5  
proto udp  
dev tun  
# detect mtu if the connection is slow.  
; mtu-test  
# define mtu, if necessary  
; tun-mtu xyz  
# data compression  
comp-lzo  
# allow, that several clients with the same common name log on  
; duplicate-cn  
# different clients can "see" each other through the tunnel.  
; client-to-client  
# Keepalive  
keepalive 15 120  
# Log files
status /opt/etc/openvpn/log/status.log  
log-append /opt/etc/openvpn/log/openvpn.log  
# Run as daemon (activate, after everything is set up properly)  
daemon  
# Management Interface. Access with "telnet localhost 7505"  
management localhost 7505  
port 1194  
server 10.8.0.0 255.255.255.0  
dh /opt/etc/openvpn/keys/dh1024.pem  
ca /opt/etc/openvpn/keys/ca.crt  
cert /opt/etc/openvpn/keys/server.crt  
key /opt/etc/openvpn/keys/server.key  
# route  
push "route 192.168.0.0 255.255.255.0"

client.conf

# Connect to QNAP OpenVPN Server 
proto udp
dev tun
tls-client
pull
# set mtu, if necessary
; tun-mtu xyz
#
resolv-retry infinite
nobind
persist-key
persist-tun
# test new in 2.1
remote-cert-tls server
#
comp-lzo

ca "ca.crt"
cert "client.crt"
key "client.key"
remote my.dyndns.com 1194

I'm little bit confused about "route...", "push route...", "server..."
Which option should point to which ip-address?

Feels like I'm missing something...

Thanks in advance!

share|improve this question

migrated from serverfault.com Apr 20 '11 at 9:04

This question came from our site for professional system and network administrators.

add comment

1 Answer 1

up vote 1 down vote accepted

To give you a short answer: The machine you are trying to reach can't answer your request, because it tries to send it trough its default gateway (your router). Try putting a static route in your router and it will work.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.