2
votes
2answers
37 views

Linux : how to find out how many TCP retransmits are occurring?

I am running Debian Wheezy on an ARMHF platform and do most of the communications over fairly unreliable cell phone networks. Is there a way to read the no. of re-transmits the TCP stack has done ...
0
votes
0answers
43 views

Networking issue in IBM x3650 after install Ubuntu 14.04.1

I have a problem making TCP connections after a fresh Ubuntu 14.04 installation. First of all, after booting the interface is always off. In my case the interface is manually configured and named em2. ...
1
vote
2answers
104 views

Drop TCP packets and prevent TCP retransmission

I have an application that sends TCP data to a server. My server is made to intentionally drop the packets sent by the application, and as a result the client retransmits the packets. I need to ...
1
vote
2answers
100 views

How to troubleshooting failing ping to router on a linux box?

I have a home network 192.168.0.x from which I am posting this message, on this network I have a CentOS7 host 192.168.0.3 which is running a DNS server for the network. I can ssh into 192.168.0.3 I ...
2
votes
1answer
74 views

Allow non-root unmodifiable sofware to bind to ports 80 & 443

The company I'm in uses the Java Secure Application Manager to "secure" non-internal connections their webmail and electronic collaboration software. Aside from using expired certificates, and ...
1
vote
1answer
48 views

Analyzing network traffic

I want to get a good overview what kind of network communication is going on on my computer. One way would be starting wireshark, which is fine for very low-level problems but is quite cumbersome to ...
1
vote
0answers
231 views

Improving TCP performance over a gigabit network

I have two machines both network cards speed is 10Gbps. The inbound bandwidth between the two machines is 10Gbps, the outbound bandwidth internet bandwidth is 500Mpbs. Both machines are using public ...
1
vote
2answers
93 views

Is this kernel warning a major problem that needs my attention?

Our Linux based Thecus N12000 NAS recently experienced this message in its dmesg log. [2014-05-21 11:34:56] ------------[ cut here ]------------ [2014-05-21 11:34:56] WARNING: at ...
2
votes
1answer
225 views

WITHOUT using network command lines in linux, how to know list of open ports and the process that owns them?

I want to know which ports are used by which processes in embedded-linux. Since it is simple embedded-linux, there are no network command lines such as netstat, lsof. (only basic command lines such as ...
27
votes
3answers
3k views

Can TCP provide more than 65535 ports?

Is it possible to setup a Linux system so that it provides more than 65,535 ports? The intent would be to have more than 65k daemons listening on a given system. Clearly there are ports being used ...
4
votes
1answer
154 views

Can iptables be used to monitor TCP timeouts/resets system-wide?

I'm trying to determine if an application's connection to a database is internal to the application or due to a networking event. This seems like something netfilter would have system-wide visibility ...
6
votes
3answers
413 views

How does one capture traffic on virtual interfaces?

I would like to capture traffic on Linux virtual interfaces, for debugging purposes. I have been experimenting with veth, tun and dummy interface types; on all three, I am having trouble getting ...
12
votes
1answer
2k views

Why is my TCP throughput much greater than UDP throughput?

I haven't done anything unusual to my hardware or kernel configurations (all default settings, fresh OS install, Linux kernel 3.11 TCP/IP stack) and I'm averaging about 3.83 million messages per ...
3
votes
1answer
739 views

How to use netperf on specific NIC port?

I have two servers, SERVER and CLIENT. Each server has its own onboard 1 GbE ports, and its own NIC with a 10 GbE port. SERVER and CLIENT are interconnected on both a 1 GbE switch (administrative ...
2
votes
2answers
2k views

nc: bind failed: Address already in use

I am trying to execute nc command from a script , my script is executing nc command on different ports of Destination using the same source port. e.g: nc -p 8140 -z -v -n 10.X.X.9 9090 nc -p 8140 -z ...
2
votes
1answer
60 views

How does the kernel know which file descriptor to write data to after fork() in a concurrent server?

Basic concurrent client/server architecture: There's a main loop listening for requests on a port (for example 3000), after accepting the connection the server spawns a child process that ends up ...
0
votes
1answer
93 views

Strange network problem (ssh) after hardware switch - packet loss?

My machine crashed (would not start) and so I pulled my harddrives and memory (which was not stock) and brought to another identical Dell optiplex 755 which I found in the office. Now everything seems ...
1
vote
0answers
101 views

Command for finding open ports

On my linux servers I have this alias set: alias ns="sudo lsof -Pi|grep -v ESTABL|grep -v CLOSED|grep -v -e '->' | tr -s ' ' '\t' | awk '{print $3 "\t" $8 "\t" $5 "\t" $9 "\t" $1}'| column ...
1
vote
0answers
323 views

How to redirect/forward between a tun/tap device and a socket using linux tools?

I have a socks5 proxy that is bind to eth0. It opens two ports, Port1 is used to connect to remote (for example a http server), Port2 is to listen for clients to connect. Then I created a tun device. ...
0
votes
0answers
101 views

How to make Network alive but speed low, slow for upload, download?

I have own application written (Python, Java) which does upload/download for streaming. Now in my local office network and home network setup i can't simulate slow/low latency network (as a result i ...
1
vote
1answer
140 views

`cat /dev/ttyACM` loses data when piped through netcat

I'm reading data from /dev/ttyACM0 using cat /dev/ttyACM0 on a Raspberry Pi. The data comes from a device, which sends lines in the form 15.00 1316013 15 where the first number is a value, the ...
2
votes
2answers
656 views

Redirect the default HTTP port to an application

On my CentOS server at mydomain.com, I have an svn web application running on port 8880. I want to hide the port: at this moment, if anybody wants to access, they need to access through ...
0
votes
1answer
77 views

How do I verify that the Linux kernel is not freezing when uploading or downloading large data over the ethernet interface?

How to verify if the Linux kernel is doing what it's saying for network interfaces? I have one network interface eth0 which has hardware support to do 1GB full-duplex. I have prepared 2 box. Now ...
5
votes
2answers
707 views

Real-World Use of TCP_DEFER_ACCEPT?

I was perusing the Apache httpd manual online and came across a directive for enabling this. Found a description in the man page for tcp: TCP_DEFER_ACCEPT (since Linux 2.4) Allow a ...
3
votes
1answer
114 views

detect process that executes portscans

I have to administer an ubuntu 12.04 server, where there seem to go portscans to the whole subnet. How can I find out the process that does the scans? pstree init─┬─acpid ...
2
votes
1answer
316 views

iptables string not dropping packet from tcp streams while using conntrack and string

I'm facing an unusual issue where specific TCP steams are not getting dropped by iptables; instead it's like iptables is just removing those specific packets. We're getting the following traffic: ...
0
votes
1answer
171 views

Read and parse XML input via TCP [closed]

I'm setting up something where I'll need to be able to setup a service that accepts input on a TCP port and then parses the XML provided and extracts the necessary data, then posts that to Google's ...
1
vote
0answers
54 views

Can we Bring Up eth1 after removing e1000e modules?

I am trying to setup TCP in RTnet. I am not sure whether its possible. I read that RTnet is not supporting TCP. Is that so? So now I am trying to setup rteth0 as server and eth1 as client. To setup ...
1
vote
2answers
3k views

Checking if I can reach some ports from my computer

Is there a terminal command or something on OSX that I can use to test if I can reach some ports on a remote server? I know these ports are reachable on that server, because I can access them from ...
7
votes
4answers
18k 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 ...
0
votes
1answer
95 views

What are the other congestion control algorithms specially designed for lossy Wireless Networks like LTE and WiMax?

I am trying different congestion control algorithms for getting maximum throughput and minimum delay across my setup for TCP flow.Please suggest other available algorithms apart from Veno, ...
1
vote
1answer
73 views

Enforce strict outbound ports (or ranges) for protocol

Is it possible to narrow the allowed range of outbound ports that can be used for a specific protocol (e.g. HTTP(S))? I understand that, by default, the system will randomly allocate any available ...
24
votes
1answer
652 views

Why does it take up to several minutes to clean a listening TCP port after a program dies?

If I kill a program that is listening on a TCP port, it takes up to several minutes until the port is reclaimed by the system and usable again. I've seen several Q/A mentioning this phenomenon, but ...
1
vote
2answers
1k views

Why TCP TIME-WAIT State is present at both ends after a connection termination?

I am reading how the TCP states work and especially the connection termination part. All of the books or online material I read, shows that for the termination procedure these states are followed ...
4
votes
2answers
7k views

Getting current TCP connection count on a system

Instead of doing wc -l /proc/net/tcp, is there a faster way of doing it? I just need a total count of tcp connections.
4
votes
2answers
3k views

Ephemeral port : What is it and what does it do?

I suddenly came across the term "ephemeral port" in a Linux article that I was reading, but the author did not mention what it is. What is an ephemeral port in UNIX?
1
vote
1answer
862 views

Default value for SO_RCVTIMEO option on Solaris

Is there any way to find out what is the default value set for option SO_RCVTIMEO on Solaris 10? If there is a way to find out how would one go about changing it? P.S. I am aware of ability of ...
2
votes
1answer
351 views

Running a local port scan and found open ports but, don't know what they're used for?

I wrote a very basic python script to port scan my system. I'm running linux-mint lisa: open_ports = [] for port in xrange(65536): conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ...
1
vote
2answers
1k views

Is there a faster interface for info from /proc/net/tcp?

Given a linux TCP socket's inode (obtained via /proc/<pid>/fd), is there a faster way to look up the information that I can get from /proc/net/tcp about this socket? I have written a ...
3
votes
2answers
492 views

Meaning of log entries from an iptables configuration

My router has Linux as its OS. The system log has a lot of rows about iptable and klogd that I don't understand, could someone explain them to me? The iptables setup: iptables -t nat -A PREROUTING ...
0
votes
0answers
207 views

No ports can be found using port scan

Problem: I have a laptop and a server (Home-Server) with fc17. They are both using the desktop environment. I am trying to set up a VNC server on Home-Server so that I can set everything up without ...
14
votes
4answers
981 views

TCP dies on a Linux laptop

Once in several days I have the following problem. My laptop (Debian testing) suddenly becomes unable to work with TCP connections to the internet. The following things continue working fine: UDP ...
6
votes
2answers
8k 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. ...
5
votes
3answers
906 views

How can I know the process name which is opening a tcp port?

I have two linux servers. Let's say they are C and S. C is client of S On my S machine, I type. $ netstat -an | grep ESTABLISHED tcp 0 0 192.168.1.220:3306 C:57010 ...
3
votes
1answer
325 views

Route incoming network requests for a given port to different applications

I have an application that listens for connections on a port, but I occasionally take it down for updates and the like. I'd like a way to configure the system such that if that program is running, ...
3
votes
1answer
390 views

User associated with a socket

I use ss -p to see TCP sockets information. But process info are not printed for some sockets. Below: $ ss -p4 State Recv-Q Send-Q Local Address:Port Peer Address:Port ESTAB 0 0 ...
1
vote
1answer
376 views

How to limit all tcp traffic to the network interface the session was initiated on?

I have an embedded linux system with two network interfaces (lan0, wlan0) that are configured to the same subnet. A server on this system accepts tcp connections on both interfaces. How I can assure ...
3
votes
3answers
4k views

Trying to Open a Port using CentOS

(I'm new to this!) I'm running a virtual server running CentOS. I'm trying to run a server that listens on port 37760. The code I'm running executes successfully, so I run netstat -lptu To show a ...
3
votes
1answer
641 views

Port Mirroring in Fedora?

I have set up an application that listens constantly to a port for network packets, and I would like to create another one that receives the same network packets ( for use as a test bed). Getting the ...
0
votes
1answer
3k views

How to run tcptraceroute utility on UNIX machine?

How can I run the tcptraceroute utility on a UNIX machine? I want to run a TCP traceroute for port 80.