ok, many thanks for sicking with me on this....
Typed this, and added a password.
host can see itself!
Code:
root@tg # ping tg
PING tg (192.168.0.20) 56(84) bytes of data.
64 bytes from tg (192.168.0.20): icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from tg (192.168.0.20): icmp_seq=2 ttl=64 time=0.025 ms
64 bytes from tg (192.168.0.20): icmp_seq=3 ttl=64 time=0.023 ms
--- tg ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.023/0.027/0.033/0.004 ms
But the hostname might not be in /etc/hosts, remote host cannot ping by hostname :-
Code:
root@ecm # ping tg
ping: unknown host tg
But can see it!:-
Code:
root@ecm # ping 192.168.0.20
PING 192.168.0.20 (192.168.0.20) 56(84) bytes of data.
64 bytes from 192.168.0.20: icmp_seq=1 ttl=64 time=0.360 ms
64 bytes from 192.168.0.20: icmp_seq=2 ttl=64 time=0.362 ms
64 bytes from 192.168.0.20: icmp_seq=3 ttl=64 time=0.349 ms
--- 192.168.0.20 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.349/0.357/0.362/0.005 ms
Never seen this before, but did it anyway :
Code:
root@tg # ping tg.ipadd.re.ss
ping: unknown host tg.ipadd.re.ss
root@tg # ping ecm.ipadd.re.ss
ping: unknown host ecm.ipadd.re.ss
nslookup gave a interesting response :-
Code:
root@tg # nslookup tg
;; connection timed out; no servers could be reached
root@tg # nslookup ecm
;; connection timed out; no servers could be reached
root@ecm # nslookup tg
;; connection timed out; no servers could be reached
root@ecm # nslookup ecm
;; connection timed out; no servers could be reached
Both servers could not resolve themselves or each other!
Now things get interesting!
Code:
root@tg # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT esp -- anywhere anywhere
ACCEPT ah -- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT tcp -- anywhere anywhere tcp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
root@ecm # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
When I see "firewall", I start seeing lightbulbs!
But still need help to ensure this is the issue. Ie how to turn off.
I ran the setenfource, I need to read up on selinux and this. I dont think it was ever ran on "ecm" server.
Code:
root@tg # setenforce 0
Before your post I had done some other research, some of which might be of use/interest! :-
findsmb can only see ecm host :-
Code:
root@tg # findsmb
*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.0.1 CRAWD11514 +[RRDSL] [Windows 5.0] [Windows 2000 LAN Manager]
192.168.0.10 ECM +[SCORPION2] [Unix] [Samba 3.0.33-3.7.el5]
root@ecm # findsmb
*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.0.1 CRAWD11514 +[RRDSL] [Windows 5.0] [Windows 2000 LAN Manager]
192.168.0.10 ECM +[SCORPION2] [Unix] [Samba 3.0.33-3.7.el5]
The shares listed, on not-working host, shows the share :-
Code:
root@tg # net -l share -S tg
Password:
Enumerating shared resources (exports) on remote server:
Share name Type Description
---------- ---- -----------
dev1 Disk tg dev user folder
IPC$ IPC IPC Service (Samba 3.0.33-3.7.el5)
Even via IP, the share is there:-
Code:
root@tg # net -l share -S 192.168.0.20
Password:
Enumerating shared resources (exports) on remote server:
Share name Type Description
---------- ---- -----------
dev1 Disk tg dev user folder
IPC$ IPC IPC Service (Samba 3.0.33-3.7.el5)
From the other server/host, its own shares are listed fine :-
Code:
root@ecm # net -l share -S ecm
Password:
Enumerating shared resources (exports) on remote server:
Share name Type Description
---------- ---- -----------
dev Disk ecm dev user folder
scorpion2 Disk scorpion2 drive
IPC$ IPC IPC Service (Samba 3.0.33-3.7.el5)
But from the remote server/host, it cannot find the hostname (might be hosts as above)
Code:
root@ecm # net -l share -S tg
Unable to find a suitable server
It can ping this IP, but when trying the list the shares :-
Code:
root@ecm # net -l share -S 192.168.0.20
Password:
Could not connect to server 192.168.0.20
Connection failed: NT_STATUS_HOST_UNREACHABLE
Listing the users on the share :
Code:
root@tg # net -l user -S ecm
Password:
User name Comment
-----------------------------
dev
root@tg # net -l user -S tg
Unable to find a suitable server
root@tg # net -l user -S localhost
Password:
User name Comment
-----------------------------
dev
nobody
Ok, some more lookup stuff :-
Code:
root@tg # nmblookup ecm
querying ecm on 192.168.0.255
192.168.0.10 ecm<00>
root@tg # nmblookup tg
querying tg on 192.168.0.255
name_query failed to find name tg
Code:
root@tg # nmblookup -A 192.168.0.20
Looking up status of 192.168.0.20
TG <00> - B <ACTIVE>
TG <03> - B <ACTIVE>
TG <20> - B <ACTIVE>
SCORPION2 <1e> - <GROUP> B <ACTIVE>
SCORPION2 <00> - <GROUP> B <ACTIVE>
MAC Address = 00-00-00-00-00-00
root@tg # nmblookup -A 192.168.0.10
Looking up status of 192.168.0.10
ECM <00> - B <ACTIVE>
ECM <03> - B <ACTIVE>
ECM <20> - B <ACTIVE>
..__MSBROWSE__. <01> - <GROUP> B <ACTIVE>
SCORPION2 <1d> - B <ACTIVE>
SCORPION2 <1e> - <GROUP> B <ACTIVE>
SCORPION2 <00> - <GROUP> B <ACTIVE>
MAC Address = 00-00-00-00-00-00
root@ecm # nmblookup -A 192.168.0.10
Looking up status of 192.168.0.10
ECM <00> - B <ACTIVE>
ECM <03> - B <ACTIVE>
ECM <20> - B <ACTIVE>
..__MSBROWSE__. <01> - <GROUP> B <ACTIVE>
SCORPION2 <1d> - B <ACTIVE>
SCORPION2 <1e> - <GROUP> B <ACTIVE>
SCORPION2 <00> - <GROUP> B <ACTIVE>
MAC Address = 00-00-00-00-00-00
root@ecm # nmblookup -A 192.168.0.20
Looking up status of 192.168.0.20
No reply from 192.168.0.20
root@ecm # ping 192.168.0.20
PING 192.168.0.20 (192.168.0.20) 56(84) bytes of data.
64 bytes from 192.168.0.20: icmp_seq=1 ttl=64 time=0.553 ms
64 bytes from 192.168.0.20: icmp_seq=2 ttl=64 time=0.230 ms
64 bytes from 192.168.0.20: icmp_seq=3 ttl=64 time=0.172 ms
--- 192.168.0.20 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.172/0.318/0.553/0.168 ms
root@tg # smbstatus
Samba version 3.0.33-3.7.el5
PID Username Group Machine
-------------------------------------------------------------------
Service pid machine Connected at
-------------------------------------------------------
No locked files
root@ecm # smbstatus
Samba version 3.0.33-3.7.el5
PID Username Group Machine
-------------------------------------------------------------------
Service pid machine Connected at
-------------------------------------------------------
dev 3742 crawd11514 Tue Jun 2 15:54:44 2009
scorpion2 3742 crawd11514 Tue Jun 2 15:45:02 2009
No locked files
again, thanks for sticking with me! (so far!)