Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 01 Aug 2014, 10:25
All times are UTC - 4
 Forum index » Off-Topic Area » Security
Network printer won't work with Puppy's firewall on SOLVED
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
Smithy


Joined: 12 Dec 2011
Posts: 409

PostPosted: Tue 28 Jan 2014, 15:18    Post subject:  Network printer won't work with Puppy's firewall on SOLVED  

I would like to know how to add some code to let 631(?) through Puppy Firewall.

It seems that the printer will not function with the firewall on.

Code:
#! /bin/sh
Exec=roxterm
iptables -P INPUT DROP
iptables -F INPUT
iptables -N inbound
iptables -A INPUT -i wlan0 -j inbound
iptables -A INPUT -i lo -j ACCEPT

iptables -A inbound -m state --state ESTABLISHED -j ACCEPT
iptables -A inbound -m state --state RELATED -j ACCEPT



Solved
Putting this code into IP Tables seems to work.

Code:
iptables -A INPUT -i pp0 -p tcp --sport 631 -m state --state ESTABLISHED -j ACCEPT
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8938
Location: Stratford, Ontario

PostPosted: Thu 30 Jan 2014, 10:27    Post subject: Re: Network printer won't work with Puppy's firewall on SOLVED  

Smithy wrote:

Code:
iptables -A INPUT -i pp0 -p tcp --sport 631 -m state --state ESTABLISHED -j ACCEPT

I tried this and it did not work for me. But I have always found the detection of remote IPP printers to be flaky, with or without a firewall. Here are some things that do work for me.

1. Run the Firewall Wizard on the client and declare the print server as "trusted".

2. On the Puppy client, run CUPS Add Printer and install the remote printer manually using the IPP protocol. As a "local" printer with a remote target, it is always visible to apps like Abiword and works through a full firewall. But the print server needs a static IP address for this to be useful.

3. Assuming that the remote printer is being driven by a Puppy machine, run the p910nd server on it. Let it do the serving instead of CUPS. On the client machine, install the printer manually using the socket protocol.
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 409

PostPosted: Thu 30 Jan 2014, 16:47    Post subject:  

Yes I think telling it or making it be local seems to be key rcrn51.

I did a test from scratch, tried that code and it came through eventually, but I had to do an edit sfs to make sure the etc cups setup was transferred and the darned thing is fixed in time. I don't really understand the routing, but am happy that it will print now. Wink
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Security
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0507s ][ Queries: 11 (0.0112s) ][ GZIP on ]