miller65ghg
MIS
Hi,
I have a RH7 Linux box with two NICs that I eventually would like to use as a firewall. For the present however, I'm just trying to get an inside network (at this point only one workstation) talking thru the Linux box to the outside world. This is my first attempt at anything of this nature, so the process and learing curve have been excruciating slow. I have both NICs (eth0, eth1) installed and configured, and can ping the IPs associated with each from the outside world. eth0 goes to the outside, eth1 serves the inside. For testing purposes I added a host route pointing to eth0. This inside network host can ping the Linux box (and vice-versa), but it cannot ping anything beyond the Linux box. And, of course, outside going in, any host on the outside network can ping the Linux box (and vice-versa), but cannot ping beyond the Linux box to the one host on the inside network.
I'm very new at this, but it seems to me that the two NICs aren't communicating with one another, or simply aren't passing packets to each other. I've been reading on IP forwarding, and so did the following:
echo 1 > /proc/sys/net/ip4/ip_forward
If I cat the file I do get a "1".
Also, I edited /etc/sysctl.conf as follows:
net.ipv4.ip_forward = 1
I then ran /sbin/service network restart , which gave me the following output:
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Disabling IPv4 packet forwarding: [ OK ]
Setting network parameters: [ OK ]
Bringing up interface lo: [ OK ]
Bringing up interface eth0: [ OK ]
Bringing up interface eth1: [ OK ]
For some reason, the IPv4 forwarding is being disabled. Dont' know why this is occuring. Does anyone have any suggestions? Am I on the right/wrong track?
Thank you,
Mark
I have a RH7 Linux box with two NICs that I eventually would like to use as a firewall. For the present however, I'm just trying to get an inside network (at this point only one workstation) talking thru the Linux box to the outside world. This is my first attempt at anything of this nature, so the process and learing curve have been excruciating slow. I have both NICs (eth0, eth1) installed and configured, and can ping the IPs associated with each from the outside world. eth0 goes to the outside, eth1 serves the inside. For testing purposes I added a host route pointing to eth0. This inside network host can ping the Linux box (and vice-versa), but it cannot ping anything beyond the Linux box. And, of course, outside going in, any host on the outside network can ping the Linux box (and vice-versa), but cannot ping beyond the Linux box to the one host on the inside network.
I'm very new at this, but it seems to me that the two NICs aren't communicating with one another, or simply aren't passing packets to each other. I've been reading on IP forwarding, and so did the following:
echo 1 > /proc/sys/net/ip4/ip_forward
If I cat the file I do get a "1".
Also, I edited /etc/sysctl.conf as follows:
net.ipv4.ip_forward = 1
I then ran /sbin/service network restart , which gave me the following output:
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Disabling IPv4 packet forwarding: [ OK ]
Setting network parameters: [ OK ]
Bringing up interface lo: [ OK ]
Bringing up interface eth0: [ OK ]
Bringing up interface eth1: [ OK ]
For some reason, the IPv4 forwarding is being disabled. Dont' know why this is occuring. Does anyone have any suggestions? Am I on the right/wrong track?
Thank you,
Mark