Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2001 10:47:52 +0000
From:      Mike D <d01f1n@yahoo.com>
To:        questions@freebsd.org
Subject:   samba stopped working
Message-ID:  <20011214104812.IOHR3849.mta06-svc.ntlworld.com@there>
In-Reply-To: <001301c183de$035eb000$5507b084@fernunihagen.de>
References:  <20011211150924.GA455@es-dhcp-85.fernuni-hagen.de> <001301c183de$035eb000$5507b084@fernunihagen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
I have been changing some config on my freebsd box (4.4 custom) and now samba 
is not responsding. Well, the main symptom I have is that I can not connect 
to any shared drives via Win2K. The box is also running ipfw, natd and dhcpd, 
which work fine (as far as I can tell). I can ping the box, it gives me a 
dhcp lease and I can also ssh in.

I would be very very greatful if somebody could gove any advice as to why 
this could be happening... PLEASE HELP! :)

here is the nmap result
-- nmap --
Port       State       Service
22/tcp     open        ssh
25/tcp     open        smtp
139/tcp    open        netbios-ssn
548/tcp    open        afpovertcp
587/tcp    open        submission
1473/tcp   open        openmath
3306/tcp   open        mysql
6000/tcp   open        X11
8007/tcp   open        jserv
8080/tcp   open        http-proxy
--- end nmap ---

Here are my config files:

--- ipfw.conf ---
add     5 divert 8668 ip from any to any via xl1
add    50 allow ip from any to any via lo0
add    51 deny ip from any to 127.0.0.0/8
add    52 deny ip from 127.0.0.0/8 to any
add   100 allow ip from any to any via lo0
add   200 allow udp from 194.168.8.100 53 to any in recv xl1
add   202 allow udp from any to 194.168.8.100 53 out xmit xl1
add   400 allow tcp from any to any out xmit xl1 setup
add   401 allow tcp from any to any via xl1 established
add   450 allow tcp from any to any 22 setup
add   500 allow icmp from any to me via xl1 icmptype 0,3,11
add   501 deny icmp from any to me via xl1 icmptype 0,8
add   502 allow icmp from any to any via xl0
add 50000 unreach host ip from any to any
--- end ipfw.conf ---

here is my old ipfw.conf, maybe somebody can spot what change (i have made 
some other ones) has screwed things up?

--- ipfw.old ---
add 50 allow ip from any to any via lo0
add 51 deny ip from any to 127.0.0.0/8
add 52 deny ip from 127.0.0.0/8 to any
add 60 divert 8668 ip from any to any via xl1
add 100 allow ip from any to any via xl0
add 200 allow udp from 194.168.8.100 53 to any in recv xl1
add 201 allow udp from 194.168.4.100 53 to any in recv xl1
add 202 allow udp from any to 194.168.8.100 53 out xmit xl1
add 203 allow udp from any to 194.168.4.100 53 out xmit xl1
add 400 allow tcp from any to any out xmit xl1 setup
add 401 allow tcp from any to any via xl1 established
add 450 allow tcp from any to any 22 setup
add 50000 unreach host ip from any to any
--- ipfw.old end ---

--- rc.conf ---
gateway_enable="YES"
hostname="host4...com" 
 
ntpupdate_enable="YES"
ntpdate_enable="YES"
ntpdate_flags="ntp2.ja.net"
xntpd_enable="YES"
 
inetd_enable="YES"
sshd_enable="YES"
 
ifconfig_xl0="inet 192.10.10.4 netmask 255.255.255.0"
ifconfig_xl1="DHCP"
 
natd_enable="YES"
natd_interface="xl1"
natd_flags="-f /etc/natd.conf"
firewall_enable="YES"
firewall_type="/etc/ipfw.conf"
kern_securelevel_enable="NO"
 
keymap="uk.cp850"
linux_enable="YES"
nfs_reserved_port_only="YES"
sendmail_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
--- end rc.conf ---

--- natd.conf ---
interface xl1
dynamic yes
use_sockets yes
same_ports yes
log_denied yes
--- end natd.conf ---

--- smb.conf (extract) ---
hosts allow = 192.10.10.
encrypt passwords = yes
socket options = TCP_NODELAY
interfaces = 192.10.10.4
[homes]
   comment = Home Directories
   browseable = no
   writeable = yes
[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes
[public]
   comment = Public
   path = /usr/samba
   available = yes
   public = yes
   writeable = yes
   printable = no
   write list = @staff
--- end smb.conf ---

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011214104812.IOHR3849.mta06-svc.ntlworld.com>