Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-05-2009, 03:58 PM   #1
Registered: Jul 2007
Location: Sofia, Bulgaria
Distribution: Slackware 13.1x86_64
Posts: 75

Rep: Reputation: 15
iptables to forward connections from a host


I'm having this problem:
My brother's working in a company that has dozens of IP's and subnets. They all are under one hostname ( ). I want to be able to allow and forward connections from that host because I'm not available to see all of the IPs that the domain has and they are like 50 subnets

I can't manage to find a tutorial for that. Is there anybody here that could help me with that ?

Thanks in advance,
Old 10-05-2009, 10:25 PM   #2
Registered: Jul 2008
Distribution: Debian, Ubuntu 10.04
Posts: 151

Rep: Reputation: 34

If you are working on their main firewall/router, allowing (assuming they are using 192.... scheme) on the internal interface will allow all subnets from to to follow whatever rule you set up in iptables.

But, I assume if all these subnets are already set up, they probably have this in place already, thus negating the need to re-invent the wheel.

If you are attempting to allow all these subnets to access something external from their network, they probably have masquerading in their router, thus making all internal traffic appear to come from one public IP address. It should be quite simple to allow this one public IP address to be forwarded to wherever you need.



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
Very low network performance in host-to-host connections ivanatora Linux - Networking 2 01-28-2009 04:00 PM
Forward port 80 connections to a vmware-based webserver? MheAd Linux - Server 5 12-31-2008 05:59 AM
How can I forward ports with IPtables? I want to forward 80 to 8080 abefroman Linux - Networking 3 05-23-2008 11:05 AM
using IPTABLES to forward connections with 2 NIC's sonicthehedgehog Linux - Networking 5 01-22-2007 05:54 PM
FC4 forward specific incoming connections Letheli Linux - Networking 4 12-27-2005 05:36 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:33 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
Open Source Consulting | Domain Registration