Click to See Complete Forum and Search --> : ip_forwarding problem


gryphonco
05-17-2001, 04:36 PM
True newbie here... I am trying to build a "sandbox" to test iptables firewalling... to that end I have attached to my existing LAN a PC installed under RedHat 7.1 as a "server/firewall" (its eth0 attaches to my existing LAN via a hub) I have attached it's eth1 to a 2nd hub. I have then installed a 2nd PC under RH 7.1 as a "workstation" and attached its eth0 to that 2nd hub (making it a subnetwork under the "server" I think)... the problem is this... the "server" which had GNOME can connect to the internet using Netscape with no problem...however the "workstation" which also has GNOME and Netscape cannot get on the internet. I have turned on ip_forwarding btw, and I believe I have all the IP addresses declared correctly. I have this feeling I am leaving out some key element... can anyone help?

cmndr keen
05-20-2001, 10:55 AM
keep in mind that you can't just arbitrarily assign subnetworks at your discretion. doing so is pointless, since hosts on the internet on properly delegated subnets won't be able to reach your network, because no router will have a route to your subnetwork. also, hubs are layer 2 devices, meaning devices attached to them reside on the same physical network, and thus the same subnet. so eth1 on the server and eth0 on the workstation should have addresses w/ in the same subnet. given this, it sounds like you should be implementing NAT on your server box, not just ip forwarding.