Questions tagged [linux-networking]

Linux Networking refers to any networking function performed by a server running Linux. A Linux server operating as a router or firewall are the most common applications.

3288 questions
82
votes
12 answers

Transfer 15TB of tiny files

I'm archiving data from one server to another. Initially I started a rsync job. It took 2 weeks for it to build the file list just for 5 TB of data and another week to transfer 1 TB of data. Then I had to kill the job as we need some down time on…
lbanz
  • 1,609
  • 5
  • 20
  • 30
74
votes
5 answers

What is the correct way to open a range of ports in iptables

I have come across articles advising for the following: iptables -A INPUT -p tcp 1000:2000 -j ACCEPT And others stating that the above will not work and iptables only supports multiple port declarations with the --multiport option. Is there a…
Paul Whalley
  • 763
  • 1
  • 7
  • 6
64
votes
7 answers

Hostnames - What are they all about?

I've recently been "forced" to perform some sysadmin work, while this isn't something that I absolutely love doing I've been reading, experimenting and learning a lot. There is one fundamental aspect of server configuration that I've not been able…
Alix Axel
  • 2,803
  • 6
  • 29
  • 30
54
votes
2 answers

How can I increase the value of somaxconn?

I can check its value by cat /proc/sys/net/core/somaxconn, is it OK if I change it simply by echo 1024 > /proc/sys/net/core/somaxconn?
linux_user
  • 541
  • 1
  • 4
  • 3
52
votes
6 answers

e1000e Reset adapter unexpectedly / Detected Hardware Unit Hang

I have a Dell 1U Server with Intel(R) Xeon(R) CPU L5420 @ 2.50GHz, 8 cores running Ubuntu Server Kernel Version 3.13.0-32-generic on x86_64. It has dual 1000baseT networking cards. I have it set up to forward packets from eth0 to eth1. I have…
Kyle Coots
  • 2,245
  • 3
  • 17
  • 14
49
votes
11 answers

Docker pull: TLS handshake timeout

I get this consistenly (Ubuntu 16.04 LTS): $ docker pull nginx Using default tag: latest Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout However curl TLS works fine (apart from the auth error): $…
Willem
  • 2,872
  • 4
  • 28
  • 35
49
votes
2 answers

iptables and multiple ports

This doesn't work for me: # iptables -A INPUT -p tcp --dports 110,143,993,995 -j ACCEPT iptables v1.4.7: unknown option `--dports' Try `iptables -h' or 'iptables --help' for more information. However in the man page, there is an option --dports...…
Zenet
  • 928
  • 5
  • 10
  • 15
48
votes
8 answers

Delete a iptables chain with its all rules

I have a chain appended with many rules like: > :i_XXXXX_i - [0:0] > -A INPUT -s 282.202.203.83/32 -j i_XXXXX_i > -A INPUT -s 222.202.62.253/32 -j i_XXXXX_i > -A INPUT -s 222.202.60.62/32 -j i_XXXXX_i > -A INPUT -s 224.93.27.235/32 -j i_XXXXX_i…
timy
  • 699
  • 1
  • 7
  • 14
43
votes
6 answers

How can you tell what a server actually does?

I've been handed 3 Linux boxes, 1 front facing with apache on it and another 2 which, as far as I can tell, don't do an awful lot. All running on Redhat. The question is simple: How can I tell what the server is actually doing? Zero documentation is…
Bizmark
  • 598
  • 4
  • 5
41
votes
2 answers

How to reduce number of sockets in TIME_WAIT?

Ubuntu Server 10.04.1 x86 I've got a machine with a FCGI HTTP service behind nginx, that serves a lot of small HTTP requests to a lot of different clients. (About 230 requests per second in the peak hours, average response size with headers is 650…
Alexander Gladysh
  • 2,423
  • 8
  • 31
  • 49
38
votes
4 answers

How to block internet access to certain programs on Linux

Recently, I have encountered a problem of limiting Internet Access to specific programs. Could anybody recommend a good way of doing that, without using any particular software?
Ilia Ross
  • 1,086
  • 1
  • 10
  • 20
32
votes
8 answers

how to find out mac addresses of all machines on network

Is there some easy way to find out mac address of all machines on my network rather than doing an SSH into each and ifconfig | grep HWaddr if there are 300 machines on network I really need some easy solution.
Registered User
  • 1,463
  • 5
  • 18
  • 37
32
votes
4 answers

Difference between /etc/hosts and /etc/resolv.conf

What is the difference between /etc/hosts and /etc/resolv.conf? Also, is there a good documentation that explain all these configuration files. Thank you. Bala
31
votes
6 answers

Can I have dots in a hostname?

I'm using names like "a.alpha" for the hostname of my linux box, but it seems that these names are not completely usable. The response of a hostname shell command is correct (a.alpha). But the name printed after my user account is "user@a" instead…
benzen
  • 423
  • 1
  • 4
  • 8
29
votes
1 answer

What CAN cause 'RTNETLINK answers : No such process' when adding a route

I have come up against this error a number of times, but haven't yet found an explanation of what the error means, or what can cause the problem. I'm not posting my configs or the specific route I'm trying to add as I don't want someone to tell me…
TaninDirect
  • 405
  • 1
  • 4
  • 4
1
2 3
99 100