LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

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


Hey,

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 ( company.com ). 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,
alpha_hack
 
Old 10-05-2009, 09:25 PM   #2
AsusDave
Member
 
Registered: Jul 2008
Distribution: Debian, Ubuntu 10.04
Posts: 151

Rep: Reputation: 34
Well...

If you are working on their main firewall/router, allowing 192.168.0.0/16 (assuming they are using 192.... scheme) on the internal interface will allow all subnets from 192.168.0.0 to 192.168.255.255 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.

HTH
Dave
 
  


Reply


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


All times are GMT -5. The time now is 07:58 AM.

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