Help config problem !

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
maun
OpenVpn Newbie
Posts: 2
Joined: Sat Sep 11, 2010 1:55 pm

Help config problem !

Post by maun » Sat Sep 11, 2010 2:00 pm

hi all !

I've install openvpn on a debian vps. i've an error on openvpn log :

Code: Select all

Sat Sep 11 15:56:09 2010 us=85709 TUN READ [185]
Sat Sep 11 15:56:09 2010 us=85868 UDPv4 WRITE [221] to 92.243.21.*:1194: P_DATA_V1 kid=0 DATA len=220
Sat Sep 11 15:56:12 2010 us=122256 UDPv4 READ [53] from 92.243.21.*:1194: P_DATA_V1 kid=0 DATA len=52
I think taht the problem is the route but i don't know very well how its works. some one can help me?rne ?



Server.conf :

Code: Select all

port 1194
proto udp
dev tun
ca ca.crt
cert LeServeurVPN.crt
key LeServeurVPN.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway "
push "dhcp-option DNS 10.8.0.1"
keepalive 10 120
comp-lzo
user openvpn
group openvpn
persist-key
persist-tun
status openvpn-status.log
log openvpn.log

client.conf

Code: Select all

client
dev tun
proto udp
remote ******** 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert Client01.crt
key Client01.key
comp-lzo
verb 3
routes :

Code: Select all

maun:/etc/openvpn# route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
92.243.20.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
0.0.0.0 92.243.23.254 0.0.0.0 UG 0 0 0 eth0
ifconfig :

Code: Select all

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet adr:10.8.0.1 P-t-P:10.8.0.2 Masque:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Thanks for your help. Maun

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Help config problem !

Post by krzee » Mon Sep 13, 2010 5:10 am

you have not pasted an error

maun
OpenVpn Newbie
Posts: 2
Joined: Sat Sep 11, 2010 1:55 pm

Re: Help config problem !

Post by maun » Mon Sep 13, 2010 8:31 am

Sorry i thought it was an error. the error is that my ip don't change when i connect thourgh the vpn.

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Help config problem !

Post by krzee » Tue Oct 05, 2010 9:16 am

your server must NAT the vpn subnet... and have ip forwarding enabled

Post Reply