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.

Filter by
Sorted by
Tagged with
21 votes
3 answers
15k views

Adding a whole IPv6 /64 block to an network interface on debian

I tried adding a whole IPv6 (/64) block to an interface using ip route add local 2001:41d0:2:ad64::/64 dev lo like described here on my Debian server, but I seem to be missing something. If I ping ...
Hikaru-Shindo's user avatar
42 votes
2 answers
84k views

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 ...
Alexander Gladysh's user avatar
26 votes
4 answers
75k views

Linux e1000e (Intel networking driver) problems galore, where do I start?

I'm currently having a major problem with e1000e (not working at all) in Ubuntu Maverick (1.0.2-k4), after resume I'm getting a lot of stuff in dmesg: [ 9085.820197] e1000e 0000:02:00.0: PCI INT A ...
Evan Carroll's user avatar
  • 2,432
16 votes
1 answer
70k views

How to troubleshoot latency between 2 linux hosts

The latency between 2 linux hosts is about .23ms. They are connected by one switch. Ping & Wireshark confirm the latency number. But, i dont have any visibility into what is causing this latency. ...
Jimm's user avatar
  • 303
65 votes
6 answers
34k views

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 ...
Alix Axel's user avatar
  • 2,813
32 votes
8 answers
103k views

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 ...
Registered User's user avatar
10 votes
4 answers
16k views

AWS VPC + IPtables + NAT: Port Forwarding is not working

Yesterday, I posted a question here but I think was not clear enough in my words. BTW, This question is not a duplicate. I have AWS VPC Setup as below. GOAL/PROBLEM: SSH to Server A from internet. ...
slayedbylucifer's user avatar
6 votes
3 answers
25k views

Delete specific conntrack entries?

in a multi-ISP configuration, I'm routing and NATing specific traffic, e.g. VoIP, through specific interface - to a distinct provider. When one of the interfaces (or routes) becomes unavailable, all ...
Zrin's user avatar
  • 607
6 votes
3 answers
38k views

How to set up two default routes in linux

TL;DR How to set up two default routes in linux (corresponding to two interfaces), such that incoming traffic from both interfaces is accepted. Scenario I have a host having two NICs eth0 and eth1....
Tanmay's user avatar
  • 225
4 votes
1 answer
3k views

stunnel: SSL-to-SSL? (for smtp/imap)

How can I configure stunnel to accpet SSL connections, and connect then to an SSL port on a different server? Here is my setup: Our ISP's server, "Mail Server", supports smtp/imap over SSL. (Not ...
nonot1's user avatar
  • 1,109
2 votes
2 answers
12k views

Simple client / server with nc not working

Why is the following not working? I have a freshly installed Debian 9 system. iptables is wide-open: [···]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source ...
Cal-linux's user avatar
  • 175
-1 votes
2 answers
11k views

Postfix - How to prevent external clients from using my server as a relay? [closed]

I have a postfix server installed on Ubuntu 14.04. A PHP script running on the machine uses it to send outgoing email. Additionally, I use postfix to receive mail sent to a local account, which is ...
Luis Cruz's user avatar
50 votes
2 answers
100k views

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. ...
Zenet's user avatar
  • 938
25 votes
4 answers
68k views

multiple MAC addresses on one physical network interface (linux)

Simple question: How can I setup multiple MAC addresses on one physical network interface (linux)? Why? My ISP is checking ip<->mac on GW and I d like to route traffic through my "linuxbox" and ...
grapefruyt's user avatar
20 votes
2 answers
53k views

SSH: DH_GEX group out of range

We recently applied a vendor-supplied patch for OpenSSH. This patch disabled a few key exchange protocols in response to the recent Logjam attack. After applying this patch, we have a few vendors ...
sbrown's user avatar
  • 301
18 votes
4 answers
115k views

"Stale NFS file handle" after reboot

On the server node, it is possible to access an exported folder. However, after reboots (both server and client), the folder is no longer accessible from the clients. On server # ls /data Folder1 ...
mahmood's user avatar
  • 1,052
18 votes
3 answers
103k views

How to set a static IP (client side) in OpenVPN?

