Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-16-2008, 03:08 AM
|
#1
|
LQ Newbie
Registered: Apr 2008
Posts: 25
Rep:
|
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
|
|
|
10-16-2008, 09:42 PM
|
#2
|
Member
Registered: Apr 2008
Location: sydney
Distribution: centos5.2
Posts: 50
Rep:
|
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.
|
|
|
10-16-2008, 11:55 PM
|
#3
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
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.
|
|
|
10-17-2008, 04:49 AM
|
#4
|
LQ Newbie
Registered: Apr 2008
Posts: 25
Original Poster
Rep:
|
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
|
|
|
10-17-2008, 02:59 PM
|
#5
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
And the netstat output?
|
|
|
All times are GMT -5. The time now is 09:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|