Questions tagged [socket]

A socket is an abstract network construct with a sending and receiving side. In most modern operating systems (OS) there are device representations, and programming tools to address sockets.

564 questions
1
vote
0 answers

How to open communication PYTHON socket with a SERVER SOCKET on AWS EC2 to a CLIENT SOCKET on my local pc?

Sorry my english is not good I want to established connexion from my client socket on my local pc to a host server socket on AWS EC2 instance. I'm trying to follow suggestions from here and code from here. The issue I'm facing is that I do not know…
1
vote
0 answers

How are Linux ACLs different for files versus sockets

With umask 0022, using default ACL entries default:user::rwx, default:group::rwx, default:mask::rwx and default:other::rwx for a directory, files created with touch (e.g.) have a mask of rw, and sockets created with nc -lU (e.g.) have a mask of r-x…
Larry
  • 11
  • 2
1
vote
0 answers

How to create multiple pools on LEMP Stack, PHP 8.1?

I need to optimize my web app performance, with that in mind I created two PHP-FPM pools for frontend and backend and their respective users. Both pools are listening to different sockets on /etc/php/8.1/fpm/pool.d. fpm-backend.conf ... user =…
AtomX
  • 125
  • 1
  • 1
  • 6
1
vote
1 answer

Does information piped through a Unix socket touch disk?

I'm trying to understand how fast different IPC mechanisms are, and I know it's possible to create a Unix Socket as a "file" in a directory on a filesystem, but what I don't understand is whether data piped through that socket actually touches disk,…
1
vote
0 answers

Sockets: divergence in behaviors between linux and windows when binding to INADDR_ANY *and* another address with the same port

Say one attempts to bind two sockets respectively on the two addresses "0.0.0.0:12345" and "127.0.0.1:12345". Depending on the platforms I tested this on, the behavior changes. On Linux, EADDRINUSE is returned for the bind that is attempted second.…
Fabio A.
  • 111
  • 2
1
vote
1 answer

Unable to connect to Socket Server running on VPS!

I Could need some help here... I'm running a java socket server on a 64bit Linux VPS and listening on a port 5555 however my clients aren't able to connect to that port. When I run a netstat -anp on the server it gives me local address of …
Kevin Boyd
  • 191
  • 2
  • 10
1
vote
1 answer

IPTables log connection pid on OUTPUT chain

I'm trying to find pid of a socket using iptables OUTPUT chain log, or even better adding it into the log. My current iptable rule: sudo iptables -A OUTPUT -j LOG --log-prefix='[PID]' --log-level 7 --log-uid I'm a bit frustrated since I know that…
Or Yaacov
  • 73
  • 8
1
vote
1 answer

Failed to get properties: Unit name mariadb-extra@.socket is missing the instance name

I've recently upgraded my MariaDB servers from 10.1 to 10.6 and now when I restart services for example wildfly, I get this message : sudo service wildfly restart Failed to get properties: Unit name mariadb-extra@.socket is missing the instance…
Ror
  • 321
  • 3
  • 16
1
vote
1 answer

ssh port forwarding with permament connection between remote and destination

I know you can use ssh to forward a local or remote port to another destination and port. So for example let's say I have this command: ssh -L *:8443:10.0.0.1:443 user@10.0.0.2 So this allow to open a listening socket on the machine where the…
Bemipefe
  • 115
  • 1
  • 11
1
vote
2 answers

How to open a socket on EC2 instance?

I want to send webcam video from my laptop to aws EC2 instance. I'm trying to follow suggestions from here and code from here. The issue I'm facing is that I do not know how to open a socket and listen to incoming traffic on EC2. My EC2 is a Amazon…
mirzaD14
  • 13
  • 1
  • 4
1
vote
1 answer

How to change the docker.socket group

I am managing several compute hosts running Ubuntu 18.04 (with systemd) and Docker inside a mostly trusted network. I have an auth server so rather than manually add users to the docker group, so that they can run docker commands, I made a group…
WiringHarness
  • 162
  • 1
  • 7
1
vote
0 answers

OpenDKIM's UNIX socket and permissions for "others"

Postfix installation procedure created a system user postfix and it's primary group postfix while installation procedure for OpenDKIM created a system user opendkim and it's primary group opendkim. To enable Postfix and OpenDKIM to work together…
71GA
  • 363
  • 1
  • 3
  • 10
1
vote
0 answers

nginx logging to unix socket fails with protocol error

debian stable, nginx version: nginx/1.14.2 I get the following error message (error.log) : connect() failed (91: Protocol wrong type for socket) configuration file : access_log syslog:server=unix:/var/log/nginx/test.sock; extra info: I listen to…
Nozz
  • 13
  • 2
1
vote
0 answers

Enable GRO for UDP port explicitly

I am implementing a simple socket application in python and I need it to receive UDP packets with GRO enabled. I have checked that only the Python service is running and that GRO is enabled via eththool -k eth0 | egrep 'generic' It shows both GSO…
tombjarne
  • 11
  • 2
1
vote
1 answer

Deactivate default ports of systemd socket activation

I have an Apache Server running on CentOS 8.2, whose sockets are managed by systemd socket activation. But I don't want it to listen on the default port 80, because I want to run a reverse proxy with Nginx at this port. Here's the current systemd…
user2009388
  • 113
  • 6