Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


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

Rep: Reputation: 20
Arrow firewall application needed for gateway server


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:

each of these are in their own internal subnet: => =>

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;
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,

Old 08-18-2011, 07:51 AM   #2
Senior Member
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 779Reputation: 779Reputation: 779Reputation: 779Reputation: 779Reputation: 779Reputation: 779
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
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 130

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?


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 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 > Forums > Linux Forums > Linux - Security

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration