2004-02-14 19:06:39 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-07-07 22:42:54 +02:00
|
|
|
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
2004-02-14 19:06:39 +01:00
|
|
|
<article>
|
|
|
|
<!--$Id$-->
|
|
|
|
|
|
|
|
<articleinfo>
|
|
|
|
<title>Samba/SMB</title>
|
|
|
|
|
|
|
|
<authorgroup>
|
|
|
|
<author>
|
|
|
|
<firstname>Tom</firstname>
|
|
|
|
|
|
|
|
<surname>Eastep</surname>
|
|
|
|
</author>
|
|
|
|
</authorgroup>
|
|
|
|
|
2006-07-07 03:04:16 +02:00
|
|
|
<pubdate><?dbtimestamp format="Y/m/d"?></pubdate>
|
2004-02-14 19:06:39 +01:00
|
|
|
|
|
|
|
<copyright>
|
2005-09-17 08:26:55 +02:00
|
|
|
<year>2002-2005</year>
|
2005-01-17 16:58:26 +01:00
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<holder>Thomas M. Eastep</holder>
|
|
|
|
</copyright>
|
|
|
|
|
|
|
|
<legalnotice>
|
|
|
|
<para>Permission is granted to copy, distribute and/or modify this
|
|
|
|
document under the terms of the GNU Free Documentation License, Version
|
|
|
|
1.2 or any later version published by the Free Software Foundation; with
|
2023-01-19 23:17:25 +01:00
|
|
|
no Invariant Sections, no Front-Cover Texts, and no Back-Cover
|
2004-02-14 19:06:39 +01:00
|
|
|
Texts. A copy of the license is included in the section entitled
|
2005-01-17 16:58:26 +01:00
|
|
|
<quote><ulink url="GnuCopyright.htm">GNU Free Documentation
|
|
|
|
License</ulink></quote>.</para>
|
2004-02-14 19:06:39 +01:00
|
|
|
</legalnotice>
|
|
|
|
</articleinfo>
|
|
|
|
|
2005-09-30 08:30:36 +02:00
|
|
|
<caution>
|
2009-03-15 21:46:56 +01:00
|
|
|
<para><emphasis role="bold">This article applies to Shorewall 4.3 and
|
2005-09-30 08:30:36 +02:00
|
|
|
later. If you are running a version of Shorewall earlier than Shorewall
|
2009-03-15 21:46:56 +01:00
|
|
|
4.3.5 then please see the documentation for that
|
2005-09-30 08:30:36 +02:00
|
|
|
release.</emphasis></para>
|
|
|
|
</caution>
|
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<para>If you wish to run Samba on your firewall and access shares between
|
|
|
|
the firewall and local hosts, you need the following rules:</para>
|
|
|
|
|
2016-02-19 01:25:30 +01:00
|
|
|
<programlisting>#ACTION SOURCE DEST PROTO DPORT SPORT
|
2009-03-15 21:46:56 +01:00
|
|
|
SMB(ACCEPT) $FW loc
|
|
|
|
SMB(ACCEPT) loc $FW</programlisting>
|
2005-01-17 16:58:26 +01:00
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<para>To pass traffic SMB/Samba traffic between zones Z1 and Z2:</para>
|
|
|
|
|
2016-02-19 01:25:30 +01:00
|
|
|
<programlisting>#ACTION SOURCE DEST PROTO DPORT SPORT
|
2009-03-15 21:46:56 +01:00
|
|
|
SMB(ACCEPT) Z1 Z2
|
|
|
|
SMB(ACCEPT) Z2 Z1</programlisting>
|
2005-01-17 16:58:26 +01:00
|
|
|
|
2004-02-14 19:06:39 +01:00
|
|
|
<para>To make network browsing (<quote>Network Neighborhood</quote>) work
|
2005-09-30 08:30:36 +02:00
|
|
|
properly between Z1 and Z2 <emphasis role="bold">requires a Windows Domain
|
|
|
|
Controller and/or a WINS server.</emphasis> I have run Samba on my firewall
|
|
|
|
to handle browsing between two zones connected to my firewall.</para>
|
2005-04-16 00:22:36 +02:00
|
|
|
|
|
|
|
<para>When debugging Samba/SMB problems, I recommend that you do the
|
|
|
|
following:</para>
|
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>Copy <filename>action.Drop</filename> and
|
|
|
|
<filename>action.Reject</filename> from <filename
|
|
|
|
class="directory">/usr/share/shorewall</filename> to <filename
|
|
|
|
class="directory">/etc/shorewall</filename>.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Edit the copies and remove the <emphasis
|
2009-03-15 21:46:56 +01:00
|
|
|
role="bold">SMB(DROP)</emphasis> and <emphasis
|
|
|
|
role="bold">SMB(REJECT)</emphasis> lines.</para>
|
2005-04-16 00:22:36 +02:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para><command>shorewall restart</command></para>
|
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
|
|
|
|
<para>The above steps will cause SMB traffic that is dropped or rejected by
|
|
|
|
policy to be logged rather than handled silently.</para>
|
|
|
|
|
2005-09-30 08:30:36 +02:00
|
|
|
<para>If you are using <trademark>Windows XP</trademark> to test your
|
|
|
|
setup,make you sure you have a properly configured client firewall .</para>
|
|
|
|
|
2005-04-16 00:22:36 +02:00
|
|
|
<para>You can just remove the copies and <command>shorewall
|
|
|
|
restart</command> when you are finished debugging.</para>
|
2008-07-07 22:42:54 +02:00
|
|
|
</article>
|