From: Dale <dalek@exceedtech.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Firewalling and Sambra printer.
Date: Sun, 22 Oct 2006 17:58:22 -0500 [thread overview]
Message-ID: <453BF78E.7050207@exceedtech.net> (raw)
In-Reply-To: <200610221728.49846.pupeno@pupeno.com>
Pupeno wrote:
> Hello,
> I have two computers (that are involved in this problem), phoenix is my Gentoo
> workstation and desktop-1 is someone else's Windows box. Someone else happens
> to have a printer and I don't, so, from time to time I use his printer. The
> printer is shared, obviously, thru SMB (it's a windows box). I configured
> CUPS to connect to it (I just used the KDE Kcontrol to configure it).
> My problem is that when I bring up my firewall (a firewall using iptables on
> phoenix, just protecting phoenix) printing stops working. In fact, all access
> to desxtop-1 thru smb stops working.
> The firewall is very simple, a simple stateful all-incomming-closed firewall:
>
> # iptables -vL
> Chain INPUT (policy DROP 35510 packets, 16M bytes)
> pkts bytes target prot opt in out source
> destination
> 329K 558M 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
>
> Chain FORWARD (policy DROP 0 packets, 0 bytes)
> pkts bytes target prot opt in out source
> destination
>
> Chain OUTPUT (policy ACCEPT 21M packets, 3426M bytes)
> pkts bytes target prot opt in out source
> destination
> phoenix ~ #
>
> Do you know why after bringing up this firewall I can't use the printer
> anymore and/or how to solve it ?
>
> Thank you.
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.
Dale
:-) :-) :-)
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-10-22 23:03 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 [this message]
2006-10-23 1:01 ` Pupeno
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=453BF78E.7050207@exceedtech.net \
--to=dalek@exceedtech.net \
--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