I have a server with 4 ethernet ports: 1 used to connect to internet and 3 others used to manage 3 local subnets.
I configured the DHCP server, the routing, packet forwarding for IPv4 and NAT; everything seems to work correctly: all users can connect to the Internet from each subnet and users can ping a PC from one subnet to the other.
Here-below the content of my /etc/rc.local
:
/sbin/iptables -A FORWARD -o eth0 -i eth1 -s 192.168.1.0/24 -m conntrack --ctstate NEW -j ACCEPT
/sbin/iptables -A FORWARD -o eth0 -i eth2 -s 192.168.2.0/24 -m conntrack --ctstate NEW -j ACCEPT
/sbin/iptables -A FORWARD -o eth0 -i eth3 -s 192.168.3.0/24 -m conntrack --ctstate NEW -j ACCEPT
/sbin/iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -t nat -F POSTROUTING
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
What is not working is that I can't access from subnet x to a network printer/projector on subnet y using auto-detect with the standard HP driver but I can ping it and access the printer's management page.
What am I missing?