Re: Firewall and samba



Someone pointed out that I might be able to connect from Machine B to
Machine A by using the IP adress. This is true. So my problem becomes:

When I configure my firewall I can only connect to the samba server by using
the ip adress. When I try to use the name (e.g. "Desktop-PC") the call is
blocked. Does this have something to do with broadcasts? And how do they
work?

TIA


On 11/30/06, Scott J. Henson <scotth@xxxxxxxxxxxx > wrote:

Rutger van Haasteren wrote:
> Hi all,
>
> I using Ubuntu since Hoary, and I have never been able to set the
> firewall the right way wrt Samba. I'm in a local network behind a
> router/firewall, but I would still like some extra protection. When I
> use something like guarddog or firestarter to set up my firewall,
> everything works the way it should, except for windows file sharing:
samba.
> When I open the ports for samba, or I allow all connections from a
> certain host, I can use all services but samba.
> How is this possible? Doesn't make a difference if I make
the rules more
> specific.
>

I have a samba pdc running on dapper with shorewall. I have
the following rules marked as for making samba work.

ACCEPT net fw udp 137:139
ACCEPT net fw tcp 137,139,445
ACCEPT net fw udp 1024: 137


--
Scott Henson
LCSEE Systems Staff
WVU MAE Undergraduate
Ubuntu User


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Relevant Pages

  • secondary samba
    ... whi has a good adress talking about samba as secondary server ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
    (Fedora)
  • Re: Long Time Samba No Work-Need Expert Help On Samba/Networking
    ... The windows firewall has to be completely ... I tried the samba commands I listed on the ... added interface ip=127.0.0.1 bcast=127.255.255.255 ... server string = %h server ...
    (Ubuntu)
  • Re: [SLE] SUSE 9.3 Samba and Firewall issue
    ... > However I can access the windows boxes using their IP without any problems. ... > If I turn off the firewall on Linux Box I can also access the windows ... many tests to try to get a working Samba network. ... computer) with no improvements on the Linux side. ...
    (SuSE)
  • [HPADM] Re: Mapping Samba Share to XP
    ... My feeling is that the firewall is your problem. ... I was going to recommend you try mapping to a windows server on the ... > Made the changes to the smb.conf file and started samba server. ...
    (HP-UX-Admin)
  • Re: name all the uses for samba
    ... > I'm trying to tell him all the things that Samba will do, ... > freebsd, but we've still got a couple of domain servers to get rid of and I ... Get a firewall installed, get it ... Windows systems, their cost is obviously not a barrier to use. ...
    (freebsd-questions)