Differences

This shows you the differences between two versions of the page.

doc:howto:cifs.server [2012/12/04 16:32]
avalon
doc:howto:cifs.server [2014/05/05 00:14] (current)
westhouse
Line 1: Line 1:
====== Samba ====== ====== Samba ======
-Samba is a FOSS re-implementation of [[wp>Server Message Block|SMB/CIFS]]. As of version 3, Samba provides file and print services over network which can be accessed by Windows, Unix and MacOS X clients. Alternatives are [[nfs.server|NFS]] and [[sshfs.server|SSHFS]].+Samba is a free and open-source implementation of [[wp>Server Message Block|SMB/CIFS]]. As of version 3, Samba provides file and print services over network which can be accessed by Windows, Unix and MacOS X clients. Alternatives are [[nfs.server|NFS]] and [[sshfs.server|SSHFS]]
 + 
 +:!: It is hence **strongly recommended** that you use LuCI to establish the initial configuration and then edit the template file (/etc/samba/smb.conf.template) via LuCI Edit Template tab or from the shell as needed. 
 + 
 +If luci-app-samba not working or can't find in web gui - > type "rm /tmp/luci-indexcache" or restart router.
===== Preparations ===== ===== Preparations =====
Line 138: Line 142:
Since [[doc:howto:netfilter]] will track every connection, if you use MASQUERADING for example, you should disable con-tracking for data connections. The basic idea looks likes this, you must adapt this to your firewall setting. Since [[doc:howto:netfilter]] will track every connection, if you use MASQUERADING for example, you should disable con-tracking for data connections. The basic idea looks likes this, you must adapt this to your firewall setting.
<code bash> <code bash>
-$IPT -t raw -A OUTPUT -o $IF_LAN -s $IP_LAN -p tcp --sport 139 -j NOTRACK #------------------ don't track SMB +$IPT -t raw -A OUTPUT -o $IF_LAN -s $IP_LAN -p tcp --sport 139 -j CT --notrack #------------------ don't track SMB 
-$IPT -t raw -A OUTPUT -o $IF_LAN -s $IP_LAN -p tcp --sport 445 -j NOTRACK #------------------ don't track SMB +$IPT -t raw -A OUTPUT -o $IF_LAN -s $IP_LAN -p tcp --sport 445 -j CT --notrack #------------------ don't track SMB 
-$IPT -t raw -A PREROUTING -o $IF_LAN -s $IP_LAN -p tcp --dport 139 -j NOTRACK #------------------ don't track SMB +$IPT -t raw -A PREROUTING -o $IF_LAN -s $IP_LAN -p tcp --dport 139 -j CT --notrack #------------------ don't track SMB 
-$IPT -t raw -A PREROUTING -o $IF_LAN -s $IP_LAN -p tcp --dport 445 -j NOTRACK #------------------ don't track SMB+$IPT -t raw -A PREROUTING -o $IF_LAN -s $IP_LAN -p tcp --dport 445 -j CT --notrack #------------------ don't track SMB
</code> </code>
Line 181: Line 185:
===== Notes ===== ===== Notes =====
  * [[https://forum.openwrt.org/viewtopic.php?pid=140976#p140976|Samba user administration script]]   * [[https://forum.openwrt.org/viewtopic.php?pid=140976#p140976|Samba user administration script]]
 +  * [[https://forum.openwrt.org/viewtopic.php?id=33510|Storage Administration Tool]]

Back to top

doc/howto/cifs.server.1354635159.txt.bz2 · Last modified: 2012/12/04 16:32 by avalon