LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-16-2008, 03:08 AM   #1
Penn
LQ Newbie
 
Registered: Apr 2008
Posts: 25

Rep: Reputation: 15
OpenVPN Tun/Tap error


Hi,, Ive just installed openvpn on a debian server. When i /etc/ini.d/openvpn start......It gives me the following error:

Starting virtual private network daemon: server(FAILED)

These are the logs "/var/log/openvpn.log" :

Thu Oct 16 11:10:23 2008[/B] OpenVPN 2.0.9 i486-pc-linux-gnu [SSL] [LZO] [EPOLL] built on Sep 20 2007
Thu Oct 16 11:10:23 2008 Diffie-Hellman initialized with 1024 bit key
Thu Oct 16 11:10:23 2008 TLS-Auth MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Thu Oct 16 11:10:23 2008 TCP/UDP: Socket bind failed on local address 192.168.5.220:1194: Cannot assign requested address
Thu Oct 16 11:10:23 2008 Exiting
 
Old 10-16-2008, 09:42 PM   #2
uncle_philip
Member
 
Registered: Apr 2008
Location: sydney
Distribution: centos5.2
Posts: 50

Rep: Reputation: 15
your errror message : cannot assign requested address
make sure your lan-ip must be in diff. subnet on your openvpn-client.ip
and, port 1194 must be opened.
 
Old 10-16-2008, 11:55 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you sure it isn't already running? Check

netstat -nalp | grep :1194

Also, show us your config using

sed '/^[\#,\;]/d' server.conf

And tell u what NICs you have, IPs, etc.
 
Old 10-17-2008, 04:49 AM   #4
Penn
LQ Newbie
 
Registered: Apr 2008
Posts: 25

Original Poster
Rep: Reputation: 15
this is the config.
port 1194
proto udp
dev tun
duplicate-cn
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir ccd
push "dhcp-option WINS 10.8.0.1"
client-to-client
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3

I have normal 32-bit 10/100 NIC and IP's are 192.168.5.0/200
 
Old 10-17-2008, 02:59 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
And the netstat output?
 
Old 10-14-2010, 02:35 PM   #6
yiun
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
I had the same problem and could solve it by removing the line "local xxx.xxx.xxx.xxx." out of the server.conf.

See also:
https://bugs.launchpad.net/ubuntu/+s...pn/+bug/516016
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
tun tap query karan84 Linux - Networking 1 03-26-2007 11:29 AM
tun tap doubt karan84 Linux - Networking 2 01-10-2007 01:43 AM
Tun/Tap issue minasafwat Linux - Kernel 0 11-14-2006 01:11 AM
Tun/Tap getting started? blavo Linux - Newbie 0 02-14-2006 10:29 AM
how to allow tun/tap device in firewall? efm Linux - Networking 12 07-22-2005 04:47 AM

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

All times are GMT -5. The time now is 02:37 PM.

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