[CentOS] Setting up a simple NAT on CentOS 3.5

Tue Dec 20 01:10:04 UTC 2005
Rodrigo Barbosa <rodrigob at suespammers.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Dec 19, 2005 at 08:01:09PM -0500, ryan wrote:
> On Monday 19 December 2005 11:34, Robert Moskowitz wrote:
> > Well I think this system is back on 3.5.  How do I tell?  Have not
> > used it in a while...
> >
> > I need a NAT for some quick testing and this box was available.  Only
> > a 6gb drive, so I can't install Astaro (which I have licenses for).
> >
> > So is there a simple way to turn on NATing?  Should I upgrade to 4.2?
> >
> > This box is behind a firewall, so security risks are not the issue.  This
> > time.
> >
> Firestarter will take about 5 minutes to set up:
> http://prdownloads.sourceforge.net/firestarter/firestarter-1.0.3-1.i386.rpm?download
> 
> If you want greater control (multiple IPs on virtual interfaces), try 
> shorewall:
> http://www.shorewall.net/
> 
> Also, if you want DHCP, you need to do a yum install dhcp. Firestarter will 
> configure DHCPd for you, but it will not install it.

The guy just want some temporary NAT services for testing. There is no need
to configura all of that.

That simple iptables ... -j MASQUERADE rule should work if there are
no other iptables rules anywhere, and all default rules are ACCEPT.

[]s

- -- 
Rodrigo Barbosa <rodrigob at suespammers.org>
"Quid quid Latine dictum sit, altum viditur"
"Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDp1nspdyWzQ5b5ckRAqXPAJ9rImWHVlhjJxPVD8LGb6RLWPs29QCdFxpg
ry5++sau3n+jGdMvrnnwFb0=
=rgBi
-----END PGP SIGNATURE-----