Questions tagged [networking]

Managing and using network connectivity on a unix system

Use this tag for general questions about network connectivity:

  • configuring network interfaces
  • diagnosing network issues
  • establishing a network connection
  • etc.

Questions about networking between a unix system and a non-unix system are on-topic unless the issue is clearly on the non-unix side.

Most questions should also have one or more tag to identify the aspect or protocol that the question is about:

Do not use the tag if your question is specifically about a networked application and not about network configuration. For example:

  • How do I configure my Linux firewall to let FTP through?
  • How can I upload only files that are more recent than the remote version over FTP?
8151 questions
638
votes
30 answers

How can I resolve a hostname to an IP address in a Bash script?

What's the most concise way to resolve a hostname to an IP address in a Bash script? I'm using Arch Linux .
502
votes
5 answers

How does reverse SSH tunneling work?

As I understand this, firewalls (assuming default settings) deny all incoming traffic that has no prior corresponding outgoing traffic. Based on Reversing an ssh connection and SSH Tunneling Made Easy , reverse SSH tunneling can be used to get…
Ali
  • 5,501
435
votes
15 answers

What DNS servers am I using?

How can I check which DNS server am I using (in Linux)? I am using network manager and a wired connection to my university's LAN. (I am trying to find out why my domain doesn't get resolved)
Grzenio
  • 6,187
369
votes
18 answers

How do I set my DNS when resolv.conf is being overwritten?

Most of the info I see online says to edit /etc/resolv.conf , but any changes I make there just get overridden. $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND --…
Seán Hayes
  • 4,591
201
votes
4 answers

ifconfig command not found

I've just installed CentOS7 as a virtual machine on my mac (osx10.9.3 + virtualbox) .Running ifconfig returns command not found. Also running sudo /sbin/ifconfig returns commmand not found. I am root. The output of echo $PATH is as below.…
RobSeg
  • 2,480
200
votes
4 answers

Good detailed explanation of /etc/network/interfaces syntax?

I understood the very basic concept of how to use /etc/network/interfaces , but all I find online are examples, example after example, which I can copy-paste from. What I miss is an explanation of the syntax, an explanation of the meaning of the…
Foo Bar
  • 3,712
190
votes
5 answers

Why is my ethernet interface called enp0s10 instead of eth0?

When I run ifconfig -a , I only get lo and enp0s10 interfaces, not the classical eth0 What does enp0s10 mean? Why is there no eth0 ?
188
votes
6 answers

How to make a machine accessible from the LAN using its hostname

Here are details of the machine I want to access using its hostname: $ hostname hostname $ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 hostname.company.local hostname It's a default Debian 6 (Squeeze) install, so I didn't fiddle with anything yet.…
tshepang
  • 68,112
175
votes
8 answers

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 the local network I could connect…
waitinforatrain
  • 1,855
  • 2
  • 12
  • 7
154
votes
9 answers

How can I monitor all outgoing requests/connections from my machine?

My machine is a server so I want to ignore connections being made to my server (e.g. when someone visits my website). I want to see only connections/requests being made by my server to other places. How do I see only those outgoing connections?…
trusktr
  • 4,373
143
votes
4 answers

Throttle the download speed of wget or curl while downloading

Is it possible to throttle (limit) the download speed of wget or curl ? Is it possible to change the throttle value while it is downloading ?
Gautam
  • 2,495
135
votes
6 answers

How can I find available network interfaces?

This is in regard to linux, but if anyone knows of a general *nix method that would be good. I booted a system yesterday with an ethernet cable plugged in. "NetworkManager" is not installed, so once it started I went to look for the name of the…
goldilocks
  • 90,427
  • 33
  • 212
  • 274
129
votes
5 answers

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 something that wants to bind to 8080 and some else is already…
user5721
121
votes
11 answers

Block network access of a process?

Is it possible to block the (outgoing) network access of a single process?
larkee
  • 1,313
  • 2
  • 9
  • 5
119
votes
6 answers

On-the-fly monitoring HTTP requests on a network interface?

For debugging purposes I want to monitor the http requests on a network interface. Using a naive tcpdump command line I get too much low-level information and the information I need is not very clearly represented. Dumping the traffic via tcpdump to…
maxschlepzig
  • 60,332
1
2 3
…
99 100