🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.os.linux.debian
Article #29665

samba na debian

#29665
From: Jarek
Date: Thu, 25 Sep 2008 13:40
73 lines
3137 bytes
Witam

Probuje skonfigurować sambę na debian4.0 ale niestety nie można znaleźć 
\\debian, probowałem po ip tzn. \\192.168.10.1 niestety i to nie 
pomogło, moj smb.conf wyglada tak:

[global]
workgroup=Linux
server string=debian
netbios name=debian
guest account=nobody
security=share
password level=8
username level=8
host allow=192.168.10.0/24
interfaces=eth1 #ten interfejs ma adres 192.168.10.1
smb password file=/etc/samba/smbpasswd

[udostepniony]
comment=katalog udostepniony
path=/home/samba
read only=no
guest ok=yes

zrobiłem:

utworzyłem /home/samba

chmod 777 /home/samba

oto mój firewall, może w nim jest błąd?:

#wlaczane w kernele forrdowania
echo 1 > /proc/sys/net/ipv4/ip_forward
# czyszczenie starych regul
iptables -F
iptables -X
iptables -t nat -X
iptables -t nat -F
# ustawienie polityki dzialania
#iptables -P INPUT DROP
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A FORWARD -o lo -j ACCEPT
iptables -A INPUT -p icmp -icmp-type8 -j DROP
iptables -A INPUT -p tcp -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp -m state --state RELATED -j ACCEPT
#dla samby
iptables -A INPUT -p tcp --dport 135 -m state --state NEW -j ACCEPT
iptables -A INPUT -p udp --dport 137 -m state --state NEW -j ACCEPT
iptables -A INPUT -p udp -s 0.0.0.0/0 --dport 138 -j ACCEPT
iptables -A INPUT -p tcp -s 0.0.0.0/0 --dport 139 -j ACCEPT
iptables -A INPUT -p tcp -s 0.0.0.0/0 --dport 445 -j ACCEPT
iptables -A OUTPUT -p tcp -s 0.0.0.0/0 --dport 135 -j ACCEPT
iptables -A OUTPUT -p udp -s 0.0.0.0/0 --dport 137 -j ACCEPT
iptables -A OUTPUT -p udp -s 0.0.0.0/0 --dport 138 -j ACCEPT
iptables -A OUTPUT -p tcp -s 0.0.0.0/0 --dport 139 -j ACCEPT
iptables -A OUTPUT -p tcp -s 0.0.0.0/0 --dport 445 -j ACCEPT
#polaczenia nawiazane
iptables -A INPUT -j ACCEPT -m state --state ESTABLISHED,RELATED
iptables -A FORWARD -j ACCEPT -m state --state ESTABLISHED,RELATED
iptables -A OUTPUT -j ACCEPT -m state --state ESTABLISHED,RELATED
# udostepniaie internetu w sieci lokalnej
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -j MASQUERADE
iptables -A FORWARD -s 192.168.10.0/24 -j ACCEPT

tylko ze porty 135,137,138,445 mam zamknięte, taki rezultat pokazuje 
nmap.A chyba bez tych portów samba nie ruszy?Czy tez jestem w 
błędzie?Dlaczego nie działa mi samba?Proszę o wskazówki.

Pozdrawiam
Jarek
Technical Details
Message-ID: <gbg4cf$ki9$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: Jarek <jarekpc@vp.pl>
Newsgroups: alt.pl.comp.os.linux.debian
Subject: samba na debian
Date: Thu, 25 Sep 2008 15:40:28 +0200
Organization: Onet.pl
Lines: 77
Message-ID: <gbg4cf$ki9$1@news.onet.pl>
NNTP-Posting-Host: fbc98.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1222350031 21065 83.13.28.98 (25 Sep 2008 13:40:31 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Thu, 25 Sep 2008 13:40:31 +0000 (UTC)
X-Sender: ON6K60tY3Y0nbya1GWlVIA==
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit