CentOS 5.7 iptables and NAT config problems

Issues related to configuring your network
Post Reply
Kawish
Posts: 2
Joined: 2016/02/18 07:16:23

CentOS 5.7 iptables and NAT config problems

Post by Kawish » 2016/02/18 07:30:18

Hello,

I am newbie , so i need a help :) ...

I need to configure the iptables and NAT to Setup a proxy server on centos 5.5 to provide internet access to lan users... i installed webmin and squid but problem is i did'nt know how to setup the Iptables and NAT..
I also searched and visit different forums to check and apply the commands but in the end nothing happend expect confusion lots of ..

so Could u please help me ,, to provide me iptables command.


eth0 = Is ISP Network which i droped on server
eth1 = Private lan

eth0 : IP: 192.168.2.171 Gateway : 192.168.2.53 Subnet mask :255.255.252.0
eth1 : IP: 192.168.3.172

looking forward for a prompt response.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 5.7 iptables and NAT config problems

Post by TrevorH » 2016/02/18 13:38:26

I have split your post away from the thread to which you posted as it was more than 4 years old.

First, you need to yum update that server ASAP. 5.5 is ancient (31 March 2010) and absolutely riddled with exploitable security bugs. That's nearly 6 years old! You should not put a 5.5 server anywhere near the internet!
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: CentOS 5.7 iptables and NAT config problems

Post by aks » 2016/02/18 18:47:00


User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 5.7 iptables and NAT config problems

Post by TrevorH » 2016/02/18 21:53:49

I would also add that since CentOS 5 is now only a little over a year away from retirement, if you are deploying a new service then it might be wise to deploy it on a newer version with a longer remaining support lifetime.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Kawish
Posts: 2
Joined: 2016/02/18 07:16:23

Re: CentOS 5.7 iptables and NAT config problems

Post by Kawish » 2016/02/22 04:45:38

Thanks for the response .. basically i am in learning process so setting up a server for training :) thats why i picket centos 5.5 for starters ... anyways am going to upgrade the centos ..

Post Reply