LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iptables to forward connections from a host (https://www.linuxquestions.org/questions/linux-networking-3/iptables-to-forward-connections-from-a-host-759877/)

alpha_hack 10-05-2009 02:58 PM

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

AsusDave 10-05-2009 09:25 PM

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


All times are GMT -5. The time now is 08:49 AM.