shiranp
Hi,
I have a VPNServer in (IP:192.168.2.10 D.G 102.168.2.5 VPN IP: 10.8.0.1).
the server is connected to router which has client on it (IP1 : 192.168.2.5 IPVPN: 10.8.0.6 IP2: 172.168.2.10 )
to the port of 172.168.2.10 i connected a machine with the IP 172.168.2.11 DG 172.168.1.10)
without open vpn every thing works fine with pings and all, With PopenVPN i've connection with openVPN server to the OpenVPNclient - No problem.
But i want the machine( with no open vpn) to connect the server through the OPENVPN client i get the infomes multi error of unknowing the IP of 172.168.1.10.
I have read that i should use Client-Config-Dir but i dont know how and what is a ccd file. I've tried a simple text file but it still dont work
port 1194
proto udp
dev tun
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\server.crt"
key "C:\\Program Files (x86)\\OpenVPN\\config\\server.key" #
dh "C:\\Program Files (x86)\\OpenVPN\\config\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
ifconfig 10.8.0.1 255.255.255.0
route 172.168.2.0 255.255.255.0
client-config-dir ccd
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 6
##############I created atextfile named client1.txt with the iroute command (iroute172.168.2.0 255.255.255.0
and the client:
client
dev tun
;dev-node MyTap
proto udp
remote 192.168.2.10 1194
resolv-retry infinite
nobind
persist-key
persist-tun
# file can be used for all clients.
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\client1.crt"
key "C:\\Program Files (x86)\\OpenVPN\\config\\client1.key"
ns-cert-type server
comp-lzo
verb 3
shiranp
Hi as you can see ive already implemented the config after reading this post and many other. I suspect that the ccd file is not read by the server.. Is it asimple text file using the clientcommon name cm.txt?
Another thing if the client is at the same subnet as server and the clienthas another segment of the machine with no open vpn and client set as arouter is it aload. Idont know what im missing...
shiranp
Ok but i think that if its not a txt file what type is it? And how i create it on windows?
MatVPN
Saving a file without extension in Notepad is a bit tricky:
Use "Save as"
select "All Files *.*"
As filename enter "abc." without dot at the end, txt will be added.
Or continue as you did before an remove extension using the explorer
Mathias
shiranp
What do you now its working.. how should i know i dont need a prefix 😃
thank you all.
I have anothe question about binding.. opnening another post.
thanks again..