USB Printer through the WAN
From OpenFSG
Normally USB Printers attached to the FSG are not accessible through the WAN port. If you follow these instructions, you should be printing in no time.
Preparation
- Get SSH going
Procedure
- Login as root
- Type vi /etc/init.d/wanprint
(Thins invokes the texteditor VI. It helps checking basic vi commands, especially if you are a Windows user.)
- Type i to get vi into insert mode then copy and paste this text into the Putty Window. Note: in Putty, Right click with the mouse to Paste.
#! /bin/sh /sbin/iptables -I INPUT 1 -i eth1 -p tcp --dport 9100 -j ACCEPT /sbin/iptables -I INPUT 2 -i eth1 -p tcp --dport 9101 -j ACCEPT
- Press Escape to get out of insert mode
- Type :w and ENTER to save the file (yes, you need to type the colon ":" as well)
- Type :q and ENTER to quit (again, yes type colon as well)
- Type ln -s /etc/init.d/wanprint /etc/rc/S99wanprint
- Type chmod u+rwx,go+rx /etc/rc/S99wanprint
- Type chmod u+rwx,go+rx /etc/init.d/wanprint
- Then reboot the FSG via the web interface or type sh /etc/rc/S99wanprint
Some steps that you can follow/verify when your printer is not working:
step1: DELETE ALL PRINTER YOU'VE INSTALLED ON YOUR WINDOWS ATTACHED TO FSG
step 2: go to ADD PRINTER
step 3: select LOCAL PRINTER with UNCHECKED AUTOMATICALLY DETECT
step 4: CREATE NEW PORT-STANDARD TCP/IP
step 5: PRINTER NAME or IP: IP of FSG (If your PC's are on LAN FSG, it should be the IP you have defined on CONNECTION - LAN webIF, if they are connected on LAN of your main ROUTER, the IP you should put is the WAN IP FSG - CONNECTION-WAN
step 6: Port NAME: Name of your printer
Then follow all the steps, and install the drivers of your printer when the installation ask for that.
At end, go to PRINTERS, and SEE THE PROPERTIES of THE PRINTER INSTALLED Go to PORTS and click on PORT SELECTED and click on CONFIGURE PORT and verify if the IP is correct and if the port number (9100 or 9101) is correct, confirming with the info you can see on FSG webIF - INFORMATION-DEVICE
