LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2006, 04:29 PM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
Router to corp intranet


This isn't really a linux question, but you guys are sharp, so maybe you have an answer!

I have a router that connects up to a corporate intranet that all the franchises can access. Its private IP of the ethernet interface is 10.27.164.238. My gateway is setup so if a workstation points their browser to a domain in a certain subnet, the gateway will pass the traffic off to that router. If I static NAT a public IP address to the ethernet interface of that router, is there anyway I can access the sites on the corporate intranet without modifing my gateway at home? I need a solution that would preferably work with Windows and Linux so IP Tables might be off the table.

Thanks!
 
Old 02-13-2006, 09:17 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Post

I'm not sure I got the question. You've got something that looks like this -

Code:
Work Lan

     10.27.164.x  
        |                                      |----Linux PC
        |------Router~~~~(wan)~~~~~~Gateway----|
Server--|    .238                              |----Windows PC
So you want to access the intranet on a server, and what is stopping you?
 
Old 02-15-2006, 02:39 PM   #3
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Sorry for the confusion. Here is the situation:


Work LAN (10.27.164.X) -------- NAT Device ------> Internet (via SBC T1)
|
|
L----------> Corporate intranet (via Corporate T1)

So if I configure a public IP to statically NAT to the local interface on the corporate intranet router (10.27.164.238) how can I get remote PCs to access sites out that coporate router?
 
Old 02-16-2006, 02:34 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
So, if I understand you correctly, the NAT hides the IP addresses on the corporate intranet from the outside world and maps them to a static IP (which is a very common practice).

This implies that any remote machine only sees 1 "external" IP address, namely the static IP address that is given by the NAT, which should be the IP address from the router that's doing the NAT.

Basically, the NAT will make any computer on the corporate LAN unreachable via it's own IP. So, you simply can't get to the server via it's IP on remote machines. Remote machines can only contact the public IP, which is routed to the appropriate machine by the NAT.

So, what you'll need to accomplish is:
-Either disable the "NAT" for the web server(s) you're trying to access. All machines accessible from remote machines should have their own public IP address. This however has serious security implications.
-Or configure your NAT/router to route all incoming traffic on port 80 to one particular web server. I don't think you can configure it to go to more than one web server, unless you apply some kind of load balancing or a kind of "backup" web server (that takes over from the primary when it fails).

A firewall maybe an appropriate solution to this issue too. This firewall will need to be on the corporate network (not on your remote Win/Linux machines) and will need to filter all incoming and outgoing traffic. The router will then have to route all incoming traffic to the firewall and the entire corporate LAN will need to use that same firewall for outgoing traffic.
 
Old 02-17-2006, 12:56 PM   #5
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Sorry for the confusion guys, I don't think I am explaining this well.

The work lan (10.27.164.X) has 2 routers, one has SBCs T1 out to the ordinary internet, and the other T1 comming in goes out the other router (10.27.164.238) to the corporate LAN. When you type in an address that resolves to a subnet on the corporate network, the firewall/NAT device (which is the gateway for all the PCs) will foward the traffic to 10.27.164.238 and out to the corp. LAN.

SO...

If I statically NAT 10.27.164.238 to a public IP such as MY.PUB.LIC.IP I could in theory program any old WRT54G at the remote location to say, OKAY, anything in XYZ subnet, hand it off to MY.PUB.LIC.IP. There are only 2 problems with that senario. 1. I want to reference the corporate sites by their FQDN, not by IP address, 2. I don't want to have to program a router (WRT54G for example) to make that routing decision because in a lot of cases, I won't have access to the router (if I am at a WiFi hotspot etc).
 
Old 02-17-2006, 05:08 PM   #6
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
If I understand your explanation correctly, you noticed that your router that connects to The Internet via SBC is the "default gateway" for the clients on that LAN. You then noticed that that router sends all requests for corporate LAN stuff to the router at 10.27.164.238 instead of out to The Internet. You now want to tell your home router to use 10.27.164.238 the same way, so it can "see" your corporate LAN? The problem is, everything 10.xxx.yyy.zzz behind the SBC router is a "private IP" address so any router on The Internet that you ask to send you there will just drop the request. If you somehow managed to open up a route to that network that you could get to from across The Internet, then potentially anyone else on The Internet could use it also. This would likely make whoever runs the corporate network just a little upset with you.

If you just want a way to access your corporate LAN from The Internet, the typical solution to this that many companies use is called VPN. My suggestion is that you check with whoever runs your corporate LAN and see if they have a VPN implimentation in place and if you can have your [laptop] set up with the VPN software and an account. I also suggest not trying to set up your own VPN or router (this is known as a rogue network connection, admins kinda frown on it.)
 
Old 02-17-2006, 11:20 PM   #7
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Okay, thanks for the info.
 
  


Reply



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
intranet aling linksys router how to cjae Linux - Networking 0 12-25-2005 12:00 AM
Distro recommendations for Dedicated Router + Firewall + Print Server + Intranet Web Netfreak Linux - Newbie 1 11-18-2004 11:02 AM
FTP behind router. Only Intranet works.. Mega Man X Linux - Networking 6 09-07-2004 07:05 PM
What makes an intranet an intranet? pembo13 Linux - Networking 3 06-21-2004 08:20 PM
Smoothwall 2.0 as an Internal Router between intranet segments wdatkinson Linux - Networking 3 03-06-2004 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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