VPN on an online server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers VPN on an online server
# 1  
Old 02-29-2012
VPN on an online server

Hi there,

Believe it or not, the word VPN doesn't give any search result in the forum.

I'm trying to get started with VPN.
I'm currently in the process of setting up a server.
I found a lot of howtos on the web.

There's still one thing that I'm not sure of.
My plan is to setup the VPN on an online server.
I mean a dedicated server hosted at OVH with a public IP like 91.121.101.109.
Then, I want several servers, hosted in various offices (behind internet boxes) to connect to the main server and thus becoming accessible to one each other.

I've already prepared every office to be in a different network range (10.0.1.X, 10.0.2.X, 10.0.3.X, etc.) to avoid conflicts.
But then how can I assign the address say 10.0.0.1 to the main server given that it only has one NIC with IP 91.121.101.109.

Thanks for your help
Santiago
# 2  
Old 02-29-2012
Depends on the VPN.

Also depends on the kind of server.

You've given no details.

We use OpenVPN at our office to join Linux servers together over a VPN. It uses a special driver called the "universal tun/tap interface" which acts like a virtual network card that's completely software controlled. Encrypted VPN traffic received over port 1194 on the ordinary network is converted into incoming network traffic on the tun0 interface, and vice versa, with the OpenVPN daemon converting between the two.

If you want the VPN to connect to real IPs on the other end I think this would be OpenVPN's bridged mode, which generally isn't recommended and usually isn't used. Usually the traffic is completely virtual.
# 3  
Old 02-29-2012
Hi Corona688,

That's right, I didn't give much details. Actualy, I'm a real beginner in the subject and I don't even know what I'm talking about. But I'm reading a lot and learning fast ;o)

I indeed plan to use OpenVPN. I also read about the "tun/tap" virtual interface.
If I understand well, I can give any address in the following directives in /etc/pptpd.conf because it's all virtual and not related to the physical NIC :
Code:
# cat /etc/pptpd.conf
...
localip 10.5.1.3
remoteip   10.5.1.241-246
...

I'm currently reading this howto about How to setup a dedicated PPTP VPN Server at your home office or main office. Am I going in the right direction?

Thanks for your help.
Santiago
# 4  
Old 02-29-2012
pptpd is not openvpn. openvpn is openvpn, pptpd is pptpd. I think you're reading the wrong tutorial.
# 5  
Old 03-01-2012
If you use the How-To on the OpenVPN website, they do make things quite easy, just make sure you set it up in Routed mode.

2 things to watch for:

In the OpenVPN server config file, you need to enable "client-to-client" and make sure you push routes to all clients.

In the kernel of the server, you need to enable IPv4 forwarding.

Also make sure you open the Firewall port 1194 on the server.

Last edited by spynappels; 03-01-2012 at 12:59 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Choosing VPN server based on server response times

Hello all, I am using the VPN provider Private Internet Access. I am using the Raspberry Pi 4 with 4GB of RAM, performance on this upgraded board is great. Anyways I am connecting to its service using systemd's openvpn-client @ US_New_York_City.service I wonder if I can create a... (5 Replies)
Discussion started by: haloslayer255
5 Replies

2. IP Networking

VPN Server & Client

First of all, hello. I have a problem installing a vpn server and client. My server is a computer running windows 7, and windows, running a virtual machine running debian. In the debian system, I've the vpn server installed (SoftEther VPN Server) The problems come when I try to connect to... (1 Reply)
Discussion started by: Blues23
1 Replies

3. IP Networking

Can Solaris VPN to a Server without breaking it's other networking rules !?

Hi All, Actually a very basic question this one. I've got a Solaris 10 x86 server box on a network. There are a group of other servers I need to connect to from it, but via a VPN connection. If I install a vpn client on my solaris box, can I configure the VPN connection so it only routes certain... (1 Reply)
Discussion started by: mikecouk
1 Replies

4. IP Networking

Cisco VPN server and client - connection drop

I have a Cisco 1841 router configured as Easy VPN Server. Here is the configuration of the router: Cisco# Cisco#show running-config Building configuration... Current configura - Pastebin.com I have a Centos 5.7 server with installed Cisco VPN client for Linux. The client successfully... (0 Replies)
Discussion started by: rcbandit
0 Replies

5. AIX

Help Me - AIX server connect to a VPN network

Hi, I have a task requested by my boss to create a script to enable a server to connect to a vpn network and then to connect to another server to upload some data... How can I connect to a vpn network from AIX server? via telnet? ssh? I have tried to google but mostly the answers are... (1 Reply)
Discussion started by: mushr00m
1 Replies

6. UNIX for Dummies Questions & Answers

Need help explaining how to use a VPN on a UNIX server with a Mac OS

I have gotten a gig to teach someone how to use a VPN client for a UNIX server on a MAC os. The problem is I have never used UNIX, dont mess with VPN's (my dad has a VPN that I have used a couple of times). I'm currently taking a crash course on UNIX but I was wondering if anyone could help me with... (0 Replies)
Discussion started by: psycopuppy
0 Replies

7. Solaris

Cisco IOS VPN server IKE

How do I tell if Cisco IOS VPN server IKE is running on my solaris 10 system (1 Reply)
Discussion started by: pgsanders
1 Replies

8. Solaris

Solaris 10 - vpn server

I would like to setup my solaris 10 x86 system as a vpn server. I can't seem to find any good links on setting it up. Do you guys have some links that could walk me thru on setting up the vpn server so that windows clients can connect to it? (4 Replies)
Discussion started by: kungpow
4 Replies
Login or Register to Ask a Question