LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-06-2009, 12:33 PM   #1
pawan_lal
Member
 
Registered: Dec 2006
Posts: 33

Rep: Reputation: 15
Not able to connect client with openvpn


hi

i had configured openvpn in ubuntu 8.04 lts.



-In my office no firewall is there

-done port forwarding in router (1194 udp)

-Removed iptables (apt-get remove iptables)



now when i am connecting vpn from windows machine i get this error



Connection reset by peer (WSAECONNRESET) (code=10054)



these r server.conf and client.conf



Server.conf#local 192.168.1.107
port 1194
proto udp
dev tun

ca /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/ca.crt
cert /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.crt
key /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/server.key # This file should be kept secret
dh /usr/share/doc/openvpn/examples/easy-rsa/2.0/keys/dh1024.pem

server 10.8.0.0 255.255.255.0

ifconfig-pool-persist ipp.txt

push "route 192.168.15.0 255.255.255.0"

client-to-client
#push "route ADD 192.168.1.0 MASK 255.255.255.0 10.8.0.1"

keepalive 10 120

user nobody


persist-key


Client.conf

client
float
dev tun
proto udp

remote ipaddress 1194

resolv-retry infinite

nobind

persist-key

persist-tun

ca "C:\\Program Files\\OpenVPN\\config\\oss\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\oss\\client1.crt"
key "C:\\Program Files\\OpenVPN\\config\\oss\\client1.key"

ns-cert-type server

verb 3
mute 20

any help will be highly appreciated
 
Old 12-08-2009, 04:39 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
What errors do you get when you attempt to connect (Post the last 25 lines or so)?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
OpenVPN client from terminal baltazar3 Linux - Networking 2 11-11-2009 07:49 PM
openvpn bridge client-to-client and iptables zashone Linux - Networking 0 02-24-2009 09:40 AM
OpenVPN Client esaym Linux - Networking 3 11-11-2008 05:05 PM
Openvpn client to client routing question soup Linux - Networking 0 02-16-2006 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration