Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
17 votes

Find out network traffic per IP

To see realtime usage by IP (rather, by IP and port): sudo apt install tcptrack sudo tcptrack -i eth0 To see realtime usage by MAC address, a nice ncurses based tool is iptraf-ng: sudo apt install ...
tanius's user avatar
  • 874
16 votes

Why does traceroute display many ip addresses for the same hop?

What traceroute give you here as information is that you have at least 2 routes to reach your destination starting from router: IP adresses Internet operator 140....
dan's user avatar
  • 933
12 votes

Why does traceroute display many ip addresses for the same hop?

From the traceroute(8) manual on OpenBSD: Three probes (the exact number can be changed using the -q option) are sent and a line is printed showing the TTL or hop limit, address of ...
Kusalananda's user avatar
  • 336k
7 votes
Accepted

Why does traceroute display many ip addresses for the same hop?

What traceroute does is use the option fields as it sends internet control message protocol (icmp) packets. Each Gateway or routing point in the network reads packets on one interface, decides where ...
ElderDelp's user avatar
  • 333
6 votes
Accepted

Delete illegal router from network

Routers often have multiple virtual network interfaces, and the MAC address that gets assigned to these is made by flipping some bits of the hardware MAC address. So the "illegal router" you ...
dirkt's user avatar
  • 32.4k
5 votes
Accepted

Configure two Routers on one Device

You need to create a second routing table and use policy based routing. Applied to your case you need to: Setup the first default route using the main routing table. This table will be used for the ...
Gohu's user avatar
  • 2,094
5 votes

How to wake-on-lan via internet with python code?

The tricky part in sending Wake-on-LAN packets in from beyond the local network is in getting the router send the packet out to the local network, so that the completely passive PC1 can receive it. ...
telcoM's user avatar
  • 97.9k
4 votes

How to block traffic to a different host using UFW on a router

Turns out that the route keyword is needed to make a rule that applies to forwarding. Hence: ufw route deny in on $WAN_INTERFACE to any proto tcp
hsivonen's user avatar
  • 141
4 votes

Can i list unmounted drives without fdisk or lsblk?

When the kernel looks for possible devices it looks at cat /proc/partitions Sample output: major minor #blocks name 8 0 488386584 sda 8 1 472382464 sda1 8 2 ...
hschou's user avatar
  • 2,912
4 votes

Reboot over ssh

Try entering the full path to the reboot or shutdown command. For example, if the full path to reboot is /sbin/reboot, run ssh root@routerip /sbin/reboot
Lewis M's user avatar
  • 1,048
4 votes

In IPV6, what should I do if the last 2 boxes only contain 3 characters?

According to RFC 4291 Section 2.2 you can shorten any address that has zeros in the following ways: An entire string of zeros can be removed, you can only do this once. 1234:5678:0000:0000:0000:...
kemotep's user avatar
  • 5,290
4 votes

Can a NAT router run out of ports?

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 possible for the router to run out of ...
Chris Davies's user avatar
3 votes
Accepted

Confused about OpenWrt's Firewall Zone Settings Definition

It depends(tm). The WAN Zone (WAN->LAN in your example) is about traffic from WAN to LAN for "Forward" (established connections), from LAN to WAN for "Output" and from WAN to LAN (all other packets) ...
maxf's user avatar
  • 1,629
3 votes

How do I find out the build version to download with LEDE?

That information can be found in /etc/openwrt_release under DISTRIB_TARGET DISTRIB_ID='LEDE' DISTRIB_RELEASE='17.01.2' DISTRIB_REVISION='r3435-65eec8bd5f' DISTRIB_CODENAME='reboot' DISTRIB_TARGET='...
Evan Carroll's user avatar
  • 31.2k
3 votes
Accepted

Any Distros Built for Layer 3 Switching / Routing?

There are several that "specialize" in this listed at Wikipedia; YMMV. Too many to provide a full list, but... https://en.wikipedia.org/wiki/List_of_router_and_firewall_distributions Openwall, ...
0xSheepdog's user avatar
  • 2,750
