Can not see linux host until i reset Firewall ....... why ?

Upon boot up of my linux host I can not see it from my windows machine. This is what I have to do to get it working via hostname.

I have SUSE 11.2 running with the firewall switched on. I can ping linux via IP but not the hostname. I switch off the firewall and try again with the desired result. I switch the firewall back on and I’am still able to ping the linux machine via hostname.

Why is it that i have to switch the firewall off and back on again to work with the hostname from windows ?

Here is a great link on Networking in Linux that you can work your way through by swerdna :slight_smile:

openSUSE SuSE Linux HOWTOs and Tutorials by Swerdna

Cheers!
etech97

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

That doesn’t make sense really. Whether you use an IP address or a
hostname (which I take to mean just ‘yourbox’ and not
‘yourbox.something.tld’) is completely irrelevant to the destination
system since any use of a name (whether just a hostname or a full DNS
name) is resolved to an IP address by the source system before a single
ICMP (ping) packet leaves the source system. Anyway, what you’re stating
doesn’t make sense. Perhaps you could include the command(s) you are
using verbatim and that may help clarify something.

Good luck.

On 07/04/2010 09:56 PM, bradatschs wrote:
>
> Upon boot up of my linux host I can not see it from my windows machine.
> This is what I have to do to get it working via hostname.
>
> I have SUSE 11.2 running with the firewall switched on. I can ping
> linux via IP but not the hostname. I switch off the firewall and try
> again with the desired result. I switch the firewall back on and I’am
> still able to ping the linux machine via hostname.
>
> Why is it that i have to switch the firewall off and back on again to
> work with the hostname from windows ?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMMVpZAAoJEF+XTK08PnB5/egP/A3JzgqNhUs63NYRm+ZL/O0l
LLEt9VnV80fbubFNlGgO2m+Qx32tVSsbHAxLT6+Wt14nZZA/xeIZOPtYTn7Hjrkf
yn+k+K31MDnFhsjK9ePPFa7p6dnoQ/FCtclUZ2Tjh2GnFOYLITRV2GORF57WxYtE
POPLLqe/EoI0B44ZrEt2sToc3Hfpt6Lc7uuINlPe9CYwW9HSpbn72Z3VfOUovA2z
c86iTg0z7dQAuzqJtPBqyoASj8vnzz1GHIwERYWEZle+BhSXay1en7AzAOqSE26w
XiE+ZQxftfJ4QL3hXW8sCd3zSFU+5rD1z6Zp5UdQrsTsWdGbdpC7XGMXfcPG836m
Mx2Jn3eAPWLHt5JoEdkY8YbR8u/6fs1aNaRja9UDr0uK3ZIpLsgpPRdPGLaxvCr/
C4tlaVFASq+Grf0ZjdXcvIJEjTPJOvXBS0hcSIxZAcxDbsrk8LD3QN90FkieXJJ9
2Z4YSMulb+I/NgcyWeQ69jrO1jmKkoxt4fXPNQw/fROdseTXbsGmymVd6sL76UQZ
4UXIXwzFq4mQwN3NjCS6VlDePTQNK8G5e1YS0KwpQ5krIjnh7LNfp9fqPAstkEau
ziCsBaNU00ysFjQDlgWqj3+wtVP/PvLr/ETln8Teyt9tm98p3WAiHxUcwEBb6PWB
dJsRdHGB0WTZ8ZRTKTYC
=33tC
-----END PGP SIGNATURE-----

On Sun July 4 2010 10:56 pm, bradatschs wrote:

>
> Upon boot up of my linux host I can not see it from my windows machine.
> This is what I have to do to get it working via hostname.
>
> I have SUSE 11.2 running with the firewall switched on. I can ping
> linux via IP but not the hostname. I switch off the firewall and try
> again with the desired result. I switch the firewall back on and I’am
> still able to ping the linux machine via hostname.
>
> Why is it that i have to switch the firewall off and back on again to
> work with the hostname from windows ?
>
>
bradatschs;
Check that you have “netbios server” allowed through the firewall.
[YaST->Security and Users->firewall->Allowed Services.] Windows will resolve
names via netbios. Your Samba server provides this service via nmbd. Once
you have turned off the firewall Windows will locate the server and cache the
IP.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

On 2010-07-05 03:56 GMT bradatschs wrote:

>
> Upon boot up of my linux host I can not see it from my windows
> machine. This is what I have to do to get it working via hostname.
>
> I have SUSE 11.2 running with the firewall switched on. I can ping
> linux via IP but not the hostname. I switch off the firewall and try
> again with the desired result. I switch the firewall back on and I’am
> still able to ping the linux machine via hostname.
>
> Why is it that i have to switch the firewall off and back on again to
> work with the hostname from windows ?

Interesting.

Access by name requires that you either have a name server in your
network, or that you define the names in the local “hosts” file (yes,
windows also has one).

However… making educated guesses… Windows has some sort of name
discovering method within windows machines. Linux support some of this
via samba, and the firewall block these unless you open it.

Or it could be the avahi services.

How to “solve” this?

Open a terminal (xterm, konsole, gnome-terminal) and type
“tailf /var/log/firewall”. Then attempt the connection by name, and see
what messages are printed in that terminal. Something perhaps like
“SFW2-INext-DROP-…” coming from the windows machine.

That will tell what ports need to be opened.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Minas Tirith))

On Mon July 5 2010 09:21 am, Carlos E. R. wrote:

> On 2010-07-05 03:56 GMT bradatschs wrote:
>
>>
<snip>
> Interesting.
>
> Access by name requires that you either have a name server in your
> network, or that you define the names in the local “hosts” file (yes,
> windows also has one).
>
> However… making educated guesses… Windows has some sort of name
> discovering method within windows machines. Linux support some of this
> via samba, and the firewall block these unless you open it.
>
<snip>

For windows networking (workgroup, NT4 domain) names can be resolved via
broadcast, WINS as well as LMhosts and hosts.


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Hello venzkep

Thanks for the Tip¸ setting the “netbios server” in allowed services at the Linux firewall setting worked straight away.

BTW thank you to every one that responded to my query

Regards
bradatschs

On Fri July 9 2010 06:46 am, bradatschs wrote:

>
> Hello venzkep
>
> Thanks for the Tip¸ setting the “netbios server” in allowed services at
> the Linux firewall setting worked straight away.
>
> BTW thank you to every one that responded to my query
>
> Regards
> bradatschs
>
>
bradatschs;

Glad you have it sorted out, thanks for posting back and enjoy your network.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green