Hi,
I'm trying to setup Linux firewall using Ipchain on RH7.2 on the computer with two nic's. One network card is connected (dhcp) to Internet and other one is on the LAN (static).
From the Linux box, I can ping both Internet and LAN. From LAN PC, I can ping the Linux box; however, I cannot ping outside the firewall from the LAN PC.
I have allowed forwarding by "echo 1 > /proc/sys/net/ipv4/ip_forward" in the rc.local /etc/rc.d
LAN connect NIC (eth1):
Here is ifcfg-eth1 on /etc/sysconfig/networking-scripts directory
DEVICE=eth1
IPADDR=192.168.1.254
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
GATEWAY=192.168.1.254
ONBOOT=yes
resolv.conf on /etc/sysconfig/networking/profiles/default
nameserver 24.69.1.195
nameserver 24.69.1.212
On the LAN PC
IP: 192.168.1.1
subnet: 255.255.255.0
gateway: 192.168.1.254
DNS: 24.69.1.195
DNS: 24.69.1.212
I appreciate any help
Thanks
Trekkie
I'm trying to setup Linux firewall using Ipchain on RH7.2 on the computer with two nic's. One network card is connected (dhcp) to Internet and other one is on the LAN (static).
From the Linux box, I can ping both Internet and LAN. From LAN PC, I can ping the Linux box; however, I cannot ping outside the firewall from the LAN PC.
I have allowed forwarding by "echo 1 > /proc/sys/net/ipv4/ip_forward" in the rc.local /etc/rc.d
LAN connect NIC (eth1):
Here is ifcfg-eth1 on /etc/sysconfig/networking-scripts directory
DEVICE=eth1
IPADDR=192.168.1.254
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
GATEWAY=192.168.1.254
ONBOOT=yes
resolv.conf on /etc/sysconfig/networking/profiles/default
nameserver 24.69.1.195
nameserver 24.69.1.212
On the LAN PC
IP: 192.168.1.1
subnet: 255.255.255.0
gateway: 192.168.1.254
DNS: 24.69.1.195
DNS: 24.69.1.212
I appreciate any help
Thanks
Trekkie