Printer using port forwarding in Edubuntu

Joseph Ollis talk2ollis at gmail.com
Fri Dec 1 19:02:59 GMT 2006


I have a workgroup printer in my ltsp edubuntu computer lab(setup with 
the default two network cards, one connected to the school lan, and one 
connected to the switch for ltsp). I would like to share that printer 
with other computers within my school lan. The school computers use the 
10.0.0.* ip addresses and the edubuntu ltsp clients are using the 
192.168.13.*.  I have used iptables before so I tried the following at 
our ltsp server.

/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 9100 -j DNAT 
--to 192.168.13.234:9100
/sbin/iptables -A FORWARD -p tcp -i eth0 -o eth1 --dport 9100 -j ACCEPT

When I tried the printer setup on our XP machines, the setup worked 
well, but would not print the test page. I am not receiving iptables log 
errors in kern.log or dmesg. Does anyone have any thoughts?

JO






More information about the edubuntu-users mailing list