Configure UFW to browse W7 Share

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

Configure UFW to browse W7 Share

Postby Kiwi_Tim on Tue Mar 13, 2012 5:25 am

Hello,

I'm new to linux and am now enjoying Linux Mint 11. Very impressed with it.

I am attempting to share folders on my W7 PC (located at 192.168.1.104). Have got Samba configured to enable sharing. Can see my LM11 samba share from W7, and can see my W7 shared folders from within LM11.

However, if I enable the UFW, I cannot see the W7 folders from LM11 (but W7 can see LM11 share). Below are my firewall rules.

51413/tcp allow in from anywhere
51413/udp allow in from anywhere
135/tcp allow in from 192.168.1.104
137/udp allow in from 192.168.1.104
138/udp allow in from 192.168.1.104
139/tcp allow in from 192.168.1.104
445/tcp allow in from 192.168.1.104

How can I keep my firewall enabled and see my W7 share folders from within LM11?
Is there some port that needs to be opened other than those above?

Many thanks,
Tim
New Zealand
Kiwi_Tim
Level 1
Level 1
 
Posts: 12
Joined: Tue Mar 13, 2012 4:53 am

Linux Mint is funded by ads and donations.
 

Re: Configure UFW to browse W7 Share

Postby altair4 on Tue Mar 13, 2012 6:51 am

The problem may not be how you are configuring your firewall. The problem may be the firewall itself.

Look at the last line of the following file: /etc/default/ufw
If it looks like this:
# extra connection tracking modules to load
IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_irc nf_nat_irc"

Add one more option: nf_conntrack_netbios_ns

So that it looks like this:
IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_irc nf_nat_irc nf_conntrack_netbios_ns"

It's a hard thing to view and edit since there are so many underscores and spaces that it's easy to make a typo and the added option must be within the quotes like the other options. You will have to restart the firewall or just reboot.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4660
Joined: Tue Feb 03, 2009 10:27 am

Re: Configure UFW to browse W7 Share [solved]

Postby Kiwi_Tim on Tue Mar 13, 2012 9:18 pm

Thanks. The hair pulling has stopped. Your suggestion worked perfectly!
Kiwi_Tim
Level 1
Level 1
 
Posts: 12
Joined: Tue Mar 13, 2012 4:53 am


Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 7 guests