Skip to main content

Questions tagged [unix-sockets]

2 votes
1 answer
91 views

What is the cost of listening on ports?

If you would open a listening socket on every possible TCP/UDP port (so thousands in total), without actually using them, what would be the cost in terms of performance? Is it merely an administrative ...
Maestro's user avatar
  • 233
0 votes
1 answer
113 views

Configure mpd to only start a UNIX socket

Running mpd without any bind_to_address in the config starts a working UNIX socket at /run/user/1000/mpd/socket but also starts a network socket at 0.0.0.0:6600 / [::]:6600. I would like to have only ...
niklassc's user avatar
  • 113
0 votes
1 answer
57 views

Why syslogd receives the message and not journald?

I have tried to log into journald using logger. logger test, journalctl |grep test does not show any output. The message does not reach journald even though it listening and logger is writing (I ...
maths soso's user avatar
0 votes
0 answers
86 views

Run RPCBind on a docker container with the socket enabled (for port 111)

I'm trying to dockerize a rpc application I made using C lang and rpcgen, I have the byte executable and everything, I tried a lot of docker os image like ubuntu 22.04/ debian and so on, the ...
ALLAOUA Okba's user avatar
2 votes
1 answer
351 views

What process can remove an entry from a router NAT table?

I have just been watching a video which explains UDP holepunching. https://www.youtube.com/watch?v=GfRLNg6DOnI In this video, some processes which create entries in a router NAT table are explained. ...
user3728501's user avatar
0 votes
0 answers
550 views

Accessing Docker Unix Socket from a Podman Container on a Remote Server (SSH)

I'm trying to access a Docker Unix socket on a remote server from within a Podman container (offen/docker-volume-backup). I've (root-)mounted the entire root filesystem of the remote server using ...
Jack's user avatar
  • 1
0 votes
0 answers
184 views

Weird apparmor unix socket denial for sudo

I have a custom SSH server written in go that wraps commands called by the client in apparmor. One of the profiles confines sudo and what commands it can call. It started failing on a proxmox backup ...
bdrun33's user avatar
0 votes
1 answer
621 views

Communicate with UNIX sockets opened by dbus-daemon

I'm trying to learn how to interact with message buses under Linux, and doing so with shell commands that doesn't involve utilities packaged under dbus-*. For this instance, I want to understand how ...
PatXio's user avatar
  • 1
0 votes
0 answers
39 views

Multipass IP resolution failing

I am trying to deploy a basic Flask application on my Ubuntu VM through multipass. However, I cannot access the website through the IP address from the host OS on the browser. flask run --host=0.0.0.0 ...
Aamir Shaikh's user avatar
11 votes
4 answers
1k views

How can I secure unencrypted credential files, for programs that assume them (like gmi/lieer)?

Brief Q: How can I cryptographically secure a credentials file that is stored on disk as plaintext? Or, rather: how can I avoid storing credentials like those for Gmail and other API keys on disk? ...
Krazy Glew's user avatar
3 votes
0 answers
180 views

Understanding piping to a unix domain socket in the background

I have a Debian 12 (bookworm) host where I run three VMs using QEMU / KVM. To simplify VM management, each VM has a QEMU monitor socket. These sockets are /vm/1.sock, /vm/2.sock and /vm/3.sock. Among ...
Binarus's user avatar
  • 3,931
-1 votes
1 answer
432 views

syslog logging driver giving the error protocol wrong type for socket

I have a service defined via docker compose (see definition below). When I tried to start this service via docker-compose -f up --wait -d my_service, I get the error Error response from daemon: ...
atl123's user avatar
  • 3
0 votes
1 answer
90 views

Unix domain socket frame structure

How does a unix domain socket packet look like? Is it like a TCP/IP packet which have an ethernet header, an IP header and a TCP header? How do they look like in unix domain socket?
William's user avatar
  • 305
2 votes
1 answer
729 views

Proxy between UNIX socket with socat

I used socal to create a proxy server between 2 UNIX sockets: /var/a.sock , /var/b.sock client -> /var/a.sock -> MY_COMMAND -> /var/b.sock -> MY_COMMAND -> /var/a.sock ->client. The ...
Polo1990's user avatar
0 votes
1 answer
418 views

What is a port?

I have been running an Apache web server for numerous years and have been using ports as a medium to serve requests. Recently, I began using Unix sockets to serve MySQL requests. The function of Unix ...
user10709800's user avatar

15 30 50 per page
1
2 3 4 5
10