DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-01-18 23:32:14

dlu01
New member
Registered: 2011-01-18
Posts: 3

OpenVPN DNS323 need help - can't ping local machines on server side

I have read many posts and the most relavent thread:  http://dns323.kood.org/forum/viewtopic.php?id=5210
but still can't get it to work.  I downloaded DNS323 openvpn binaries from #64:  http://dns323.kood.org/forum/viewtopic. … 95&p=3

I'm successfully created VPN connection but client VPN machine can only ping server VPN (dns323).

Here's my network configuration:

DNS323 side router IP:  192.168.50.1
DNS323 local IP:  192.168.50.155
DNS323 server VPN IP:  10.10.0.1

Laptop local IP:  192.168.0.101
Laptop client VPN IP:  10.10.0.6

Went connect to VPN, from my laptop I can ping 10.10.0.1 and 192.168.50.155, but can not ping 192.168.50.1.

Server.ovpn (removed other details):
===============================
local 192.168.50.155
port 1194  #forward this port on your router
proto udp
dev tun0
tls-server
server 10.10.0.0 255.255.255.0
push "route 192.168.50.0 255.255.255.0"
push "dhcp-option DNS 192.168.50.1"
push "redirect-gateway"
===============================


Client.ovpn (removed other details):
===============================
client
remote xxx.xxx.xxx.xxx 1194
dev tun
proto udp
resolv-retry infinite
===============================


Run openvpn on DNS323 with following cmds:
===============================
echo "1" > /proc/sys/net/ipv4/ip_forward
mkdir /dev/net
mknod /dev/net/tun c 10 200
insmod /ffp/lib/openvpn/tun.ko

/ffp/sbin/openvpn --config /ffp/etc/openvpn/server.conf
===============================


On my dns323 side router, I added a static route:
Dest IP          Mask                     Gateway
10.10.0.0       255.255.255.0     192.168.50.155


DNS323 route table when OpenVPN server is running looks like this:
===============================
root@DNS323:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.10.0.2       *               255.255.255.255 UH    0      0        0 tun0
192.168.50.0    *               255.255.255.0   U     0      0        0 egiga0
10.10.0.0       10.10.0.2       255.255.255.0   UG    0      0        0 tun0
224.0.0.0       *               255.0.0.0       U     0      0        0 egiga0
default         192.168.50.1    0.0.0.0         UG    0      0        0 egiga0
===============================


Thanks,

Daniel

Offline

 

#2 2011-01-19 19:37:45

stefanth
Member
Registered: 2010-12-14
Posts: 63

Re: OpenVPN DNS323 need help - can't ping local machines on server side

I am not an OpenVPN expert but  my server file differs from you, mine looks like this

Code:

mode server
tls-server

port 1194
proto udp
dev tun

mssfix 1400

#Certificates
ca /etc/easy-rsa/keys/ca.crt
cert /etc/easy-rsa/keys/mikla.dyndns.org.crt
key /etc/easy-rsa/keys/mikla.dyndns.org.key
dh /etc/easy-rsa/keys/dh1024.pem

server 10.0.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.1.1"

persist-key
persist-tun

max-clients 3

#comp-lzo

verb 3
keepalive 10 120

Also, you have "dev tun0" in the server file but "dev tun" on the client.
I do not have the line "local 192.168.50.155" in mine.

I can ping/ftp/ssh/"open link" to other devices on my home network.
DLNA will not work because broadcast messages is not going over a "tun" link, you need a bridge for that

Also, try to ask your question in
https://forums.openvpn.net/

Also, here is another guide, it is for a router but in principle it should be the same (I placed my OpenVPN on the router instead)
http://wiki.openwrt.org/inbox/vpn.howto

/Stefan

Last edited by stefanth (2011-01-26 08:22:53)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB