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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

configure inactivity timeout while handling keepalive probes

I am developing a TCP echo server using python and the socket library. I'd like to have a timeout configured for each incoming connection. So to drop and close them if there is inactivity for a ...
user avatar
  • 101
0 votes
0 answers
66 views

Ansible - No such file error when activating systemctl Podman user socket

I am running an Ansible playbook on a fresh Oracle Linux 8 system. It includes a step where it asks systemctl to activate a user Podman socket like so: - name: Enable podman socket vars: userid:...
user avatar
  • 835
0 votes
0 answers
87 views

How to connect to remote Greenbone Community with a unix socket over ssh?

I want to use python-gvm to get reports from greenbone. For this I need a ssh connection which listen to a unix socket. At first I create a test user for the ssh connection. It should use the script ...
user avatar
  • 103
0 votes
1 answer
75 views

Hosting a Python sockets server on the web

I made a simple chat app for my friends and I to use, but I don't want to host the server on my computer, I want to host it on the web. Does anyone know any good services or tutorials on doing this?
user avatar
  • 1
1 vote
1 answer
177 views

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 --...
user avatar
0 votes
1 answer
55 views

PHP socket connection through XR300 router to a receipt printer

I have a PHP application which is attempting to open a socket connection to a printer through my router. A couple things to note - my networking skills are lacking so I may be missing something ...
user avatar
  • 103
0 votes
0 answers
124 views

Why does ssh on mac cause a socket error?

I am trying to connect to a server - lets call it destination_server on port 22. I only can access the destination_server via a ssh-tunnel. The ssh-tunnel should use another server - proxy_server on ...
user avatar
  • 1
0 votes
1 answer
350 views

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 ...
user avatar
  • 91
2 votes
1 answer
513 views

How do I create a python 3 service that uses socket with systemd?

I am trying to create a service with systemd, where I use python3 to create a simple socket and leave it as a daemon, but I have made several attempts but in both cases without any success. For today ...
user avatar
2 votes
2 answers
156 views

Fail2ban socket permissions reset on reboot

I have some specific group/permissions set for my fail2ban.sock file to make Zabbix able to monitor Fail2ban as described here https://github.com/hermanekt/zabbix-fail2ban-discovery- I added the ...
user avatar
  • 43
0 votes
1 answer
226 views

Mysqli access denied , using UNIX socket [duplicate]

I am trying to learn PHP, and I am setting up the database connection. On Mysql Workbench, I created a database called php, and created a table. Then I created the account "sam"@"...
user avatar
  • 15
2 votes
2 answers
5k views

Why am I getting "Connection refused"?

I am running a hello-world http server on an ubuntu EC2 instance, let's say, myurl.com. I am unable to curl it from my client: $ curl myurl.com:4296 curl: (7) Failed to connect to ...
user avatar
  • 129
0 votes
0 answers
74 views

Route all internet traffic through vsock channel

I can run arbitrary code on both a Linux server instance and a Linux VM inside the server. Both can only communicate to each other through vsock channels. Only the server instance has internet access. ...
user avatar
1 vote
1 answer
1k views

Socat - is it possible?

Is there any way to listen and execute a command ( for every connection ) while port forwarding with socat? A non-working example to make it more clear: socat TCP-LISTEN:8080,reuseaddr, "exec:ls&...
user avatar
  • 13
0 votes
1 answer
37 views

Not seeing a packet sent from a client to the server in Wireshark

I am new to socket programming and have a couple of questions. For the context, I have a server and client with each having a socket opened: the socket on the server is bounded to INADDR_ANY which ...
user avatar
  • 1
2 votes
0 answers
181 views

How to find out which kernel module opened a socket?

When I try to find the process for an opened socket using e.g. ss I get the following output: ❯ sudo ss -tulpen Failed to open cgroup2 by ID Failed to open cgroup2 by ID Netid State Recv-Q Send-Q ...
user avatar
  • 121
