public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pupeno <pupeno@pupeno.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Firewalling and Sambra printer.
Date: Mon, 23 Oct 2006 01:01:57 +0000	[thread overview]
Message-ID: <200610230102.07476.pupeno@pupeno.com> (raw)
In-Reply-To: <453BF78E.7050207@exceedtech.net>

[-- Attachment #1: Type: text/plain, Size: 3741 bytes --]

On Sunday 22 October 2006 22:58, Dale wrote:
> Well I had a similiar issue a while back.  This is what I did and it worked:
> > iptables -I INPUT 2 -p udp --dport 445 --source 192.168.0.0/24 -j ACCEPT
> > iptables -I INPUT 2 -p tcp --dport 445 --source 192.168.0.0/24 -j ACCEPT
> > iptables -I INPUT 2 -p udp --dport 138 --source 192.168.0.0/24 -j ACCEPT
> > iptables -I INPUT 2 -p tcp --dport 138 --source 192.168.0.0/24 -j ACCEPT
> > iptables -I INPUT 2 -p udp --dport 139 --source 192.168.0.0/24 -j ACCEPT
> > iptables -I INPUT 2 -p tcp --dport 139 --source 192.168.0.0/24 -j ACCEPT
> > iptables -I INPUT 2 -p tcp --dport 137 --source 192.168.100.0/24 -j
> > ACCEPT iptables -I INPUT 2 -p udp --dport 137 --source 192.168.100.0/24
> > -j ACCEPT
>
> I got that help from here:
>
> http://forums.gentoo.org/viewtopic-p-3371796.html#3371796
>
> Maybe that will help you some.  Oh, may need to change the ip numbers
> where needed.

Here it didn't, my iptables are now 

# iptables -vL
Chain INPUT (policy DROP 35548 packets, 16M bytes)
 pkts bytes target     prot opt in     out     source               
destination
 343K  561M ACCEPT     all  --  lo     any     anywhere             anywhere
  36M   54G ACCEPT     all  --  any    any     anywhere             anywhere            
state RELATED,ESTABLISHED
    3   228 ACCEPT     icmp --  any    any     anywhere             anywhere            
icmp echo-request limit: avg 30/min burst 5
  120  7057 ACCEPT     icmp --  any    any     anywhere             anywhere
    1    60 ACCEPT     tcp  --  any    any     anywhere             anywhere            
tcp dpt:ssh
    0     0 ACCEPT     udp  --  any    any     192.168.0.0/24       anywhere            
udp dpt:microsoft-ds
    0     0 ACCEPT     tcp  --  any    any     192.168.0.0/24       anywhere            
tcp dpt:microsoft-ds
    2   467 ACCEPT     udp  --  any    any     192.168.0.0/24       anywhere            
udp dpt:netbios-dgm
    0     0 ACCEPT     tcp  --  any    any     192.168.0.0/24       anywhere            
tcp dpt:netbios-dgm
    0     0 ACCEPT     udp  --  any    any     192.168.0.0/24       anywhere            
udp dpt:netbios-ssn
    0     0 ACCEPT     tcp  --  any    any     192.168.0.0/24       anywhere            
tcp dpt:netbios-ssn
    0     0 ACCEPT     tcp  --  any    any     192.168.0.0/24       anywhere            
tcp dpt:netbios-ns
   37  2886 ACCEPT     udp  --  any    any     192.168.0.0/24       anywhere            
udp dpt:netbios-ns

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               
destination

Chain OUTPUT (policy ACCEPT 21M packets, 3429M bytes)
 pkts bytes target     prot opt in     out     source               
destination

and I still can't print. I send the print job and the printer gets into a kind 
of broken state.
Well, those ports are not open on my workstation[1], so, allowing connections 
to them won't change anything (unless something runs sporadically opening 
those ports).
Thank you.
-- 
Pupeno <pupeno@pupeno.com> (http://pupeno.com)

[1] # netstat -tlun
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:8010            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
udp        0      0 0.0.0.0:47552           0.0.0.0:*
udp        0      0 0.0.0.0:68              0.0.0.0:*
udp        0      0 0.0.0.0:8010            0.0.0.0:*
udp        0      0 0.0.0.0:631             0.0.0.0:*

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2006-10-23  1:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-22 17:28 [gentoo-user] Firewalling and Sambra printer Pupeno
2006-10-22 22:58 ` Dale
2006-10-23  1:01   ` Pupeno [this message]
2006-10-23  5:56     ` Jason Booth
2006-10-23  6:17   ` Jason Booth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200610230102.07476.pupeno@pupeno.com \
    --to=pupeno@pupeno.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox