I understand that say putting in the following:
127.0.0.1 some.machine.com
into a hosts file will force some.machine.com resolve locally.
What if I do not want a specific url not to resolve at all? say "dev/null"
You can apply the same logic to negate an URL from resolving which you actually did allow to resolve.
For example, I blocked
www.TechBeamers.com
Update the host file with the following entry:
1.1.1.1 www.TechBeamers.com
Before updating the host file:
Pinging www.TechBeamers.com [xyz.xx.yy.xyz] with 32 bytes of data:
Reply from xyz.xx.yy.xyz: bytes=32 time=304ms TTL=50
Reply from xyz.xx.yy.xyz: bytes=32 time=293ms TTL=50
Post updating the host file:
Pinging www.TechBeamers.com [1.1.1.1] with 32 bytes of data:
Request timed out.
Request timed out.
Related
I use MacOS 10.14.6 and few days ago I faced with a problem on my computer with localhost.
Rubymine can't connect to database with an error "java.net.NoRouteToHostException: Can't assign requested address (Address not available).". Also when I run puma server on 0.0.0.0:3000, browser can't open page on this address, and when I run server on 127.0.0.1:3000, browser can't open page on this address too, but can open on localhost:3000. I ran ping and got this output:
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 0
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 1
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 2
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 3
^C
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss```
WARP was the cause of the problem. Issue started after disabling the app. Disabling and reboot or enabling the app resolved the issue.
docker pull rhel7:7.3
Pulling repository docker.io/library/rhel7
Error while pulling image: Get
https://index.docker.io/v1/repositories/library/rhel7/images: read tcp
X.X.X.X:33074->52.44.135.200:443: read: connection reset by peer
[Both docker run -it & docker pull is giving the same error]
Hi all,
I am trying to pull a docker image and seeing the above mentioned error.
My Linux server is behind a proxy.
I tried topi ng google.com to ensure I have connectivity to internet and that worked as well.
ping google.com
PING google.com (172.217.3.174) 56(84) bytes of data.
64 bytes from sea15s11-in-f14.1e100.net (172.217.3.174): icmp_seq=1 ttl=53 time=16.1 ms
64 bytes from sea15s11-in-f14.1e100.net (172.217.3.174): icmp_seq=2 ttl=53 time=15.9 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
Any suggestions to fix this issue please?
I have a weird problem I can't solve due to my lack of knowledge.
I have a local server running Dnsmasq. On my computer (Windows 10) I have Acrylic DNS Proxy which directs all requests ending with .local to the local server. It works great, however one domain respons with an unknown IPv6 address.
> ping testdomain.local
Pinging TESTDOMAIN [IPv6 address] with 32 bytes of data:
Reply from IPv6 address: time<1ms
I can't figure out why testdomain.local is reversed to TESTDOMAIN. All my other local domains respons as expected:
> ping testdomain2.local
Pinging testdomain2.local [local server address] with 32 bytes of data:
Reply from local server address: bytes=32 time<1ms TTL=64
Just was walking around till I tried to ping a domain .
But I surprised that it was the domain of the localhost !
I went to see what the wrong was , and how this domain set itself .
However,I didn't find anything that related to it in the localhost OS !
I tried to ping it via online ping service , and the surprise is here , it pings the localhost of the service host !
The domain is :
securitytube.com
Is there any explanation ?
This should be migrated to superuser but the answer to your question is because the owners of that domain have an IP address of 0.0.0.0 set...
$host securitytube.com
securitytube.com has address 0.0.0.0
securitytube.com mail is handled by 0 mail.happyisp.com.
$ping securitytube.com
PING securitytube.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.089 ms
Most linux boxes will presume that's the loop-back address (Hence return 127.0.0.1) Windows boxes appear to not do anything other than error out.
c:\ping 0.0.0.0
Pinging 0.0.0.0 with 32 bytes of data:
PING: transmit failed. General failure.
I successfully installed Alfresco 4.2.d under Ubuntu 13.10 using IP: 192.168.0.200 (mbnoimi-virtual) and I can use the web interface without any problem through the network. But I can't access CIFS using Windows share.
I tried to access CIFS by using theses ways but all of them failed!
\\mbnoimi-virtuala
\\mbnoimi-virtuala\Alfresco
\\192.168.0.200\Alfresco
Error message
Check the spelling of the name. Otherwise, there might be a problem
with your network. To try identify and resolve network problems, click
Diagnose
Log of one of the attached PCs which can access Alfresco's web interface but can't access CIFS
C:\Users\user>ping mbnoimi-virtual
Pinging mbnoimi-virtual [192.168.0.200] with 32 bytes of data:
Reply from 192.168.0.200: bytes=32 time<1ms TTL=64
Reply from 192.168.0.200: bytes=32 time<1ms TTL=64
Reply from 192.168.0.200: bytes=32 time<1ms TTL=64
Reply from 192.168.0.200: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.0.200:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Users\user>ping mbnoimi-virtuala
Ping request could not find host mbnoimi-virtuala. Please check the name and try
again.
C:\Users\user>nbtstat -a mbnoimi-virtual
Local Area Connection:
Node IpAddress: [192.168.0.8] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
MBNOIMI-VIRTUAL<00> UNIQUE Registered
MBNOIMI-VIRTUAL<03> UNIQUE Registered
MBNOIMI-VIRTUAL<20> UNIQUE Registered
WORKGROUP <1E> GROUP Registered
WORKGROUP <00> GROUP Registered
MAC Address = 00-00-00-00-00-00
C:\Users\user>ping MBNOIMI-VIRTUALA
Ping request could not find host MBNOIMI-VIRTUALA. Please check the name and try
again.
C:\Users\user>
CIFS configures: /opt/alfresco-4.2.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default/file-servers.properties
filesystem.name=Alfresco
filesystem.acl.global.defaultAccessLevel=
filesystem.avm.name=AVM
filesystem.avm.enabled=true
filesystem.avm.stores=site,staging,author
filesystem.storeName=${spaces.store}
filesystem.rootPath=${protocols.rootPath}
filesystem.renameShufflePattern=(.*[a-f0-9]{8}+$)|(.*\\.tmp$)|(.*\\.wbk$)|(.*\\.bak$)|(.*\\~$)
filesystem.renameCSVShufflePattern=.*[a-f0-9]{8}+$
filesystem.setReadOnlyFlagOnFolders=false
cifs.enabled=true
cifs.serverName=${localname}A
cifs.domain=
cifs.broadcast=255.255.255.255
cifs.bindto=
cifs.ipv6.enabled=false
cifs.hostannounce=true
cifs.disableNIO=false
cifs.disableNativeCode=false
cifs.sessionTimeout=900
cifs.maximumVirtualCircuitsPerSession=16
cifs.tcpipSMB.port=445
cifs.netBIOSSMB.sessionPort=139
cifs.netBIOSSMB.namePort=137
cifs.netBIOSSMB.datagramPort=138
cifs.WINS.autoDetectEnabled=true
cifs.WINS.primary=192.168.0.200
cifs.WINS.secondary=192.168.0.200
cifs.sessionDebug=
cifs.pseudoFiles.enabled=true
cifs.pseudoFiles.explorerURL.enabled=true
cifs.pseudoFiles.explorerURL.fileName=__Alfresco.url
cifs.pseudoFiles.shareURL.enabled=false
cifs.pseudoFiles.shareURL.fileName=__Share.url
ftp.enabled=true
ftp.port=21
ftp.bindto=
ftp.dataPortFrom=0
ftp.dataPortTo=0
ftp.keyStore=
ftp.keyStoreType=JKS
ftp.keyStorePassphrase=
ftp.trustStore=
ftp.trustStoreType=JKS
ftp.trustStorePassphrase=
ftp.requireSecureSession=true
ftp.sslEngineDebug=false
ftp.sessionDebug=
nfs.enabled=false
nfs.nodeMonitor.enabled=${nfs.enabled}
nfs.mountServerPort=0
nfs.nfsServerPort=2049
nfs.rpcRegisterPort=0
nfs.portMapperPort=111
nfs.portMapperEnabled=false
nfs.sessionDebug=
nfs.mountServerDebug=false
filesystem.cluster.debugFlags=
filesystem.lockKeeperEnabled=true
filesystem.lockKeeperTimeout=7200
filesystem.lockKeeperRefreshCronExpression=0 * */1 * * ?
P.S.
Windows firewall is off
I'm trying to access Alfresco's CIFS through Windows 7 32bit
Alfresco uses privileged ports for CIFS/SMB. If your Alfresco is not executed as root then you should read this http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/tasks/fileserv-CIFS-useracc.html
You could also set the following loggers to get more detailed logs:
log4j.logger.org.alfresco.smb.protocol=debug
log4j.logger.org.alfresco.fileserver=debug
I found the solution; This issue happens because of samba conflicting so all what I did to fix it is un-installing whole samba from my Ubuntu then restart Alfresco.
sudo apt-get purge libsmbclient samba samba-common winbind