I have changed telnet port to 9999 via /etc/services but I cannot make it work.
On default port, I can telnet localhost and it works fine but after the change I cannot connect via telnet localhost 9999. I have attempted yay -Rv firewalld yet the port is still locked.
Here is the list of my currently running services:
List of running services
#systemctl | grep running
proc-sys-fs-binfmt_misc.automount loaded active running Arbitrary Executable File Formats File System Automount Point
init.scope loaded active running System and Service Manager
session-2.scope loaded active running Session 2 of User anon
accounts-daemon.service loaded active running Accounts Service
atd.service loaded active running Deferred execution scheduler
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
dbus-broker.service loaded active running D-Bus System Message Bus
dirmngr@etc-pacman.d-gnupg.service loaded active running GnuPG network certificate management daemon for /etc/pacman.d/gnupg
NetworkManager.service loaded active running Network Manager
opensnitchd.service loaded active running Application firewall OpenSnitch
polkit.service loaded active running Authorization Manager
power-profiles-daemon.service loaded active running Power Profiles daemon
rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
sddm.service loaded active running Simple Desktop Display Manager
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running User Login Management
systemd-udevd.service loaded active running Rule-based Manager for Device Events and Files
tor.service loaded active running Anonymizing overlay network for TCP
udisks2.service loaded active running Disk Manager
upower.service loaded active running Daemon for power management
user@1000.service loaded active running User Manager for UID 1000
wpa_supplicant.service loaded active running WPA supplicant
avahi-daemon.socket loaded active running Avahi mDNS/DNS-SD Stack Activation Socket
dbus.socket loaded active running D-Bus System Message Bus Socket
dirmngr@etc-pacman.d-gnupg.socket loaded active running GnuPG network certificate management daemon for /etc/pacman.d/gnupg
systemd-journald-dev-log.socket loaded active running Journal Socket (/dev/log)
systemd-journald.socket loaded active running Journal Sockets
systemd-udevd-control.socket loaded active running udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
$ telnet localhost 9999
Trying ::1… Connection failed: Connection refused Trying 127.0.0.1… telnet: Unable to connect to remote host: Connection refused
What could be blocking the port?
I don’t seem to have nftables or iptables running so there shouldn’t be anything to block it.