Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > Routing webtraffic from subnet to subnet via vpn
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 04-11-2008   #1 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 8
Routing webtraffic from subnet to subnet via vpn

Hi

I have a 2 networks which are linked via vpn using openvpn.

We have 2 types of isp accounts, national traffic and international traffic.
The national traffic account will only allow us to access local domains.
One of the network is using a national traffic account and the second network is using international traffic account.
I am trying to route requests made for internaional sites to be routed to the gateway which has the internatioanl ISP account, thus allowing users to access international sites from the national only subnet.

Here is the network topology

NETWORK A
IP :192.168.1.0/24
GW :192.168.1.1 (linksys router)
VPN BOX :192.168.1.110 (centos)
VPN TUN :10.8.0.1
International Account


NETWORK B
IP :192.168.5.0/24
GW :192.168.5.1 (linksys router)
VPN BOX :192.168.5.111 (centos)
VPN TUN :10.8.0.6
National Account

I know about the redirect-gateway feature in openvpn, however I want to solve this problem without using that code.

The VPN BOXES firewalls are turn off and IPFORWORDING is set to 1.

Every client in both subnets can ping either gateway of each subnet.
The goal is to add routing codes to get Networks B web traffic to go through Networks A gateway.

I now need help routing the web traffic to networks A gateway. I am a newbie to Linux and routing.

I already added the static routes of each subnet into the routers to allow access.

here is my routing table for networks A router
Destination IP Address Subnet Mask Default Gateway Hop Count Interface
196.209.1.1 255.255.255.255 * 40 ppp0
196.209.1.1 255.255.255.255 * 41 ipsec0
168.X.X.X 255.255.255.255 196.209.1.1 40 ppp0
196.14.X.X 255.255.255.255 196.209.1.1 40 ppp0
196.209.X.X 255.255.255.255 * 40 ppp0
196.209.X.X 255.255.255.255 * 41 ipsec0
192.168.5.0 255.255.255.0 192.168.1.110 15 ixp0

10.8.0.0 255.255.255.0 192.168.1.110 15 ixp0
192.168.1.0 255.255.255.0 * 50 ixp0
default 0.0.0.0 196.209.1.1 40 ppp0

any help please
zmahomedy is offline  

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 03:05 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2