LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2011, 11:17 AM   #1
sent2020
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
Connect VPN in gateway


Hello all,
We are using Linux machine as a gateway server to connect our local network to wan. We use pptp vpn to connect our remote customers network, is it possible to connect VPN to the gateway and make local network to connect through it? so that there is no need to connect vpn in every local client.
Please share your views.
 
Old 08-03-2011, 08:19 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,728

Rep: Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171
Quote:
Originally Posted by sent2020 View Post
Hello all,
We are using Linux machine as a gateway server to connect our local network to wan. We use pptp vpn to connect our remote customers network, is it possible to connect VPN to the gateway and make local network to connect through it? so that there is no need to connect vpn in every local client.
Please share your views.
Yes, that's very doable. Since you're already making the site-to-site connection via VPN, all you've really got to do is add a network route on either side. You've already done the hard work, and I'm going to assume that you've got Linux boxes on BOTH sides of things.

So sitea will have (for example) a network of 192.168.100.0 and siteb will have 192.168.200.0. On the VPN box at sitea, add a network route to 192.168.200.0 using the gateway of your VPN address. Reverse the process at siteb. That way, if someone at sitea does a "ping 192.168.200.33", the Linux VPN box will route it through the VPN tunnel, taking care of the NAT'ing etc., to make it work.

EDIT: One more thing: you will have to enable IP forwarding on both VPN gateways, too.

Last edited by TB0ne; 08-03-2011 at 01:21 PM.
 
1 members found this post helpful.
Old 08-03-2011, 11:24 PM   #3
sent2020
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you.

On the remote site VPN, we are not having any access and will not able to ask any changes to do. In this case is it possible by making changes in local network gateway itself.
 
Old 08-04-2011, 09:42 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,728

Rep: Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171Reputation: 8171
Quote:
Originally Posted by sent2020 View Post
Thank you.

On the remote site VPN, we are not having any access and will not able to ask any changes to do. In this case is it possible by making changes in local network gateway itself.
No. If you want it to go both ways, you have to configure both ends. Otherwise, you're stuck with what you have now.
 
  


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
Able to connect to default Gateway, Unable to connect to internet Dumb.Coder Linux - Newbie 11 04-14-2009 04:22 AM
vpn gateway saavik Linux - Security 0 11-29-2007 03:08 AM
why am i not able to connect to the vpn from linux gateway system? sravanth.svk Linux - Security 1 10-14-2006 03:43 AM
Linux VPN Software - How to Connect to a Windows VPN wfernley Linux - Software 2 02-07-2006 09:40 AM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 AM.

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