Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have two interfaces. One (eth0, 192.168.1.x) is my network, my internet connection. I pay for my own because of bandwidth issues. The other (eth1, 192.168.0.x) is the other occupants' LAN that I would like to share my files with, but ANY traffic other than Samba is forbidden. I am at my wit's end trying to figure this out, and I cannot get a single reply anywhere about this. This is what is contained in my iptables-save backup (I just edit the .txt file and do an iptables-restore):

-A INPUT -i lo -s 192.168.0.0/24 -p icmp --icmp-type 8 -j ACCEPT
-A INPUT -i lo -s 192.168.0.0/24 -p icmp --icmp-type 0 -j ACCEPT
-A INPUT -i lo -s 192.168.0.0/24 -p udp -m multiport --dports 137,138 -j ACCEPT
-A INPUT -i lo -s 192.168.0.0/24 -p tcp -m multiport --dports 139,445 -j ACCEPT
-A INPUT -i lo -s 192.168.0.0/24 -j REJECT
-A OUTPUT -d 192.168.0.0/24 -p icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -d 192.168.0.0/24 -p icmp --icmp-type 0 -j ACCEPT
-A OUTPUT -d 192.168.0.0/24 -p udp -m multiport --dports 137,138 -j ACCEPT
-A OUTPUT -d 192.168.0.0/24 -p tcp -m multiport --dports 139,445 -j ACCEPT
-A OUTPUT -d 192.168.0.0/24 -j REJECT

Before "-i lo" was in there smbtree would throw NT_STATUS_BAD_NETWORK_NAME and NT_STATUS_UNSUCCESSFUL errors for the eth1 network computers. Once added the error goes away, but I cannot see this server on that network, nor can I even connect to it manually. They are all Windows machines. I can verify with "lsof -P -i -n" that smbd and nmbd are listening on those ports and protocols only. I am pulling out my hair over something that is likely so simple.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.