Hi, I have a gateway between 2 internal networks that seem to work quite good so far. it's on a SuSE 7.0. I added a printer on the network2 and want to nat an adress so the network1 can see the network2 printer as if it was a network1 printer... (in fact the driver of the printer doesn't recognize the printer because it is on another network...). but there's surely something wrong in my cfg.... here it is : #!/bin/sh echo 1 > /proc/sys/net/ipv4/ip_forward cat /proc/modules | grep ip_masq > /tmp/ipmapp$$ while read LINE do set $LINE none none none if [ "$1" != "none" ] then /sbin/rmmod $1 fi done < /tmp/ipmapp$$ rm -f /tmp/ipmapp$$ /sbin/ipchains -F input /sbin/ipchains -P input ACCEPT /sbin/ipchains -F output /sbin/ipchains -P output ACCEPT /sbin/ipchains -F forward /sbin/ipchains -P forward DENY /sbin/ipchains -A forward -j MASQ -s network2.ip.adress.0/24 -d 0.0.0.0/0 ip route add nat network1.ip.adress.printer via network2.ip.adress.printer
From the gateway, I can ping the printer with the network2 adress, but I don't ping the printer with the network1 adress. Anybody sees where is my mistake ?
TIA Stephane