I have problem to access some sites but not all, but I have internet connectivity normally.
Example this site below cannot be accessed:
https://www.linode.com/community/qu...telnet-on-localhost-25-how-do-i-fix-it-solved
I get the following message in Mozilla;
Also, I was wondering if I am only using ip version 6 and this is the problem.
I am also unable to telnet to localhost 127.0.0.1 but I can ssh.
Also, I am programming a small client server application. The server is listening fine but the client cannot connect to this server on the same machine getting connection refused, while the client can connect and get out from any internet time server.
Relevant outputs below:
But the server is listening below....
But ssh works fine....
Example this site below cannot be accessed:
https://www.linode.com/community/qu...telnet-on-localhost-25-how-do-i-fix-it-solved
I get the following message in Mozilla;
Code:
Hmm. We’re having trouble finding that site.
We can’t connect to the server at www.linode.com.
If that address is correct, here are three other things you can try:
Also, I was wondering if I am only using ip version 6 and this is the problem.
I am also unable to telnet to localhost 127.0.0.1 but I can ssh.
Also, I am programming a small client server application. The server is listening fine but the client cannot connect to this server on the same machine getting connection refused, while the client can connect and get out from any internet time server.
Relevant outputs below:
$ cat /etc/rc.conf
Code:
hostname="Tokyo"
keymap="fr.kbd"
ifconfig_re0="DHCP"
ifconfig_re0_ipv6="inet6 accept_rtadv"
local_unbound_enable="YES"
sshd_enable="YES"
moused_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
kld_list="/boot/modules/radeonkms.ko"
$ ifconfig -a
Code:
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether d0:bf:9c:99:4a:2d
inet6 fe80::d2bf:9cff:fe99:4a2d%re0 prefixlen 64 scopeid 0x1
inet6 2a02:a03f:3ea9:9700:d2bf:9cff:fe99:4a2d prefixlen 64 autoconf
inet6 fd60:78c0:18d6:0:d2bf:9cff:fe99:4a2d prefixlen 64 autoconf
inet 192.168.1.27 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Code:
./daytimetcpcli 127.0.0.1
port: 3328
ip: 127.0.0.1
ip: 0
connect error: Connection refused
But the server is listening below....
lsof -i -na -sTCP:LISTEN
Code:
$
lsof: WARNING: compiled for FreeBSD release 12.1-RELEASE-p4; this is 12.1-RELEASE.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
local-unb 859 unbound 4u IPv6 0xfffff80044583000 0t0 TCP [::1]:domain (LISTEN)
local-unb 859 unbound 6u IPv4 0xfffff8004457ab70 0t0 TCP 127.0.0.1:domain (LISTEN)
sshd 1127 root 3u IPv6 0xfffff80005d603d0 0t0 TCP *:ssh (LISTEN)
sshd 1127 root 4u IPv4 0xfffff80005d60000 0t0 TCP *:ssh (LISTEN)
sendmail 1130 root 3u IPv4 0xfffff80005f8fb70 0t0 TCP 127.0.0.1:smtp (LISTEN)
daytimetc 1317 ippo 3u IPv4 0xfffff800527c0000 0t0 TCP *:45501 (LISTEN)
Code:
$ telnet 127.0.0.1
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
$ cat /etc/hosts
Code:
# $FreeBSD: releng/12.1/lib/libc/net/hosts 338729 2018-09-17 18:56:47Z brd $
#
# Host Database
#
# This file should contain the addresses and aliases for local hosts that
# share this file. Replace 'my.domain' below with the domainname of your
# machine.
#
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
#
#
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
#
# Imaginary network.
#10.0.0.2 myname.my.domain myname
#10.0.0.3 myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
# 10.0.0.0 - 10.255.255.255
# 172.16.0.0 - 172.31.255.255
# 192.168.0.0 - 192.168.255.255
$ ] ssh 127.0.0.1
Code:
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
ECDSA key fingerprint is SHA256:dfz/iOPCxlXOnJ4p6IGtCHE51LDjPt2pcrduta1StMI.
No matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)?