Skip to main content

Questions tagged [unix-sockets]

Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

I am new to socket programming & I have realized that most posix functions from libc require that you pass a buffer & a length. While I can understand this helps the functions to understand ...
Weezy's user avatar
  • 681
2 votes
1 answer
111 views

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
136 views

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
66 views

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
99 views

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
355 views

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
617 views

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
224 views

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
720 views

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
41 views

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

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
197 views

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,951
-1 votes
1 answer
468 views

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
98 views

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
777 views

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
452 views

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
1 vote
1 answer
97 views

I run an Ubuntu based server on raspi (6.5.0-1015-raspi #18-Ubuntu). On this system, I have knxd running, exposing a KNX bus to my server, and then Home Asssitant in a docker container. knxd and ...
Martin Probst's user avatar
0 votes
1 answer
244 views

In linux we can run ss -x or lsof -U +E and we can see what type unix socket has. But in macOS there is no ss or we can run lsof -U which only shows TYPE - unix, but I would like to know with some ...
amkgi's user avatar
  • 103
1 vote
0 answers
169 views

I want to forward smart card request to a pc where smart card is connected but am unable to forward socket via ssh source : 10.169.213.211(server) destination : 10.169.41.124(client) what I attempt to ...
Itsme's user avatar
  • 11
0 votes
1 answer
410 views

We have 1000 files in SFTP server and are able to process in local server using linux script and it takes 10 mins, after processing we wants delete only processed files. Mean time we my get some new ...
venkata krishna's user avatar
1 vote
0 answers
1k views

I'm looking for the meaning of the node_sockstat_TCP_mem_* metrics. The output of the node exporter describes them as follows: # HELP node_sockstat_TCP_mem Number of TCP sockets in state mem. # TYPE ...
Emmanuel's user avatar
  • 4,257
1 vote
1 answer
303 views

I run a python code inside docker container performing the following calls import socket as s,subprocess as sp;s1=s.socket(s.AF_INET,s.SOCK_STREAM); s1.setsockopt(s.SOL_SOCKET,s.SO_REUSEADDR, 1);s1....
DmitrySemenov's user avatar
1 vote
0 answers
319 views

I started nginx with just a single worker. ps --forest -fC nginx UID PID PPID C STIME TTY TIME CMD root 3615889 10118 0 14:18 ? 00:00:00 nginx: master ...
DmitrySemenov's user avatar
0 votes
0 answers
27 views

I have a program that creates a socket and waits that someone writes on it, I would like to write with another users but even after changing permissions i cant. mkfifo -m 777 /tmp/socket running the ...
Sonic803's user avatar
0 votes
1 answer
775 views

I'm trying to write with perl to a unix socket file as fast as possible but failing on full message buffer. I tried autoflush and manual flush without success. use IO::Select; use IO::Socket::UNIX; ...
user496909's user avatar
0 votes
1 answer
418 views

How can I remove below file? srwxrwxrwx 1 patroh root 0 Aug 8 16:11 0= The user patroh is myself. The rm command won't work - it doesn't give any error when I execute rm 0. I am not sure ...
Rocky's user avatar
  • 3
0 votes
0 answers
573 views

Hello everyone I hope you doing well I have a raspberry pi and I kind need a serial port server which can access from internet Now I use socat command like bellow on my raspberry and from putty on ...
Hamidreza's user avatar
0 votes
1 answer
102 views

The following is my code snippet that is producing EPROTOTYPE error, aka, Protocol Wrong Type for Socket. I checked for the headers in /usr/include in MINIX 3, sys/socket.h contains definitions for ...
Reiki Yamya's user avatar
2 votes
1 answer
2k views

Since this is the socket that syslog's /dev/log is symlinked to, I expect there is at least one listening socket from systemd-journald, and possibly some additional connected ones, with different &...
QnA's user avatar
  • 605
0 votes
0 answers
792 views

I have a specific service that sends data on port 5555. I need to open socket on shell unix to listen on this port and print output on shell. Service is deployed as docker container. So, I run ...
init's user avatar
  • 31
1 vote
1 answer
895 views

Suppose I want to launch a co-process and attach its standard input and output to the main process, what we have here are 2 options: call pipe(2) and create 2 pipes, and attach them separately to the ...
DannyNiu's user avatar
  • 722
3 votes
1 answer
255 views

Test on Linux (particularly: Ubuntu 20.04 LTS, kernel 5.4.0): in Python: from socket import * s1 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) s1.bind(('', 11001)) s2 = socket(AF_INET, SOCK_STREAM, ...
Netch's user avatar
  • 2,609
0 votes
1 answer
2k views

I'm trying to set my server up and came across some troubles related to Unix domain sockets. I don't have so much experience with Unix, despite the stack for web development: Apache, PHP and SQL. I ...
zanoth's user avatar
  • 1
5 votes
1 answer
2k views

From man 7 unix SCM_RIGHTS Send or receive a set of open file descriptors from another process. The data portion contains an integer array of the file descriptors. The passed file descriptors ...
ledonter's user avatar
  • 183
0 votes
0 answers
2k views

I am new to this socket programming in linux I want to send a log file i.e eve.json This file is provided by suricata and they have already defined some setting in their configuration yaml to send ...
Tech Noob's user avatar
0 votes
1 answer
477 views

Do unix domain sockets support reuse? Lots of conflicting information about this online. I suspect a lot of it is just outdated, but I'm no expert. Do I ProxySet enablereuse=on if my handler is a ...
Jeff's user avatar
  • 846
5 votes
1 answer
7k views

I found a Unix socket being used in the output of the lsof command: COMMAND PID TID TASKCMD USER FD TYPE DEVICE SIZE/OFF NODE NAME screen 110970 ...
dcom-launch's user avatar
0 votes
1 answer
799 views

I try to connect to my UNIX-socket server using openbsd-netcat, but have an error: connect(): Protocol wrong type for socket My socket type is SOCK_SEQPACKET, and it seems that nc tries to open it as ...
Eddy_Em's user avatar
  • 1,353
4 votes
1 answer
745 views

I am investigating how to write a simple X11 unix-socket-based proxy. I have tried various standard applications, as well as written my own code, but I am getting wildly variable results. What's ...
Tom Ellis's user avatar
  • 283
0 votes
1 answer
5k views

I have two monitors connected (one HDMI, one DVI) connected to an Nvidia GT710 GPU on my linux box. When I am logged in to my box over ssh, if I run xeyes it will always run on the same screen. I ...
Stonecraft's user avatar
2 votes
1 answer
8k views

I'm trying to understand the permissions of a unix domain socket, when using an existing file, umask changes are required as well as the dir permissions. If I create a world readable dir as root and ...
nd6654ssd's user avatar
1 vote
0 answers
951 views

I'm learning docker and wanted to see the API commands sent by the client to the docker server/engine. I know that the communication between the two processes happens via /var/run/docker.sock. Is ...
sudeepdino008's user avatar
0 votes
1 answer
425 views

I am connecting to a socket via nc -U: user@node:~$ sudo nc -U service\@name.18822.sock user@node:~$ xmpp.status user@node:~$ connected If I "hold" this connection open too long, it will ...
Kahn's user avatar
  • 1,827
0 votes
0 answers
1k views

I'm trying to use a TCP port to connect to a MySQL unix domain socket on a remote machine. I have removed networking on the mySQL server to harden it. The SSH tunnel looks like this: MyPC <---------...
Andy's user avatar
  • 1
3 votes
1 answer
1k views

When using TCP & UDP sockets, there are many scenarios which cause connection interruption (slow connection, network reset, etc). Is there any possible situation which an unix domain socket ...
AmirHmZ's user avatar
  • 83
7 votes
2 answers
4k views

I'm trying to follow these guides and answers https://wiki.gnupg.org/AgentForwarding https://superuser.com/questions/161973/how-can-i-forward-a-gpg-key-via-ssh-agent https://gist.github.com/...
oarfish's user avatar
  • 454
1 vote
0 answers
828 views

There is a VMM which doesn't conform to the the standard VSOCK implementation: Firecracker For each guest it creates a v.sock unix socket file The ordinary VSOCK-CONNECT:cid:1234 then becomes: UNIX-...
Jack Fleming's user avatar
5 votes
0 answers
1k views

The function prototype for the sendmsg() function is as follows: ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags); and the msghdr struct is such: struct msghdr { void *...
novice's user avatar
  • 429
0 votes
1 answer
212 views

From systemd.unit(5) man page: Note that while systemd offers a flexible dependency system between units it is recommended to use this functionality only sparingly and instead rely on techniques such ...
Small Boy's user avatar
  • 111
5 votes
1 answer
3k views

I'm following this guide and I'm running into issues. https://www.tecmint.com/initial-ubuntu-server-setup-guide/ I am trying to create a linux machine in Ubuntu in wsl2 and then rename it using ...
Ambitious Intern's user avatar