The Transport Control Protocol (TCP) is a low-level part of the protocol stack used by the Internet. It sits directly above the IP layer and is responsible for making sure that dropped packets are resent.

learn more… | top users | synonyms

2
votes
2answers
46 views

Binding two incoming TCP connections

I have a client to connect multiple devices. For not paying monthly static IP fee per device. We plan to change the architecture. In this new architecture devices connect to a server. Instead of ...
2
votes
1answer
40 views

socat duplicate stdin to each connected client

ncat (from the nmap folk) has a neat default action of duplicating any input to all connected clients. E.g.: Start a server on terminal 1: % mkfifo messages % exec 8<>messages # hold the fifo ...
4
votes
3answers
9k views

Killing tcp connection in linux

I have some dead connection in one application which is in hanged state if client machine is dead. ->192.168.1.214:49029 (ESTABLISHED) Is there a way to terminate these option from linux ...
14
votes
2answers
51k views

Orphaned connections in CLOSE_WAIT state

I've got a SLES machine that accumulates TCP connections in a CLOSE_WAIT state for what appears to be forever. These descriptors eventually suck up all available memory. At the moment, I've got 3037 ...
0
votes
0answers
25 views

How to enable Tcp\Ip remote connections in Centos 7.0

I am running Centos 7.0 using VMPlayer . I have set a private network shared with the host (Windows 7) . On my Centos Server i have opened a tcp listener on port 10102 . I could not connect to this ...
2
votes
1answer
8 views

How to enable SYN Cookies on Debian 7.5?

How do I enable SYN Cookies on Debian 7.5? nano /etc/sysctl.conf #net.ipv4.tcp_syncookies = 1 remove here the # sysctl -p service network restart Is that the correct way? Or what must I look ...
4
votes
1answer
571 views

How to investigate a random reset on TCP client port connected via loopback interface to a server

I have a test suite which initializes a server on the localhost and then runs thousands of stress tests which include starting and stopping clients connecting to this local server on same machine. I ...
1
vote
1answer
15 views

Unexpected netstat output in DNAT conditions

So, here I have a basic setup with SOCKS5 proxy listening on, oh, say 8123 I redirect TCP to the proxy via iptables From iptables perspective everything looks peachy, iptables -t nat -v -L shows ...
10
votes
1answer
129 views

D-Bus authentication and authorization

I'm trying to set up remote access to D-Bus, and I don't understand how authentication and authorization are (not) working. I have a D-Bus server listening on an abstract socket. $ echo ...
1
vote
0answers
32 views

What does an inode for a socket contain?

I read somewhere that the inode for a TCP socket would contain the buffer space. Is that true, and if so, does it mean that the inode contains a memory address for the buffer space used by the ...
14
votes
1answer
5k views

Is it better to set -j REJECT or -j DROP in iptables?

There's an example of iptables rules on archlinux wiki: # Generated by iptables-save v1.4.18 on Sun Mar 17 14:21:12 2013 *filter :INPUT DROP [0:0] :FORWARD DROP [0:0] :OUTPUT ACCEPT [0:0] :TCP - ...
1
vote
1answer
35 views

check tcp packets reception below tcpdump level

I am having an issue with my smartphone device and packets monitoring: I am trying to find a reason why I cannot establish a VPN connection via PPTP protocol. I have the following successful ...
0
votes
1answer
34 views

Linux drop packets if received from another equipment

Problem description : When I establish a VPN connexion between a VPN client and my home server, if the connexion are both across my firewall (pfSense) or are established directly, the connexion is ...
8
votes
2answers
13k views

Fast way to copy a large file on a LAN

I am having some trouble with NFS, and I'd like to try using just plain old TCP. I have no idea where to begin, though. Hardware-wise, I am using an ethernet crossover cable to network two netbooks. ...
3
votes
0answers
37 views

TCP Westwood implementation available?

Is there a way to install TCP Westwood congestion control algorithm module for FreeBSD? If not, maybe there's a source code available that could be compiled into a loadable Kernel module? Thank you ...
0
votes
1answer
64 views

How can I edit /proc/net/tcp?

I need to edit 1 line in /proc/net/tcp while the file is also used by the linux kernel for updating other lines of it by the kernel. Background: Each line in /proc/net/tcp represents a TCP socket. ...
2
votes
1answer
67 views

Capturing data from a Fluke 1620a via Bash /dev/tcp file descriptor

I am currently trying to develop a script that will connect to a Fluke DewK 1620a Themo-Hygrometer and pull the current temperature and humidity readings from the device. While these devices have a ...
1
vote
1answer
76 views

Different Congestion Cotntrol algorithms in FreeBSD

Is there a way I can run a different (than the default) TCP congestion control algorithm in FreeBSD? I am trying to modify an existing TCP congestion control algorithm with some ideas published in ...
0
votes
1answer
17 views

What happens to TCP when a write fails to enqueue with the device tx ring?

Lets say the device tx ring is full and you do a normal C non blocking write(fd, buff) to enqueue data in the TCP SND buffer. What happens when this fails? In UDP - the packet would be dropped but ...
0
votes
0answers
18 views

How much of Linux's recent TCP bufferbloat remediation also applies to SCTP?

I am looking at rebuilding an existing communications sub-system within a shared-nothing cluster. The current message protocol is built on UDP but layers on reliable, in-order delivery and ...
1
vote
2answers
116 views

tcpdump captures network-wide UDP traffic, but not TCP

When observing traffic with sudo tcpdump udp, it behaves like it should: I can see all traffic which is happening in the network, even when the machine which I am using is not involved. However, when ...
2
votes
1answer
51 views

Close the neccessary Ports [duplicate]

I am using Linux Mint and I am newbie. Someone is trying to access my computer via my MAC Address and open port. I have some questions: I know that there are different type of port like TCP and UDP. ...
0
votes
0answers
33 views

Linux, dev/tcp validation and kill the process with timeout

I have this part of code, I need to validate if the connection was ok or not, AND, if the process is running more than 3 seconds, it will be killed. But, I dont know how to keep the value of the ...
2
votes
2answers
116 views

Tool to generate TCP traffic

I want to generate a TCP traffic starting from the port 0 to the port 65535. 1 tcp packet for each port with 1ms between 2 packets. The generator should not care if there is a TCP ACK or not. Are ...
2
votes
1answer
245 views

nfs mount works for tcp but not over udp

I'm connecting my raspberry pi (raspbmc) with my synology nas. I have 2 mounts 192.168.0.5:/volume1/video /mnt/video nfs udp,intr,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3,async ...
0
votes
0answers
72 views

Opening a TCP port in Linux

I am trying to establish a TCP socket between my linux server and my client running on my laptop. The TCP server code I am running is, from socket import * HOST = '' PORT = 1999 ...
4
votes
1answer
216 views

Socksifying a qemu-kvm using tsocks

I'm trying to socksify a qemu-kvm using tsocks, but I have no success. I don't know if qemu access directly the hardware, skipping the OS or something like that, but I wasn't able to do this feat. ...
1
vote
1answer
62 views

Test for open TCP port in bash script

I want to delay the script execution until a certain server process is ready, which it is once it accepts incoming TCP connections. How do I test if a local TCP port is open (I get a SYN/ACK answer)? ...
1
vote
1answer
71 views

How to artificially open many tcp connection on a host (testing)?

I'm trying to build a test setup which test my server's performance under high load. In order to do that I want to open thousands of tcp connection. The problem is that I only have two hosts, one is ...
0
votes
0answers
22 views

why do I have so many open socket handlers and netstat DGRAM entries?

I run on a RPi (Raspbian 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 GMT 2014 armv6l GNU/Linux) a daemon in Python 2.7.8 which queries various APIs via requests and provides itself an API for another ...
0
votes
1answer
32 views

Transparent proxying of TCP connections on port (mostly, without root access)

