Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| 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. |
|
 |
12-10-2008, 11:58 PM
|
#1
|
|
Member
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681
Rep: 
|
redirect traffic from restricted network
I have a restricted network segment where people connect via DHCP and they can only go to one internal website ( www.nms.org). I was wondering if it is possible that if they type any other website address (eg. www.slashdot.org) their traffic will be redirected to the internal website ( www.nms.org). At the moment if they type any other website address, their browser gets timed-out.
The internal website server acts as their DHCP, DNS forwarder (so they can resolve the name www.nms.org), and web.
I have configured my router such that any IP address from the restricted network segment should only be allowed to the IP address of the internal website and deny all other traffic.
Thanks for any suggestions.
|
|
|
|
12-11-2008, 01:38 AM
|
#2
|
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 652
Rep:
|
Is it possible to add a default entry to DNS, so that client requests defaults to www.nms.org? Or maybe you could set up a web proxy that redirect traffic to that site.
|
|
|
|
12-11-2008, 02:34 AM
|
#3
|
|
Member
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681
Original Poster
Rep: 
|
Quote:
Originally Posted by kenneho
Is it possible to add a default entry to DNS, so that client requests defaults to www.nms.org?
|
I think I know what you mean. But do I set this up in the primary DNS server? Or do I need to setup a separate DNS server for this network segment? What would the entry look like?
Quote:
Originally Posted by kenneho
Or maybe you could set up a web proxy that redirect traffic to that site.
|
Does this involve setting up a 3rd box? Is this an Apache proxy? What would the configuration look like?
Thanks.
|
|
|
|
12-11-2008, 06:31 PM
|
#4
|
|
Member
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 503
Rep: 
|
Perhaps the simplest would be to set the router to send all http traffic to the internal website. In this case it is easier to filter by protocol than IP. www-dot-nms-dot-org of course is an intent accessible parked page or were you just using it as an example?
|
|
|
|
12-12-2008, 01:40 AM
|
#5
|
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 652
Rep:
|
Quote:
Originally Posted by NyteOwl
Perhaps the simplest would be to set the router to send all http traffic to the internal website. In this case it is easier to filter by protocol than IP. www-dot-nms-dot-org of course is an intent accessible parked page or were you just using it as an example?
|
This seems like a good alternative to me a least.
|
|
|
|
12-12-2008, 01:43 AM
|
#6
|
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 652
Rep:
|
Quote:
Originally Posted by noir911
I think I know what you mean. But do I set this up in the primary DNS server? Or do I need to setup a separate DNS server for this network segment? What would the entry look like?
Does this involve setting up a 3rd box? Is this an Apache proxy? What would the configuration look like?
Thanks.
|
I'm not very into this stuff, so I don't know how you would set this up. But if your goal is simply to redirect all http traffic to a local machine, then I'd go for the firewall setting suggested by NyteOwl.
|
|
|
|
12-14-2008, 07:34 PM
|
#7
|
|
LQ Newbie
Registered: Apr 2006
Location: Poulsbo, WA
Distribution: Debian
Posts: 5
Rep:
|
The debian package "dsniff" provides utilities, among them one called dnsspoof which could give your webserver IP address for ALL queries. The problems this might cause for access to anything else on your network not withstanding, you would also have to configure your server to provide the same documents for ALL virtual hostnames that they could be requesting. If there are virtual host name servers running on your webserver it could be a real problem to do that. Just a thought...
|
|
|
|
| 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:49 AM.
|
|
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
|
|