![](https://seccdn.libravatar.org/avatar/dcefdbf1fbe7737b010a3a806d826ae2.jpg?s=120&d=mm&r=g)
On Thursday 28 October 2004 12:31, Chadley Wilson wrote:
Greetings,
Here is the senario, I hope someone can give a bit of guidance here! ;-} I will try and explain as clearly as I can.
Network layout.
networkA 192.168.2.0 networkB 196.25.100.0
I have a printer on networkA @ ip 192.168.2.5 which is my laptop. (chadlap) I have another PC on networkB @ 196.25.100.120 which is a windows PC in between there is a PC running as a router called fireman with two ethernets ( eth0 192.168.2.1) and (eth1 196.25.100.151),
fireman has ip_forwarding enabled and a tiny firewall script written in iptables. (default INPUT policy is to DROP, default OUTPUT is ACCEPT, default FORWARD is ACCEPT)
192.168.2.5 and 196.25.100.120 both use fireman as the default gw
How would I configure the firewall with iptables to allow 196.25.100.120 to print to 192.168.2.5 ?
You need to configure the routing table on "fireman" so that the packets are sent out the correct NIC. YaST2 -> Network Services -> routing Try entries like: Destination: 192.168.2.0 Gateway: 0.0.0.0 Netmask: 255.255.255.0 Device: eth0 (eth1, or whatever) Once the routing is setup each box should be able to reach the other. Jeff