0 votes
1 answer
115 views

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 ...
user avatar
0 votes
1 answer
124 views

Start systemd socket on VPN connection automatically after boot

One of my servers is setup so that it will automatically connect to a VPN after booting up using a systemd service. Now I want to host a systemd socket on this VPN connection. And the socket should ...
user avatar
0 votes
0 answers
1k views

Curl : Recv failure : Connection Reset By Peer and Unix Socket Crash

I'm trying to set up a unix socket for gunicorn and to ping it from curl (running curl --unix-socket /run/gunicorn.sock http://www.example.com --trace-ascii dump.txt). Unfortunately, the response from ...
user avatar
  • 1
-1 votes
1 answer
408 views

Python sockets: TCP errors in linux, while same program works fine on Windows10

I'm trying to communicate with a commercial power supply device via TCP/IP using python sockets. I tried using both a virtual linux(centos8stream) and virtual windows10, both running at the same ...
user avatar
1 vote
2 answers
1k views

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 ...
user avatar
0 votes
1 answer
155 views

Serving multiple socket using gunicorn and Nginx cause a NotFound error

I am trying to serve two Flask apps using Nginx as a reverse proxy. In my default.conf which I have reloaded using sudo service nginx restart I have got: location /app2loc/ { include ...
user avatar
  • 103
1 vote
1 answer
3k views

How to share unix domain socket between containers without named volume?

I have two containers A and B which needs to talk via unix domain socket created by A in /var/run/notif.sock. I can't use named volume as sharing /var/run between containers is risky as it contains ...
user avatar
1 vote
1 answer
2k views

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 ...
user avatar
0 votes
1 answer
494 views

simple systemd service and socket failing

I had a service I was trying to run this way but it was slightly a large python program. I took a step back and built a dead simple python program to see if I can get it to run. It fails when I try ...
user avatar
  • 67
0 votes
1 answer
123 views

Simple code running in systemd exits to fast?

I had this old code base running in xinet d. It was basically a simple python script that waited for standard in to come in on a socket, it would do something with it and respond on standard out. ...
user avatar
  • 67
0 votes
0 answers
126 views

Ububut 18.0.4 LTS:- unable to start TCP/UDP discard service on port 9 and time service on port 37

I have ubuntu client 18.0.4, I am unable to telnet localhost on port 9 and port 37. root@ubuntu:~# telnet 127.0.0.1 37 telnet: Unable to connect to remote host: Connection refused root@ubuntu:~# ...
user avatar
1 vote
0 answers
178 views

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 ...
user avatar
  • 317
1 vote
0 answers
463 views

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/...
user avatar
  • 13
1 vote
0 answers
177 views

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 ...
user avatar
0 votes
0 answers
261 views

Winsock error 10055 keeps reoccurring

We are having some problems with Winsock after releasing a new version of our software. We currently have 16 servers running Windows Server 2016 that all run an instance of this software. All these ...
user avatar
0 votes
1 answer
515 views

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 ...
user avatar
0 votes
0 answers
96 views

Ethernet frames duplication when using VLAN interfaces

I have three processes on linux machine: First is using socket, which is bound to all network interfaces. The second is sending ethercat packets by using broadcast (ethercat doesn't use IP layer). ...
user avatar
  • 101
0 votes
1 answer
191 views

Is BBR congestion control available on my host or not

I have been looking into enabling bbr congestion control on some of our servers to test if they make any difference for our workloads. We are on Amazon Linux 2: # uname -a Linux ip-10-1-66-180.us-east-...
user avatar
  • 1,778
0 votes
0 answers
39 views

How to hold a port open without a live PID

I have some iptables port-forwards and I want to make SURE that no other process on the system uses those ports. I can bind() a socket myself, so other processes get EADDRINUSE, but if my process ...
user avatar
2 votes
1 answer
313 views

Passing 8192 sockets via systemd socket activation - fails with E2BIG

I am trying to have systemd start up a daemon and pass it 8,192 listening sockets. I have a .service and .socket file that work reliably with a more "normal" number of listening sockets, ...
user avatar
  • 1,305
0 votes
1 answer
245 views

How to skip/fix NAT on raw socket output

I have a caching application that runs in userspace and provides acceleration services to clients running on external hosts elsewhere in the network. Briefly put, my program watches network traffic ...
user avatar
0 votes
0 answers
131 views

ssh tunnel from nagios to greenbone socket

i got 2 servers running. serverA is a monitoring solution check_mk. serverB is a vulnerability scanner with gvm20.08 (openVAS). On my monitoring side i want to retrieve scans, tasks, targets etc. from ...
user avatar
1 vote
0 answers
129 views

Get information about socket of unknown domain

The output of lsof (revision: 4.87) on centos 7.8.2003 shows: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 30858 xxxx 841u sock 0,7 ...
user avatar
0 votes
1 answer
344 views

Deploy Laravel and Socket IO into Nginx

I've deployed my Laravel project that using socket io on nginx here is the server spec : NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora"...
user avatar
0 votes
1 answer
188 views

Nginx Config for ws://<ip>:<port>

I have a domain i call it <domain> and ip call <ip> and port <my-local-port>, i wan't using nginx on my server (dns binded to my server success), my problem is that reverse proxy ws:/...
user avatar
0 votes
1 answer
314 views

what are the options to close manual the port correctly or release the port on rhel machines?

we have redhat 7.5 server we are suspect that port 50070 not closed correctly by the service , ( we check by netstat and PID not found ) but from the log we can see that port is in use so we try to do ...
user avatar
0 votes
1 answer
553 views

Postgres authentication type "local" vs "host 127.0.0.1"

I have a Postgres v10 Server to which only local connections will be established. In the documentation I find two methods to configure such an authentication process in pg_hba.conf: local and host ...
user avatar
  • 111
1 vote
1 answer
544 views

Detect SYN flood attack in python

I have a piece of python code as follow s = socket.socket() s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((IP, PORT)) s.listen(256) while True: revdata = "" try: ...
user avatar
  • 33
0 votes
1 answer
79 views

Is there a "server" version of telnet? [closed]

If I want to quickly connect to a socket as a client and type something I can use telnet. Is there a version of telnet or a similar program that provides the server-side of this? In other words, is ...
user avatar
0 votes
1 answer
1k views

dovecot socket not found running as service

I got a strange problem concerning dovecot. My dovecot was working flawlessly on my cubietruck until yesterday, when I upgraded from debian/jessie to debian/stretch (armhf). /var is symlinked to ...
user avatar
0 votes
0 answers
5k views

Client network socket disconnected before secure TLS connection was established

I'm facing an error on running the node script which generates the PayPal invoices using SDK and when it runs from the local server it is working fine but when it runs on production server it is ...
user avatar
0 votes
1 answer
318 views

Not able to established more than 65532 TCP/IP Socket Connection in windows 10 after setting -DFD_SETSIZE to 110K

I'm not able to establish more than 65532 TCP/IP Socket Connection on Windows 10. After 65532 TCP/IP Socket Connections in Windows 10, getting Socket Error 10055 - No Buffer Space Available. ...
user avatar
0 votes
1 answer
2k views

Python Socket Not Able To Connect To Windows Server

I am using socket library in python and want to connect client (my computer) to server (AWS EC2 Windows instance). But client always give error:- "TimeoutError: [WinError 10060] connection failed ...
user avatar
  • 1
1 vote
1 answer
54 views

How I can continuously log processes connected to a socket

I have a project with an architecture based on a RabbitMQ queue. Each day at 00:30 triggered by a CRON job, the producer process gets the information from a web page and writes in the queue in order ...
user avatar

1
2 3 4 5
11