lan server can't connect to client or lan client

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
taufiq
OpenVpn Newbie
Posts: 1
Joined: Thu Dec 29, 2011 3:37 am

lan server can't connect to client or lan client

Post by taufiq » Thu Dec 29, 2011 3:54 am

Hi there,

First off, I've been having this problem on lan to lan configuration to get a fully functional OpenVPN server.
i've succesfully connected vpnserver and vpnclient. that's include ping from vpnserver to lan client, and lan client to lan server. But, surprisingly, lan server can't ping to vpnclient and lan client.

here is my configuration:

lan server : 172.18.129.0/24
lan client : 192.168.10.0/24
ip vpn server : 172.18.129.233 & 1.2.3.4
ip vpn client : 192.168.10.242 & 1.2.3.5
default gateway : 172.18.129.1 (router ) ==> every lan server pc has default gateway to this router
ipforwarding has been enabled on both vpn server and client
no firewall has been set
vpn server and vpn client both windows7
route to 192.168.10.0/24 has been added to router but still pc on lan server can't find vpnclient and lan client

## server.ovpn ##
port 1194
proto udp
dev tun
ca ca.crt
cert itsoke.crt
key itsoke.key
dh dh1024.pem
client-config-dir "c:\\program files\\openvpn\\config\\ccd"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 172.18.129.0 255.255.255.0"
route 192.168.10.0 255.255.255.0
keepalive 10 120
client-to-client
comp-lzo
max-clients 4
persist-key
persist-tun
status openvpn-status.log
verb 3
route-method exe
route-delay 2


## client.ovpn ##
client
proto udp
dev tun
remote ipvpnserver 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert coba.crt
key coba.key
comp-lzo
verb 3

ccd: # for client
ifconfig-push 10.8.0.10 10.8.0.9
iroute 192.168.10.0 255.255.255.0

i wonder what is wrong? can some one help ? thx

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: lan server can't connect to client or lan client

Post by Mimiko » Thu Dec 29, 2011 6:21 am

Read this tutorial: topic9465.html

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: lan server can't connect to client or lan client

Post by maikcat » Thu Dec 29, 2011 11:22 am

did you enable ip forwarding?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply