How to setup a router forwarding ALL traffic and providing NAT services

How to setup a router forwarding ALL traffic and providing NAT services

Post by Davi » Sun, 04 Apr 2004 05:23:06



Hi all,

I have searched the archives but could really find the answer I was
looking for.

I have a Sparcstation 5 running Aurora Linux (Red Hat based). It has
110Mhz Sparc Processor and 64MB RAM and is running 2.4 kernel.

I would like to configure this as a router forwarding *ALL* incoming
traffic to my internal LAN (a Windows box) and allowing all outbound
traffic. I would also like to monitor and capture *ALL* traffic
passing through it. It will need to provide NAT services too.

I have read the IP-Masquerading howto and had a look at a few other
howto's but there seem to be an awful lot of ways to do NAT and
forward traffic.

2 questions:
1. Do you think the box is up to it (specifications wise) or am I
wasting my time? (It's currently acting as a Web/DNS and FTP server
for mainly my use)
2. How would it be best to accomplish this in the easiest way
possible. (also with as little load as possible on my Sparcstation).

Thanks

David

 
 
 

How to setup a router forwarding ALL traffic and providing NAT services

Post by Davi » Sun, 04 Apr 2004 08:15:26



> Hi all,

> I have searched the archives but could really find the answer I was
> looking for.

> I have a Sparcstation 5 running Aurora Linux (Red Hat based). It has
> 110Mhz Sparc Processor and 64MB RAM and is running 2.4 kernel.

> I would like to configure this as a router forwarding *ALL* incoming
> traffic to my internal LAN (a Windows box) and allowing all outbound
> traffic. I would also like to monitor and capture *ALL* traffic
> passing through it. It will need to provide NAT services too.

> I have read the IP-Masquerading howto and had a look at a few other
> howto's but there seem to be an awful lot of ways to do NAT and
> forward traffic.

> 2 questions:
> 1. Do you think the box is up to it (specifications wise) or am I
> wasting my time? (It's currently acting as a Web/DNS and FTP server
> for mainly my use)
> 2. How would it be best to accomplish this in the easiest way
> possible. (also with as little load as possible on my Sparcstation).

> Thanks

> David

Apologies for the double post, my news server has been having trouble ...

 
 
 

How to setup a router forwarding ALL traffic and providing NAT services

Post by Ethan Trewhit » Mon, 05 Apr 2004 00:46:30



> 2 questions:
> 1. Do you think the box is up to it (specifications wise) or am I
> wasting my time? (It's currently acting as a Web/DNS and FTP server
> for mainly my use)
> 2. How would it be best to accomplish this in the easiest way
> possible. (also with as little load as possible on my Sparcstation).

I don't know why but the NAT info on the 'net was really cryptic when I
first tried going through it, probably like you're doing now. You want to
set up iptables like many of the howtos say ... just get it running first.
Then, the iptables command you want is:

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE

...where 192.168.0.0/24 is your intranet (internal) IP range that you want
NAT'ed, and eth0 is your internet (external) ethernet interface.

--
eth'nT
http://www.hydrous.net
aim: courtarro

 
 
 

1. Router forwarding ALL traffic and providing NAT services

Hi all,

I have searched the archives but could really find the answer I was
looking for.

I have a Sparcstation 5 running Aurora Linux (Red Hat based). It has
110Mhz Sparc Processor and 64MB RAM. I would like to configure this as a
router forwarding *ALL* incoming traffic to my internal LAN (a Windows
box) and allowing all outbound traffic. I would also like to monitor
*ALL* traffic passing through it. It will need to provide NAT services too.

I have read the IP-Masquerading howto and had a look at a few other
howto's but there seem to be an awful lot of ways to do NAT and forward
traffic.

2 questions:
1. Do you think the box is up to it (specifications wise) or am I
wasting my time? (It's currently acting as a Web/DNS and FTP server for
mainly my use)
2. How would it be best to accomplish this in the easiest way possible.
(also with as little load as possible on my Sparcstation).

Thanks

David

2. Second set of logs?

3. counting traffic to individual hosts behind a NAT router using ONLY iptables

4. pptp lcp confreg not getting through

5. Q about box for wired/wireless router + firewall + NAT + local services

6. CDROm Troubles RH7.2

7. Linsys NAT router - port forwarding problem?

8. Help with X and GLide

9. How to forward MSN messenger traffic on linux router?

10. ISDN Routers (NAT) vs. External Modems Linux does the NAT

11. Linux Bandwidth Arbitrator (traffic shaping) Looking for Beta Site,support will be provided!

12. providing ftp service on a secondary machine.....

13. IPmasq and providing services on private network