Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| 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. |
|
 |
08-18-2011, 06:26 AM
|
#1
|
|
Member
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 127
Rep:
|
firewall application needed for gateway server
hello
i have this idea in my head - but i am not sure if the concept is correct neither if there is a tool that does the job
i have a small network that holds servers for 2 domains:
dev.company.net
company.com
each of these are in their own internal subnet:
dev.company.net => 10.2.1.0/24
company.com => 10.10.0.0/24
what i would like to be able to do: is to redirect the internet traffic through our gateway (linux) accordingly.
so if a user is looking for a webserver on dev.company.net;
just as well a VPN client will.
at the same time similar traffic will exist for the other domain.
so can i do that? i have used webmin in the past to setup iptables but i can not recall on how to setup iptables to redirect traffic depending on which domain is requested - only by their port/services.
please send your suggestions in.
thanks guys,
Nicolas
|
|
|
|
08-18-2011, 07:51 AM
|
#2
|
|
Senior Member
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,047
|
It sounds like the idea will work and I believe you are looking for router functionality, which will be based upon IP address, not name. If you can get the routing to work per IP address using the NAT functions of iptables you are well on your way. The second part, based upon domain, will be a function of your DNS and zones, rather than iptables. You will need to configure the authoritative DNS for your LAN to resolve these names into the appropriate address. Then with the routing configured properly, you should be able to point your browser to either site and go to the correct one.
|
|
|
|
08-18-2011, 11:11 AM
|
#3
|
|
Member
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 127
Original Poster
Rep:
|
thanks Noway2
i though that much myself. but i thought that should have been a product out there that would do this.
anyone else knows of a product that would do this?
|
|
|
|
| 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 03:03 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
|
|