LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 08-18-2011, 06:26 AM   #1
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 129

Rep: Reputation: 20
Arrow 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
 
Old 08-18-2011, 07:51 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
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.
 
Old 08-18-2011, 11:11 AM   #3
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 129

Original Poster
Rep: Reputation: 20
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?
 
  


Reply

Tags
firewall, routing, traffic


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
gateway/firewall server PCLinuxOS beejournal Linux - Networking 10 04-04-2008 11:09 PM
New to Linux, need to setup a firewall/gateway server. ChildOfThunder LinuxQuestions.org Member Intro 1 10-19-2007 08:19 AM
Firewall/Gateway + Server Enrickey Linux - Newbie 14 05-18-2006 04:23 PM
Debian as a gateway/server/firewall powadha Debian 2 07-14-2004 12:32 PM
gateway(NAT),firewall,server,DMZ andjules Linux - Newbie 2 11-22-2002 08:11 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration