LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-24-2009, 08:04 PM   #1
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Rep: Reputation: 30
openVPN - not able to talk internally


I have openVPN setup in my network which went fine and clients were able to connect.

However a few issues:
-Only the first ip (in the range) for some reason is being given out. The range is from 10.10.1.10 to 10.10.1.50 but only 10.10.1.10 is being given out to clients which creates "IP Conflict" errors and also disconnects the other client who has this same IP.

All the routes has been setup in the core router but still the vpn's ip subnet would not talk to others in the internal network.

Here's my server.conf:
mode server
tls-server
#local 10.10.1.2
port 1194
proto udp
persist-key
persist-tun
#bridging directive
dev tap0 ## If you need multiple tap devices, add them here
up "/etc/openvpn/up.sh br0"
down "/etc/openvpn/down.sh br0"
persist-key
persist-tun
###Certificates and encryption
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
tls-auth ta.key 0 # This file is secret
cipher BF-CBC # Blowfish (default)
comp-lzo
###DHCP INFO
ifconfig-pool-persist ipp.txt
server-bridge 10.10.1.2 255.255.255.0 10.10.1.10 10.10.1.50
push "route 10.10.1.0 255.255.255.0"
push "route 10.10.10.0 255.255.255.0"
push "route 10.10.13.0 255.255.255.0"
push "dhcp-option DNS 10.10.10.25"
push "dhcp-option DOMAIN csaa.com"

Please someone kindly advise.

Cheers,
DB
 
Old 09-25-2009, 08:17 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Well first thing is, is this a routed network or a bridged network, your config says is bridged but your statement above it implies you are looking for a routed network. That aside, you don't need to push the route to your bridged netwrok if it is bridged, on the client side it will know how to route to it because the client thinks it is connected physically to the VPN network. I also believe you need to enable the clien to client option in the server config to let computer talk to eachother, otherwise clients will only be able to talk to the server and not talk to other clients or computer physically on the network. As far as the dhcpl leases go, I don't know what to say. If this is a bridged network and you have a dhcp server on it you could enable the dhcp passthrough option and let that hand out the leases.
 
Old 09-28-2009, 12:22 PM   #3
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by scheidel21 View Post
Well first thing is, is this a routed network or a bridged network, your config says is bridged but your statement above it implies you are looking for a routed network. That aside, you don't need to push the route to your bridged netwrok if it is bridged, on the client side it will know how to route to it because the client thinks it is connected physically to the VPN network. I also believe you need to enable the clien to client option in the server config to let computer talk to eachother, otherwise clients will only be able to talk to the server and not talk to other clients or computer physically on the network. As far as the dhcpl leases go, I don't know what to say. If this is a bridged network and you have a dhcp server on it you could enable the dhcp passthrough option and let that hand out the leases.
Sorry for the wording, this is actually a bridged network for my openVPN. I have removed the push routes in my config file and also configured client-to-client. However still doesnt route. Any idea what else I might be missing?

Cheers,
DB
 
  


Reply

Tags
openvpn



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 Question : connecting 5-6 comps with OpenVPN duryodhan Linux - Networking 7 02-15-2007 10:28 PM
Cant ping internally wazza4610 Linux - Networking 2 08-10-2005 07:27 AM
talk talk daemon configuration ananthkrk Red Hat 1 10-16-2004 11:45 AM
why cannot "talk" to others,since mesg is yes and disable = no(in /etc/xinetd.c/talk) whepin Linux - Newbie 0 12-31-2001 02:04 AM

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

All times are GMT -5. The time now is 09:33 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