port

Where does ss command gather its data for ports etc

Where does ss command gather its data for ports etc When trying to see port clashes within my system, many websites online recommend using /etc/services or ss -tunl to see port info I am noticing /etc/services is providing different information to -ss on most occasions. Output comparison examples sudo cat /etc/services ftp 21/udp ftp 21/sctp …

Total answers: 2

Why is my LAN cable opening an UDP port on my computer?

Why is my LAN cable opening an UDP port on my computer? OS: Debian 12 I’m working on my OPSEC pretty often because security is very important for me. Now I have a new router which opens a port on my computer when I plug in the LAN cable. When I disconnect the LAN cable, …

Total answers: 2

Given a service name, get its port number?

Given a service name, get its port number? Hi I feel like this is an obvious question but I haven’t been able to get a good answer so far. Given the name of the service (which I know running on localhost) is there any networking command line tool like (netstat/ss) which will tell me what …

Total answers: 2

Does firefox using port 80 / How to stop it

Does firefox using port 80 / How to stop it Everytimes I open my pc and try $ lsof -i :80 I get COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME firefox 3082 totoXXX 41u IPv4 100396 0t0 TCP totoXXX-PC-E15-Gen-2:39000->yyz12s07-in-f3.1e100.net:http (ESTABLISHED) firefox 3082 totoXXX 93u IPv4 45722 0t0 TCP totoXXX-PC-E15-Gen-2:49470->82.221.107.34.bc.googleusercontent.com:http (ESTABLISHED) firefox 3082 totoXXX …

Total answers: 2

TCP port visible from inside nor outside

TCP port visible from inside nor outside I’ve used autossh (reverse) connecting to my server. The ssh side works like used to. But in an ARM64 system, my Ubuntu has less possibilities but this is another story (…). So what I see whit nmap the specific port with 127.0.0.1: they are open (and maybe listening) …

Total answers: 1

Is not possible change MySQL's port at Fedora Server 36

Is not possible change MySQL's port at Fedora Server 36 For Fedora Server 36 was installed MySQL 8 Community through the .rpm from MySQL Community Downloads. Now according with the Editing Conf. Files section is indicated to use the /etc/my.cnf.d/community-mysql-server.cnf file, but it does not exist, it because the /etc/my.cnf.d/ directory is empty, the truly …

Total answers: 2

How do I expose a port that an app is only allowing local connections to?

How do I expose a port that an app is only allowing local connections to? An app on linux-based "headless-box-1" is listening for HTTP connections on http://127.0.0.1:7860. Which restricts connections to self. But I wish it was listening for connections from any computer on the LAN. Is there a command I can run on the …

Total answers: 1

Socat specify source port

Socat specify source port How do I specify source port in socat? In netcat I can simply: nc -u -s 192.168.0.1 -p 8888 192.168.0.2 9999 I tried socat udp4:192.168.0.2:9999 STDIN:192.168.0.1:8888 It’s failed STDIN: wrong number of parameters (2 instead of 0) So how do I do it in socat? Asked By: Muhammad Ikhwan Perwira || …

Total answers: 1

Check what service is running on a specific tcp/udp port

Check what service is running on a specific tcp/udp port I’m looking for a command-line utility that allows me to check what service (eg: http/ftp/ssh) is running on a specific port of a remote machine. An example of how I imagine a program like this would operate: kess@KG-PC:~$ portcheck google.com:80 Port 80 of google.com is …

Total answers: 2

how to Find the port number according to PID

how to Find the port number according to PID The following command can be used to find out which process is listening on a particular port: netstat -ltnp | grep -w ‘:8011’ How can we do the opposite, find the port number according to PID number? Asked By: yael || Source lsof is more appropriate …

Total answers: 2

iptables not blocking access via ports?

iptables not blocking access via ports? I’m running Debian 8.11 with iptables v1.4.21 and ipset v6.23, protocol version: 6. I’m trying to block access to certain ports for all but a small set of hosts, but it doesn’t seem to be working. First of all, I put a small list of IP addresses into an …

Total answers: 1

bash script, check port response with bash's built-in /dev/tcp, time delay | hangs | speed up

bash script, check port response with bash's built-in /dev/tcp, time delay | hangs | speed up With this scripts i check if a host is response on a given port with the bash’s built-in /dev/tcp. I can use ip address or domains(hostnames). Script 1 #!/bin/bash HOST_NAME="127.1" HOST_PORT="80" if ( (exec 3<>/dev/tcp/${HOST_NAME}/${HOST_PORT}) 2> /dev/null); then echo …

Total answers: 1

Linux 64-bit SSH port numbers?

Linux 64-bit SSH port numbers? While there is usually no need for more than the 64k available ports, I am interested in the PoC that having a port number on 64 bits would mitigate the regular attacks on the access ports (ssh, vpn…). Having a 64b port makes it almost impossible to randomly attack a …

Total answers: 6

How to list all ports and service with nftables?

How to list all ports and service with nftables? It is simple to list all open ports and its services with firewll-cmd: sudo firewall-cmd –list-all How can get the list with nftables? Asked By: showkey || Source Here’s my nftables cheat sheet: Load rules: nft -f /etc/sysconfig/nftables.conf (this will append them to the existing ones, …

Total answers: 1

Port 3000 is always being hogged by grafana-server

Port 3000 is always being hogged by grafana-server I need port 3000 free for my dev work. But it’s being used by grafana-server, that I don’t remember ever installing. We do use it within our company so perhaps at some point it has been added to system somehow. Anyway, so I use this command sudo …

Total answers: 3

Restrict inbound access on localhost:TCP port

Restrict inbound access on localhost:TCP port For reasons beyond my control, I have a binary that binds to TCP “localhost:$PORT”. (Unix socket bindings would make this question moot). If I understand correctly, this means that although no network machine can connect, other users on the machine (including unprivileged daemon users) can connect to this port. …

Total answers: 2