Solved

Setup NAT Linux Box

Posted on 2000-03-04
5
203 Views
Last Modified: 2013-12-16
How to setup a NAT-Linux Box (RedHat 6.1) by using ipchain?

Thanks.
0
Comment
Question by:chanmh
  • 2
  • 2
5 Comments
 

Expert Comment

by:mjn020200
ID: 2584605
first, you would like to make ipchain rules. i suggest you give us what kind of NAT you would like to create. sorry.
0
 

Author Comment

by:chanmh
ID: 2584950
For IP sharing - i.e. using a Linux Box for dialup to ISP and share this connection with a small group of PCs to connect to Internet.
0
 
LVL 12

Accepted Solution

by:
j2 earned 50 total points
ID: 2585206
easy way

echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -A forward -s 192.168.1.0/24 -b -j MASQ

Then set the clients to use the linux as default GW, and enter the DNS addressses of your ISP on each client. Or set up a cahcing DNS on your linux and use that as DNS.

Done. (this is assuming you are using 192.168.0.x with a 255.255.255.0 netmask.)

If you do not have ipchains installed, download from www.rustcorp.com (but 'all' modern distros have ipchains included)


Or you could download pmfirewall from www.pointman.org and it will also give yo ua pretty good firewall (just remmeber to answer "yes" for "Will this machine masquerade for other systems?"
0
 

Author Comment

by:chanmh
ID: 2608800
Thanks.  But how to setup a caching DNS on my linux box?
0
 
LVL 12

Expert Comment

by:j2
ID: 2609104
http://electron.phys.dal.ca/DNS-HOWTO.html

chapter 3 deals with what you need.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Copy Command - All Files inc Directory 1 42
AWS Central Authentication 1 59
bash file 10 37
How to mount nfs share on this CentOS server? 6 26
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question