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.
Questions tagged [socket]
564 questions
1
vote
0 answers
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 0t0 561359758 protocol: TCPv6
java 30858 xxxx …

William Pursell
- 204
- 1
- 3
1
vote
1 answer
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:
c, addr = s.accept()
t =…

dk1111
- 33
- 5
1
vote
1 answer
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 another mounted drive (mountpoint /extended): /var ->…

SirFartALot
- 111
- 1
- 4
1
vote
1 answer
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 to send the information to the consumer process…

mapedraza
- 11
- 1
1
vote
1 answer
Does Varnish support unix domain socket files?
Does varnish support unix socket files?
I'd like to accelerate my website by adding a varnish reverse proxy (HTTP accelerator/cache) before my web server. My web server's virtual host is currently configured to listen for connections on a…

Michael Altfield
- 739
- 2
- 8
- 23
1
vote
1 answer
Postfix over proxy like SOCKET or SSH tunnel
I'm trying to send mail over proxy (SSH tunnel or SOCKET proxy) by postfix.
I tried to do something like that schema:
I'm using MacOs with no firewall. The receiving client over browser has been omitted to simplify. The last element of the scheme…

Santino Santona
- 11
- 3
1
vote
1 answer
Cannot Create QEMU Socket Networking in Windows Host using Multicast Fails with Unknown Error
I am trying to create a simulated VLAN using socket networking, and the only way to connect multiple VMs in one network in QEMU using socket networking is by using the multicast mcast option of the socket network backend, to create a shared…

falhumai96
- 123
- 6
1
vote
1 answer
SELinux, Nginx and fcgiWrap: how to allow access to fcgiWrap socket?
I am under Fedora 31 (linux kernel 5.4.13, Nginx 1.16.1, fcgiwrap 1.1.0) running with SELinux in enforcing mode (policy: targeted 3.14.4-44.fc31).
My box hosts a server driven by Nginx. Part of it relies on Perl scripts. Nginx has been configured to…

ajlittoz
- 111
- 3
0
votes
1 answer
Recreate a bind to a unix socket with bound file removed
I've been confronted with a specific situation recently, searching through the internet and linux specs did not give a definitive answer. Well, I believe it's not possible but maybe you know the way.
The scenario is as…

bazeusz
- 105
- 4
0
votes
1 answer
How can HTTP work over UDP (in the case of Google's QUIC protocol)?
Here is my understanding of how a client-server HTTP server works.
The client creates a TCP socket connection to connect to the server and sends data.
The server creates a TCP socket connection to listen for incoming requests.
So it looks like…

Liga
- 135
- 2
- 12
0
votes
1 answer
Socket send redirected to a different interface than what it is bound to
There are 2 NICs (network interface cards) with IPs IP0 and IP1 as primary addresses given to them as seen in the kernel routing table via ip route. Say a TCP socket is bound to IP0 (and some port P0). So it will receive packets destined to IP0:P0…

ustulation
- 101
0
votes
1 answer
mk-livestatus No UNIX Socket Existing
I'm currently in the process of setting up NagVis, and one of the prerequisites is that mk-livestatus be up and running on your Nagios server.
This is proving difficult.
The website for check_mk only has instructions on how to install all of…

TechnicallyTrue
- 1
- 2
0
votes
1 answer
TCPDUMP, tcp Flag not changing from Flags [S] to other flag values
I need support understanding these lines.
when i tried to connect to server in a particular port it shows connecting and gives me timeout error.
But in the tcp-dump command the packet flag not changing from [s] to other flags.
Review the below log…

VinothRaja
- 101
- 3
0
votes
1 answer
what is difference between simple TUN and VPNs like PPTP and L2TP
In respect of VPNs and tunneling, as far as i know, TUN is a virtual interface works on network Layer 3 (IP packets), and is nothing more than a simple more likely UDP socket link in practice (I think).
Here are my questions:
1- What difference…

Mehrdad Dadvand
- 103
- 3
0
votes
1 answer
Connections shows up in tcpdump but cannot not in auditd or ss
I ran tcpdump on a node which I can see many outbound TCP connections to a specific host (inside my network) on a specific port (8086). I'd like to know which process is making those connections.
I used:
while true; do ss -ntap '{ dport :8086 }';…

kjq07bd
- 15
- 5