| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
10-27-2012, 02:46 PM
|
#1
|
|
LQ Newbie
Registered: Nov 2004
Posts: 7
Rep:
|
Resolve VPN client hostnames using Bind
I have a number of VPN clients connecting to a Ubuntu 12.04 server (This was set up using Zentyal 3.0). I need to connect many more.
I would like to be able to address the clients from the server by hostname.
The Openvpn server gives all the clients IPs in the 196.168.160.0/24 range. The Server running Openvpn has a 192.168.1.20 address.
The DNS server is up and running but it does not resolve the host names of the clients on the VPN.
How can I set up the DNS on the server so that I can ping, ssh etc., and connect to the Clients by hostname, from the server, rather than by IP address.
Thanks,
Jodel
|
|
|
|
10-27-2012, 07:34 PM
|
#2
|
|
Member
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 605
|
Do you just want to be able to use generic names like 'host001', 'host002', etc, or do you want specific host names for each machine? The later is not going to be possible unless you're assigning the same IP to the same machine every time.
Are you asking how to set up BIND in general or something more specialized to this situation? Please clarify.
|
|
|
|
10-28-2012, 02:45 AM
|
#3
|
|
LQ Newbie
Registered: Nov 2004
Posts: 7
Original Poster
Rep:
|
Thanks for your reply. I have Bind set up and working as a caching dns server for all the machines on the local net 192.168.0/24.
The external machines that connect via Openvpn are all linux machines with hostnames.
They connect to Openvpn, but the same machine could come from a different external ip each time it connects
Openpenvpn assigns them ip numbers. 192.168.160.2, 3, 4, 5, etc on the basis of order of connection and next available number. As the external could be .5 the first connection and .7 the next time, is there any way of linking the actual host name of the external machine to the ip allocated by Bind such that I can for example ssh to the client from the server on the basis of the clients host name?
Hope I have made the question clearer?
Jodel
|
|
|
|
10-28-2012, 03:10 AM
|
#4
|
|
LQ Newbie
Registered: Nov 2004
Posts: 7
Original Poster
Rep:
|
Just another thought. If Ovenvpn could allocate the same ip each time to the same connection name this would resolve the problem. Can that be done?
Jodel
|
|
|
|
10-28-2012, 01:44 PM
|
#5
|
|
Member
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 605
|
Quote:
Originally Posted by Jodel
Just another thought. If Ovenvpn could allocate the same ip each time to the same connection name this would resolve the problem. Can that be done?
Jodel
|
http://openvpn.net/index.php/open-so...to.html#policy
It gets a little complicated, but OpenVPN can do this.
You'll identify each machine though the way it authenticates, since they could be coming from different IP addresses at different times.
Once the IPs are only being assigned to specific machines, you can set up a zone file for the subnet and have your desired result. (Don't forget reverse DNS.)
|
|
|
|
10-28-2012, 05:50 PM
|
#6
|
|
LQ Newbie
Registered: Nov 2004
Posts: 7
Original Poster
Rep:
|
Thanks for that. I will try that approach.
Jodel
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:28 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
|
|