Discussion Locked

Network Address translation in LINUX

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a private LAN which is ofcourse having a private IP i.e. 88.88.88.0/255.255.255.0 and my ISP gave me only 15 public IP addresses i.e. 203.88.88.92-207/255.255.255.240. In order for me to connect my LAN to the internet, I have to use ipchain command in Linux... My questions are:
1. how will I configure my ipchain?
2. how will I put a range which public IP will be included in ipchain? For example the public IPs that I'm going to use will onjly be from 208.88.88.95-200/255.255.255.240

-= i need your expertise on these guys =-
thank you for your continued support and more power.

-=clark james=-

6 replies

by schannachie

Hi,

You've got some solutions that work quite well for red hat distributions and at Suse distributions. It's similar for the rest.

1.- With Suse distribution you have to isnstall the security packages such as rinetd, ipchains, ipfwrapper (optional)

2.- Set up the kernel extension for firewalling at the /etc/rc.firewall

3.- Set up the masquerading rules at the /etc/rc.init3/ directory create the file
s999masq. In the file inset the rule for masquerading i.e using ipfwadmin-wrapper it'could be :
ipfwadm-wrapper -F -a -m -S 10.10.0.0/16 -D 0.0.0.0/0

if you want to set a ipchains rule then use the man file to set a masquerading rule and placeit in that file.

4.- Reboot

For Red hat :

1.- Start the linuxcomf utility, setup the firewalling extensions, and create a forwarding rule and follow the instructions.

2.- You can downlodad the rinetd, but check out that the kernel you have can use that extensions.

good look !

This discussion is closed to new replies.