I have the Client machine living somewhere on the Internet, and it needs to access a custom port of Target machine (or, initially any port on any reachable machine, but, eventually, particular port, ...
11
votes
5answers
33k views

How to check whether firewall opened for a port but not listening on the port

We will be deploying a new application to a Server and the application will be listening on port 8443. We have asked Network team to open the firewall for the port 8443 on that server before deploying ...
3
votes
1answer
42 views

log PID of each connection attempt

Finding the PID of an established connection is trivial using netstat or lsof. However, I have a process which is creating a connection ever 60 seconds to our database and locking it up by maxing out ...
3
votes
4answers
2k views

Simple way to create a tunnel from one local port to another?

I have a development server, which is only accessible from 127.0.0.1:8000, not 192.168.1.x:8000. As a quick hack, is there a way to set up something to listen on another port (say, 8001) so that from ...
2
votes
1answer
80 views

Linux: monitor my own internet usage page by page

I have a monthly broadband subscription which rolls over on the 23rd of each month. I had arrived near the end of my usage so I was carefully checking that I didn't go over my limit - they crucify you ...
0
votes
3answers
237 views

Simple TCP server listening on a port but not returning SYN-ACK

I am looking for a command-line TCP server (preferably a one-liner), that will listen on a specified port and when received SYN, it will not respond with SYN-ACK as usual TCP servers do. The purpose ...
1
vote
0answers
110 views

telnet connection closes

I am running hdfs in one machine. I am trying to write into hdfs from my second machine. I got connection refused error and got this link in the error itself: ...
0
votes
0answers
44 views

cannot change tcp-segmentation-offload

I have been doing tests with tcp-segmentation-offload on and off, but now I cannot seem to change the parameter anymore, it is stuck on "off" (I can change generic-segmentation-offload) ...
0
votes
0answers
61 views

How to check number of connections

My server have high loads. CPU usage is low. Memory usage is low. IO is low. So I improve maximum number of connections in cpanel. Things are working. However, where can I see detail? How do I ...
27
votes
6answers
48k views

Determining what process is bound to a port

I know that using the command: lsof -i TCP (or some variant of parameters with lsof) I can determine which process is bound to a particular port. This is useful say if I'm trying to start ...
3
votes
2answers
3k views

Using tcpdump to extract NFS RPC contents

Fairly simple question... I'm running tcpdump and trying to analyze the contents of the TCP packets between server/client. I see the "GETATTR" RPC being received, which is great! However, I want to ...
1
vote
0answers
40 views

How can I log outgoing TCP traffic including the full path of URLs?

I use a program regularly on Linux that makes a TCP request when it starts up and updates a file with an access token before launching. I'd like to write a batch script that makes this request (using ...
18
votes
2answers
2k views

Is it possible to connect to TCP port 0?

Listening to TCP port 0 allocates me a free port number on the system. But what happens when I try to connect to TCP port 0? The obvious answer is: "It doesn't work": $ nc localhost 0 ...
0
votes
1answer
214 views

Which port to open for Google HangOut Video Conference

We need to open the necessary ports for Google Hangout VIDEO Conferencing in our firewall. Unfortunately my netmon trace shows Port 51355 and 51336 to be active; which is not at all what the Google ...
2
votes
2answers
153 views

Using Wireshark on Linux to observe coupled HTTP-request and HTTP-respond

I use Wireshark on Linux to observe my HTTP traffic. Other programms like Firefox Live Http Headers show coupled http-request from my browser and http-respond from any server. How using programs like ...
0
votes
2answers
122 views

Runs perfectly through the command line, will not work through systemd ExecStart

I've installed Butterfly http terminal server, written in python, on my Arch machine. I'm new to systemd, but I'm having an issue with one of the command line parameters. /usr/bin/butterfly.server.py ...
0
votes
0answers
39 views

How can I reduce the TCP connection time for web resource requests at the OS level?

I'm experiencing an issue where almost every request for a resource on a web application has a 100ms - 500ms delay in the "connecting" phase as reported by firebug, which is the time it takes to ...
2
votes
0answers
76 views

TCP, UDP, etc. works, HTTP(S) does not

I have been trying to set up Debian Jessie on an old Dell Inspiron 300m. Right now the problem I have is, the ethernet connection only works partially. ICMP works. I can ping IPs and FQDNs. UDP ...
1
vote
1answer
333 views

MPTCP doesn't create multiple subflows

I've installed MCTCP in one machine, and tested it in https://amiusingmptcp.com which gave a positive result. Now, when I do iperf -c multipath-tcp.org like they say here I only see one connection: ...
-1
votes
1answer
102 views

Make TCP to reconnect automatically and quickly

In my Debian Linux system apt-get dist-upgrade is sometimes stalled with [Waiting for headers] message. To make it pass faster I press Ctrl+C and start the command again. How to tune the system to ...