Proxy, firewall, NAT, iptables, what??

Proxy, firewall, NAT, iptables, what??

Post by Donni » Thu, 06 Feb 2003 13:40:59



I am sure this has been asked a million times on this newsgroup, but I
scoured the internet looking for the information I need but I couldn't find
it. Not that I would even know the right information if I found it.

Obviously I am a linux newbie. Although I have spent several hours over the
past few weeks getting acquainted with it. Here's the question:

I have a cable modem that runs into an "uplink" port on a cheep 5 port 10mb
hub. Connecting to the hub I have 3 machines (2 windows and a linux box).
What I would like to do is run the cable modem into my linux box (into eth0)
have my linux box directly connected to my ISP through DHCP. This I can do
fine. Then I want run my linux box (from eth1) to the hub which will then
share the internet connection to the rest of the machines on the hub as well
as assign them a private class ip address (192.168.0.8 for example).

My linux box is running red hat 8. What do I need to do all this? Is
iptables what I am looking for? Does anyone know where I could find a how-to
or some documentation that walks me through how to do exactly this? I am
sure there are tons of them out there. Anyway, any input or guidance is
greatly appreciated.

Cheers,

-D

 
 
 

Proxy, firewall, NAT, iptables, what??

Post by Donni » Thu, 06 Feb 2003 16:26:25


Figured it out.... somewhat... but any input is still welcome.


Quote:> I am sure this has been asked a million times on this newsgroup, but I
> scoured the internet looking for the information I need but I couldn't
find
> it. Not that I would even know the right information if I found it.

> Obviously I am a linux newbie. Although I have spent several hours over
the
> past few weeks getting acquainted with it. Here's the question:

> I have a cable modem that runs into an "uplink" port on a cheep 5 port
10mb
> hub. Connecting to the hub I have 3 machines (2 windows and a linux box).
> What I would like to do is run the cable modem into my linux box (into
eth0)
> have my linux box directly connected to my ISP through DHCP. This I can do
> fine. Then I want run my linux box (from eth1) to the hub which will then
> share the internet connection to the rest of the machines on the hub as
well
> as assign them a private class ip address (192.168.0.8 for example).

> My linux box is running red hat 8. What do I need to do all this? Is
> iptables what I am looking for? Does anyone know where I could find a
how-to
> or some documentation that walks me through how to do exactly this? I am
> sure there are tons of them out there. Anyway, any input or guidance is
> greatly appreciated.

> Cheers,

> -D


 
 
 

Proxy, firewall, NAT, iptables, what??

Post by Tauno Voipi » Thu, 06 Feb 2003 17:42:39



Quote:> I am sure this has been asked a million times on this newsgroup, but I
> scoured the internet looking for the information I need but I couldn't
find
> it. Not that I would even know the right information if I found it.

> Obviously I am a linux newbie. Although I have spent several hours over
the
> past few weeks getting acquainted with it. Here's the question:

> I have a cable modem that runs into an "uplink" port on a cheep 5 port
10mb
> hub. Connecting to the hub I have 3 machines (2 windows and a linux box).
> What I would like to do is run the cable modem into my linux box (into
eth0)
> have my linux box directly connected to my ISP through DHCP. This I can do
> fine. Then I want run my linux box (from eth1) to the hub which will then
> share the internet connection to the rest of the machines on the hub as
well
> as assign them a private class ip address (192.168.0.8 for example).

> My linux box is running red hat 8. What do I need to do all this? Is
> iptables what I am looking for? Does anyone know where I could find a
how-to
> or some documentation that walks me through how to do exactly this? I am
> sure there are tons of them out there. Anyway, any input or guidance is
> greatly appreciated.

The key is NAT + firewall.

Get the IP-Masquerade-HOWTO for a cookbook.

HTH

Tauno Voipio

 
 
 

1. Using IPTABLES and NAT to forward Internet connection with Proxy involved

Here's my scenario... We have an MS Proxy server between us and the
Internet which  requires a username and password to get out.  I want
to setup Linux to act as a router between a small network to the
Internet, going through the Proxy, but the PC's on the subnet I don't
want to need the proxy settings.

Example:
Internet --> MS Proxy Server --> Linux Box as Router with Proxy
configured -->
Internal Subnet of PC's, not needing any Proxy settings.

Is this possible with IPTABLES?  If so, can someone point me towards a
good help or howto?

Thanks,

Keegan.

2. DDD1.4d won't run

3. iptables NAT entry times out but connects from firewall

4. Strange RPM error message, could use some help

5. iptables, NAT, sending mail from machines behind the firewall

6. ATI Mach64 and Adaptec AHA-2940UW Conflict?

7. iptables -- NAT not working inside firewall

8. Oracle versions and Solaris?

9. Half life server behind Linux NAT iptables firewall

10. Iptables nat firewall under fedora core 1

11. Transparent Firewall+NAT on Linux/iptables

12. Trying to VPN/IPSec through iptables NAT firewall... help?

13. Firewall / NAT / proxy Software