I am setting up a VPN network with a lot of little devices (running OpenWRT). In my use case, the devices are all identified by a number and I would like their ip adresses to match their ID (e.g: the ...
Morreski's user avatar
  • 293
16 votes
1 answer
51k views

VLAN tags not shown in packet capture (Linux) via tcpdump

I am adding a tagged VLAN onto eth0: #ip link add link eth0 name eth0.20 type vlan id 20 This results in: #ip link 2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast ...
Marki's user avatar
  • 2,854
12 votes
2 answers
41k views

DH GEX group out of range

I'm having a sudden issue SSHing into my server: ssh -v --@-- OpenSSH_7.2p2 Ubuntu-4ubuntu1, OpenSSL 1.0.2g-fips 1 Mar 2016 debug1: Reading configuration data /home/paul/.ssh/config debug1: Reading ...
PaulBGD's user avatar
  • 223
12 votes
5 answers
7k views

tc u32 --- how to match L2 protocols in recent kernels?

I have a nice shaper, with hashed filtering, built at a linux bridge. In short, br0 connects external and internal physical interfaces, VLAN tagged packets are bridged "transparently" (I ...
brownian's user avatar
  • 291
12 votes
1 answer
17k views

NAPI vs Adaptive Interrupts

Could anyone please explain how two following technologies are used to mitigate interrupt overhead under high networking load? Adaptive-rx/Adaptive-tx, and NAPI; I would appreciate an answer that ...
user2138912's user avatar
10 votes
1 answer
18k views

Why does Linux answer to ARP on incorrect interfaces?

I have the following Linux networking setup: there is an eth10 network interface with the assigned address 10.11.0.1/24. Then there is a tap0 network interface with assigned dummy address 0.0.0.1/32 (...
juhist's user avatar
  • 322
10 votes
4 answers
11k views

Is it possible to enable port isolation on Linux bridges?

On most managed switches you can enable Layer 2 Port Isolation. The implementation and terminology is different from vendor to vendor but generally speaking you keep one or more ports in the default ...
mss's user avatar
  • 445
7 votes
5 answers
27k views

Can only bring up one of two interfaces

I'm having a bizarre issue with my HP Proliant DL 360 G4p server. It has two gigabit ethernet interfaces but I can bring up only one of them. This is starting to freak me out and that's why I turned ...
mstaessen's user avatar
  • 332
6 votes
2 answers
63k views

openVPN Could not determine IPv4/IPv6 protocol. Using AF_INET

I am having issues connecting to my VPN, with port forwarding set correctly as I can VPN into my other lubuntu machine, also UFW is disabled. Can someone please guide my as to what I am missing in my ...
DaVinci007's user avatar
6 votes
4 answers
4k views

Transfer large amount of small files

I've to do a migration of two servers with large SAN attachments to our new VMWare environment. EDIT: I have to supply some additional intelligence as I have good answers regarding VMWare solution. ...
Dr I's user avatar
  • 975
5 votes
1 answer
4k views

Linux & IPv6: How to bind to an arbitrary IPv6 address? [duplicate]

Possible Duplicate: Can I bind a (large) block of addresses to an interface? I have a /48 IPv6 block. I'd like to be able to do this: $ wget --bind-address=<1st-ipv6> http://www.some-url....
raco's user avatar
  • 51
3 votes
3 answers
1k views

Iptables rules with ! character

I have entered iptables rules to log a specific connection on our server, but it doesn't seem to be working as I want it to. Here are the rules: 1 LOG tcp -- !10.51.0.0/16 0.0.0.0/...
Bryan's user avatar
  • 33
3 votes
1 answer
1k views

bonding-rr vs single 10G for NFS NAS - pros and cons?

I'm standing before choice of NICs and switch for storage server and virtualization hosts and I can't decide between 10G and quad gigabit with bonding-rr. 10G is noticeably more expensive solution and ...
Lapsio's user avatar
  • 363
2 votes
1 answer
3k views

strongSwan ipsec setup, couple of questions

i am trying to setup a IPsec bridge between my home network and my office network. I want to use StrongSwan to encrypt the traffic as IPsec i am trying to follow this guide A brief description of ...
lurscher's user avatar
  • 172
2 votes
1 answer
7k views

Port appears open locally but closed from another machine

I am currently trying to set up a Hadoop distributed compute cluster on my network. Currently. my cluster nodes are encountering a problem communicating with my master server. Right now I am working ...
ILikeFood's user avatar
  • 399
1 vote
1 answer
3k views

bridging two network interfaces in ubuntu linux 12.10 AND being able to access it from that machine

Ok, i have about had it but heres the deal. I have 7 total machines connected like this: [5 workstations]<--->ServerPC<---->MAINPC<---->router FYI, dont worry about the workstations they ...
osirisgothra's user avatar
1 vote
2 answers
2k views

How can I intercept a socket binding call to map to another port?

Let's assume I have some executable foo and I have bar. Both are hard-coded to listen on port 80. Let's assume we have root. How can I get both running on different ports? Or one of them? You can ...
Vaughan Hilts's user avatar
0 votes
1 answer
2k views

How to see if incoming HTTP requests are successful (view the responses) on Linux?

I'm really new to managing servers, and I've discovered that I can run ngrep and see connections from Google to our site (which is currently getting thousands upon thousands of 5xx errors and "crawl ...
NAMAssist's user avatar
  • 125
0 votes
2 answers
444 views

moving ip of one VM to another VM

I've hosted two VMs on the same machine, one is active in nature i.e. hosting a service and is connected to a client (client is running directly on the host machine). I've to implement a fault ...
y_159's user avatar
  • 121
0 votes
2 answers
3k views

ip routing for extra eni on RHEL ec2 instances

I have noticed that when one add an additional ENI on an ec2, getting routing to work is so difficult and there is no documentation anywhere to refer to. I do know that if one uses the Amazon Linux ...
uberrebu's user avatar
  • 513
0 votes
1 answer
5k views

Openvpn - enabled redirect gateway but can't access any websites

First of all I'm a newbie to servers but not to stuff like programming so not totally alien to command lines etc. Second, I want to run openvpn on my remote server and connect from my ubuntu desktop ...
adam's user avatar
  • 205
75 votes
6 answers
216k views

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 ...
Paul Whalley's user avatar
54 votes
6 answers
94k views

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 ...
Kyle Coots's user avatar
  • 2,285
29 votes
1 answer
87k views

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 ...
TaninDirect's user avatar
27 votes
11 answers
276k views

Can't start CentOS 7 "network" service

I Can't start CentOS 7 "network" service after disabling and removing "NetworkManager" service. When I check the network service status, it comes up with the following error: #systemctl status ...
Gazel's user avatar
  • 293
26 votes
8 answers
63k views

How to persist ethtool settings through reboot

I would like to turn off tcp segmentation offload on a CentOS5 server. Using ethtool the command is ethtool -K eth0 tso off However, this setting only persists for this session. How can I make it ...
Gus E's user avatar
  • 581
24 votes
4 answers
204k views

Unable to add a static route: SIOADDRT: Network is unreachable

I've been bashing my head against a wall for a few days trying to figure this out: My ifconfig is: eth0 Link encap:Ethernet HWaddr 00:50:56:BB:XX:XX inet addr:192.168.36.132 Bcast:...
AnonPoster's user avatar
21 votes
2 answers
42k views

Is it possible for L2TP VPN to do auto route configuration for client during connected?

We've setup a L2TP VPN server with this tutorial, everything works like a charm. The only issue is We don't want client to route all traffic using this VPN, only a particular subnet, e.g. 10.0.0.0/...
Howard's user avatar
  • 2,175
16 votes
5 answers
13k views

predictable network interface names in systemd

Recent version of Ubuntu and Debian (stretch) bring a new network interface naming scheme. Now, when updating from a system that's using old style names like "eth0", I'd like to know prior to booting ...
Ralf Hildebrandt's user avatar
16 votes
1 answer
55k views

How GRO (generic receive offload) works on more advanced NICs?

I am interested in particular answers: Does the NIC with GRO edits/creates TCP ACK or any other packets (or is this feature transparent to receiver/sender TCP stacks)? There should be a timeout/event ...
user2138912's user avatar
14 votes
3 answers
37k views

The same IP on multiple interfaces

Hello networking gurus, I've got a Linux (kernel 3.14) server which acts as a TFTP, NFS and HTTP server for a farm of consumer electronics devices (set-top boxes - STBs). The devices use TFTP to boot ...
Leszek's user avatar
  • 383
13 votes
2 answers
15k views

PXE Booting Virtualbox guests in internal networking mode?

I am not sure if this is just specific to my distro's packages or is a vbox limitation. So, any help would be appreciated. Ok, so I have a network of VMs, with one VM acting as a NAT for the other ...
Mohit Chawla's user avatar
13 votes
2 answers
47k views

I need a reverse proxy solution for SSH

Hi here is a situation I have a server in a corporate data center for a project. I have an SSH access to this machine at port 22.There are some virtual machines running on this server and then at the ...
Bond's user avatar
  • 841
13 votes
2 answers
28k views

How to scan ipv6 enabled hosts on my LAN?

I want to discover all my neighbors who enabled ipv6 protocol and still alive. I tried ip -6 neighbor show but it shows nothing. Can someone recommend a tool and show some examples? Thanks.
Douglas Su's user avatar