3 votes

Accessing router from a command line

This is a very generic question that reveals little knowledge of how networked devices work. The answer is, of course, it depends. Routers that provide command line services like telnet or SSH can ...
Pedro's user avatar
  • 1,901
3 votes
Accepted

ssh works only one way

You have a NAT firewall between your two machines. You can see this because your Debian system's IP address is 192.168.0.24 but the Ubuntu system sees the associated inbound connection coming from 10....
Chris Davies's user avatar
3 votes

How to share "internet hotspot" access to a network on a second wifi adapter?

so the answer (after @YoMismo put me on the right track) is to add one more iptables rule: sudo iptables --table nat -A POSTROUTING -s 192.168.42.0/24 ! -d 192.168.42.0/24 -j MASQUERADE The result ...
Gary Smith's user avatar
3 votes
Accepted

How can I tether an Android-based phone to a Linux with Bluetooth and Internet access?

Looks like you need something like this (Let me copy the relevant part here, just in case): First of all, you need to enable BT PAN support in your OPENWRT firmware: $ git clone https://git.openwrt....
David Jashi's user avatar
3 votes
Accepted

Wake on lan from custom router (raspberry pi)

When the desktop PC was switched off, RasPi's network interface connected to it reports NO-CARRIER, or in other words, the physical link went down. This means the desktop is not in a wake-on-LAN ...
telcoM's user avatar
  • 97.9k
2 votes
Accepted

SSHFS on Asus DSL-AC68U router

I had a similar question and solved it by installing Entware: To install Optware on your RT-AC68U in three simple steps: Mount the ext4 formatted disk; Go to router’s web interface (router.asus.com) ...
gatorback's user avatar
  • 1,384
2 votes

How to setup PPPoE with OpenWrt

config 'interface' 'loopback' option 'ifname' 'lo' option 'proto' 'static' option 'ipaddr' '127.0.0.1' option 'netmask' '255.0.0.0' config 'interface' 'lan' option 'type' 'bridge' ...
diveinsky's user avatar
2 votes

iptables connection refused in VLAN network when iptables configured NAT and port forwarding

Packets from your /24 network don't come in through the ppp0 interface, consequently the rules shown are not applied, and you effectively try to access port 80 on the router. If the router has port 80 ...
d.hoeffer's user avatar
  • 166
2 votes

Is there a way to figure out a modem/router web IP address?

It's a little unclear what you want, but here goes: ping usually shows what ip it's using. That might be the address on your LAN side of the router, but that is most likely what you need. If you're ...
Henrik supports the community's user avatar
2 votes
Accepted

Local hostname resolution with BIND and custom domain

ISC dhcpd is capable of doing dynamic DNS updates in combination with BIND, but not without some configuration. The full information can be found in the dhcpd.conf man page; essentially, you should do ...
Wouter Verhelst's user avatar
2 votes

Server access through two different wifi routers

Router #2 is also plugged into one of the out ports on Router #1 If this is the case devices on connected to router1 should be able to access the server if you add a static route in router1's routing ...
smokes2345's user avatar
2 votes
Accepted

Connecting two Windows clients on separate subnets through a Debian router

To make a Linux machine to act as a router, you need to tell it how to route the traffic going from both subnets. You need to use route command to add the routes for each subnet, somenthing like this ...
Rubén Alemán's user avatar
2 votes
Accepted

Find type of router

You could use curl http://192.168.1.1 just to get the HTML of the login page. It probably says on it. Also, you could use arp -a to get the MAC of the router, and then look up the first 6 digits to ...
jsbillings's user avatar
  • 24.5k
2 votes
Accepted

How to configure iptables ICMP rules on a router?

NOTE: It sounds like this is more of a firewall question than a router question. Don't even try to worry about various ICMP types and which ones you have to match against which packets to permit in ...
Celada's user avatar
  • 44.3k

Only top scored, non community-wiki answers of a minimum length are eligible