When is REJECTed all outgoing packed it is OK (freeze 3-5sec only).
Wok-around № 5
If remote printer is not present insert firewall rule:
iptables -I OUTPUT -p tcp -d ipadress --dport 631 -j REJECT
If remote printer is presented delete firewall rule:
iptables -D OUTPUT -p tcp -d ipadress --dport 631 -j REJECT
My working wok-around № 5
I write scripts /4pcs/ (it is attached in zip file):
reject-remote-printers script:
define function processByPing()
and
call function processByPing() for each remote printer. It is at the end of
this script.
The function has 3 parameters
1st = IP address of remote printer or remote printer server
2nd = port, usually 631
3rd = MAC address of remote printer or remote printer server
Example: processByPing 192.168.0.116 631 00:02:17:D4:1B:32
(It is included in the script on the 4th row from the end of the script - you
have to modify this line.
You can repeat this line for every remote printer with valid IP and MAC
address)
reject-remote-printers
insert call of this script to /etc/rc.local file (with & at the end of line)
call this script every time after connect to network (I use WICD manager, the
manager has this option - /after-connect script/)
run-wicd-off-reject-remote-printers
call every time after disconnect from network
WICD manager run disconnect script BEFORE disconnect - it is a smal problem.
Solution is use "run-wicd-off-reject-remote-printers" instead
reject-remote-printers.
"run-wicd-off-reject-remote-printers|" script call asynchronously script
"wicd-off-reject-remote-printers"
and "wicd-off-reject-remote-printers" sleep for 3 seconds ... and next
call "reject-remote-printers" script
g-reject-remote-printers
add to a GNOME menu for manually renew all remote printers.
You have to use visudo command and insert next line for use this command by
every user without password:
ALL ALL=NOPASSWD: /YOURfullPathToScript/reject-remote-printers
(I hope you understand my English)
** Attachment added: "Set of scripts"
http://launchpadlibrarian.net/28468611/reject-remote-printers.zip
--
remote printer : freeze when not available
https://bugs.launchpad.net/bugs/264333
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs