Questions tagged [tcp-ip]
The tcp-ip tag has no summary.
62 questions
0
votes
1
answer
130
views
IP address reachable by curl and ping, but not by telnet or urllib3
Yesterday, I came across puzzling behavior in my home network. I was trying from host 192.168.1.A (macOS) to connect to a selenium cluster running on port 4444 on host 192.168.1.B (ubuntu), and kept ...
0
votes
0
answers
24
views
Computer intermittently unreacheable through wifi access point
I have a problem with reaching linux hosts through my home network, and I'd be glad for someone to point me in the right direction.
I have a main wifi and wired router running DHCP. All IP addresses ...
1
vote
0
answers
37
views
LIsten on a port, check another port, if no response run a script, then tunnel connection to that port?
So, I want to use an SSH tunnel proxy occasionally. But I don't want to fire it up manually every time. And this is a laptop so if I just start the SSH tunnel at startup it might die of an occasional ...
0
votes
1
answer
116
views
tcpdump doesn't appear to call any libpcap's exported function
Digging into tcpdump implementation, I can see that it actually loads the libpcap.so dynamic library in userspace.
However, by use of strace, I can't see any occurrence of calls to any function ...
1
vote
0
answers
493
views
TCP/IP client-server slow communication
I made some network application.
It is a client-server solution using the TCP/IP protocol.
Clients connect to the server.
They make several connections every second.
Communication consists of units of ...
1
vote
0
answers
307
views
Linux TCP/IP kernel stack and VFS interaction
I'm reading the Linux kernel implementation of the TCP/IP stack. Everything was ok till I encounter this figure
while reading TCP/IP architecture, design and implementation in Linux
As you may see ...
0
votes
1
answer
379
views
Reachability of IP address of virtual machine
I have a virtual machine (Linux) installed in my PC (Windows) and I was wondering the reachability of the IP address assigned to the virtual machine.
According to ipconfig on Windows and ifconfig on ...
0
votes
0
answers
199
views
How to check whether my network connection supports HTTP2, gRPC or WebSocket?
My ISP/AS/NAT is problematic since I think it blocks some transfer-layer protocols.
I want to check whether my connection to my domain behind a CDN (e.g. cloudflare) supports HTTP/2, gRPC, QUIC or ...
0
votes
1
answer
301
views
TCP communication between client and server after server IP has been deleted
I created a tcp server listening at [IP1:PORT1] and connect to it via a client using [IP2]. On both the client and server, SO_KEEPALIVE and TCP_USER_TIMEOUT are enabled with below config values.
...
0
votes
1
answer
1k
views
Why eth0 can't access to loopback interface when using curl 127.0.0.1 --interface eth0
Here is how to reproduce this problem:
Start a listen service on port 80: nc -l 80 -k
Access this service using curl: curl 127.0.0.1 --interface eth0
Capture the packet using tcpdump both on eth0 and ...
2
votes
4
answers
2k
views
Can a NAT router run out of ports?
The highest TCP port number is 65535. If a router doing NAT uses an ephemeral port for each connection made to the internet on behalf of the hosts on the internal network, does this mean that it is ...
1
vote
1
answer
549
views
-Y and read {src,dst} port and tshark
tshark get data from interface or pcap files. When it read data from interface, user has to write filter with -f (accortding to pcap-filter(7)) and when read from file user has to write filter with -Y ...
1
vote
2
answers
283
views
Initiating Bulk TCP connections
Our company has 2 proxy servers that are running a vendor proprietary OS that is built on top of FreeBSD 11.2, we are having incidents on our business peak hours where proxy server stops accepting new ...
0
votes
2
answers
935
views
My first Configuration DNS doesn't work or respond on centos
for studying purposes about TCP/IP, we should run a DNS server, i did the advised configuration, the server is runing without any erros, but when i request the server for the configured domain name ...
0
votes
0
answers
235
views
Why ping don't response for long time even -W is specified?
I'm just confused with ping. As per my understanding, when I ping some IP address, it sends an ICMP message to the destination, and if there is no response, it get either "request timeout" ...
1
vote
1
answer
2k
views
Connection refused to connect a TCP/IP device
I'm trying to connect a TCP/IP device over ethernet adapter via ethernet cable. The connection is being seen in Network Manager and I can get output of ping command at least and I can't access a built-...
14
votes
4
answers
3k
views
Can I have a single server listen on more than 65535 ports by attaching an IPv4 address
I have a number of servers to SSH into, and some of them, being behind different NATs, may require an SSH tunnel. Right now I'm using a single VPS for that purpose. When that number reaches 65535 - ...
1
vote
2
answers
1k
views
Packet routing from docker container to host ip
I am wondering what is tbe route for a packet sent from src being the docker container with its own 'dockerised' IP, to the IP address of the VM, on which this docker process runs? Will the packets ...
1
vote
0
answers
1k
views
socket statistics (ss) program weird ipv6 listening socket address format
I have two services listening on TCP/IPv6 sockets, ssh and mysql. ss shows this:
$ ss -tl6
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 ...
0
votes
0
answers
707
views
Why do my Send-Q keep getting loaded but nothing come out of it?
I'm currently diagnosing a issue related to packet forwarding. I forward link layer packets to B network namespace and I found that B network namespace didn't reply to them, but I could curl and view ...
0
votes
1
answer
241
views
Dropping RSTs vs using NOTRACK
I'm in process building my own firewall. One can say I'm building user space TCP/IP stack.
However, When Kernel receive packet that it can't identify, Kernel would send out RST + ACK (Not sure whether ...
2
votes
1
answer
7k
views
Interface with apipa (i..e. 169.254.x.x)
I have a ubuntu machine with two interfaces (eth0 and eth1). Eth0 interface has a dhcp address and eth1 has apipa (169.254.x.x) address. eth1 is not connected and eth0 is connected to a local network. ...
3
votes
0
answers
487
views
How many times is the data packet copied before finally reaching the NIC?
On a typical linux machine, how many times would packets be copied from the application layer to all the way in its journey to the network card. I am assuming the protocol being used here is TCP/IP ...
0
votes
1
answer
827
views
Alternative to modifying /etc/hosts for dns lookup
I am a networking newb - ping cannot locate certain dns names, so I put them in /etc/hosts like this:
10.128.0.22 kafka.marathn.meso
10.128.0.31 elasticsearch.marathn.meso
and then ping can find them....
5
votes
2
answers
2k
views
Why does telnet on a non existent port not directly reject, but time out?
telnet 8.8.8.8 8888
displays
Trying...
I was expecting, that this directly is refused.
Background: When we have a NGINX reverse proxy server, it would be great, that it detects directly when the ...
0
votes
0
answers
58
views
TCP/IP quits after 48 hours
I have a problem with a (remote) server running SCO UNIX. It's been working for years, but was recently moved, and I changed its IP address & gateway address. Since then it works perfectly until ...
0
votes
1
answer
1k
views
using PPP without TCP/IP
I'm using a PPP to communicate with a device. So far what I have been doing is instantiating PPP on my machine (Fedora 29) and on the device (Yocto Linux). Then I open a TCP/UDP socket and communicate ...
1
vote
2
answers
2k
views
Send TCP packet to the same source [closed]
I want to design a system which reduce travel time of packet what is happening in reality is I send a SYN bit from client side, this bit travel through router then to server and server reply SYN+ACK ...
0
votes
2
answers
476
views
Routing multiple Virtual IP (192.168.11.X) to connect with test server (192.168.10.246)
We are trying to setup a test bed for our server testing, to simulate multiple connection / msg handling, I am trying to connect to our test server from a virtual IP.
on the client machine (Debian) ...
6
votes
2
answers
32k
views
How to map an IP address to localhost
So I have an IP Address 5x.2x.2xx.1xx I want to map to localhost. In my hosts file I have:
cat /etc/hosts
127.0.1.1 test test
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable ...
3
votes
0
answers
557
views
TCP Stack tuning,(TIME_WAIT) - python process ignores sysctl setting?
I'm playing around with tuning various tcp settings for high number of outgoing client connections. I've put following in my /etc/sysctl.conf on Ubuntu 16.04.
net.ipv4.ip_local_port_range = 18000 ...
6
votes
1
answer
5k
views
UDP or TCP hole punching to connect two peers (each one behind a router)
I'm trying to connect directly (without 3rd party server) my computer to a friend's computer. We are both behind a ISP router, and would like (as a challenge!) to connect without modifying the router ...
1
vote
0
answers
101
views
linux failed to assign local port
Our nginx reported a error below:
2017/10/19 10:47:40 [crit] 41689#0: *23414459 connect() to 127.0.0.1:1234 failed (99: Cannot assign requested address) while connecting to upstream, client: 10.0.0.1,...
0
votes
1
answer
450
views
Unordered ACK answer
is there any body knows ; how a server answers to client what if they send first packet as non-syn or the server finish the connection and wait for a new connection instead of getting an ACK or push ...
0
votes
1
answer
333
views
why doesn't port 80 show up via firewall-cmd command?
Doesn't port 80/http need to be explicitly opened like other ports (such as 443/https or 8080/server), or is it a special case?
on my machine (CentOS Linux release 7.3.1611)
firewall-cmd --list-...
2
votes
0
answers
102
views
syncookies and tcp options
enabling syncookies is helping against some attacks
but the official docs still say syncookies seriously violate TCP protocol, do not allow
to use TCP extensions
Today I discover that once upon ...
1
vote
0
answers
219
views
Connect beaglebone black running Debian Image 2015-11-12 to PC through Ethernet.
I have the Beaglebone powered through 5V and the ethernet in a open port on my PC. I have added the lines to /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.80
...
1
vote
0
answers
64
views
IS there a means of identifying the application path for the process which attempts to access the internet on a linux distributution?
Is there a means (kernel mode API) under Linux (any distro) that can identify the application path of a process that makes a connect() call and is attempting to access the internet ? Vice versa in the ...
3
votes
0
answers
185
views
How to emulate LAN adresses locally?
I have this situation: a piece of software got hardcoded IP address (let assume it is being 196.10.10.100:20000) to which it binds a socket and sends TCP and UDP traffic to 196.10.10.9:20000 (...
1
vote
1
answer
95
views
intercept traffic generated by pktgen
I'm generating traffic on a Linux host with pktgen. I thought I could intercept it with tc and apply certain actions, but apparently pktgen bypasses it and writes directly in driver. Is there a way to ...
5
votes
2
answers
4k
views
TCP keep-alive parameters not being honoured
I have a server running on my Linux box, also on which the following commands were run:
$ cat /proc/sys/net/ipv4/tcp_keepalive_time
7200
$ cat /proc/sys/net/ipv4/tcp_keepalive_intvl
75
$ cat /proc/sys/...
4
votes
1
answer
3k
views
How do I set a static IP address for a disconnected interface?
I am setting up an Arch/Manjaro-based machine that only occasionally will be connected to network. I.e. most of the time its Ethernet card is disconnected.
I run into this curious problem - when I ...
52
votes
4
answers
156k
views
Simple shell script to send socket message
For testing purposes I need to create a shell script that connects with a remote IP>Port and sends a simple text TCPIP Socket message.
1
vote
0
answers
1k
views
change TCP_TIMEWAIT_LEN at runtime
Linux kernel defines a timeout to destroy TIME-WAIT state of a connection in include/net/tcp.h:
#define TCP_TIMEWAIT_LEN (60*HZ)
Is there a way to change this parameter at runtime, via sysctl or /...
0
votes
1
answer
1k
views
How authentication is done between two nodes in tcp/ip or udp client server socket
I have a client socket program and server socket program in C TCP/IP . I execute the server program first on a port say 5000 and then executes client program on the same port and then server respond ...
2
votes
1
answer
5k
views
ICMP - Destination unreachable (Port unreachable)
I have two Ethernet-wired connected devices. I gave to both of them address from same sub-network. As result I can see second device in arp-table of the first.
$ arp -a
? (128.247.77.90) at 10:60:4b:...
5
votes
1
answer
6k
views
How do I configure Docker containers to have unique IP addresses that are not the default ones?
How do I configure Docker containers to have unique IP addresses that are not the default ones?
The Docker containers will run Apache or some web service. These Docker containers will share one host ...
1
vote
0
answers
1k
views
Why my server cannot serve more than 400 concurrent connections
I have an Ubuntu 14.04 LTS, kernel 3.13 in a Intel Xeon + 8Gb box. It has apache 2.4.7 configured in mpm worker with up to 4000 workers. The max bandwidth allowed by the ISP is 100Mbps.
If I test ...
7
votes
3
answers
62k
views
ICMP : Port unreachable error even if port is open
I am testing my Debian Server with some Nmap port Scanning. My Debian is a Virtual Machine running on a bridged connection.
Classic port scanning using TCP SYN request works fine and detects port 80 ...
1
vote
0
answers
139
views
TCP/IP routes when using multiple DHCP servers
I have connected a computer (running Debian Wheezy) to two different DHCP servers (routers) through a cable and through a wifi device. If I look at the routes with route, I get the following result
...