IP Forwarding not working in CentOS 5
Hi,
I have two nic card insatlled, eth0 is wan IP(dhcp) eth1-LAN IP which is static. Code:
[root@localhost ~]# ifconfig Code:
[root@localhost ~]# cat /proc/sys/net/ipv4/ip_forward http://www.howtoforge.com/nat_iptables Code:
[root@localhost ~]# sysctl -p /etc/sysctl.conf Code:
[root@localhost ~]# cat /etc/hosts Code:
[root@localhost ~]# cat /etc/sysconfig/network still not able to connect to internet. Please help I Don't know what is really wrong??? Is DNS is the issue?? |
I think you need to change the subnet on you Internal LAN to 255.255.255.0
It kinda breaks it. |
Hi,
I changed Code:
eth1 Link encap:Ethernet HWaddr 00:80:C8:27:3B:ED but still the same issue. Code:
[root@localhost ~]# iptables -L |
Okay what was your iptables script for forwarding the requests from one network card to another? And are you using some proxy like squid?
|
Quote:
i have not installed dhcp still!!! i just want to check whether it works by giving static IP to client pc. |
Oki Doki, can you let us have your routing please
netstat -rn or are you looking to Nat behind this box? And finally can the server see the outside world? |
Quote:
i couldn't wait, so installed shorewall and configured as of now its working!!! but ans to my question remains same!!! soon i will post the output of netsat command. . |
I can't see your nat table. Can you post it please?
# iptables -t nat -L |
All times are GMT -5. The time now is 07:45 AM. |