geffers
Posts: 364
Joined: Sun Jun 24, 2012 6:25 am
Location: UK
Contact: Website

Temporary Router

Sat Jun 15, 2019 11:06 am

Folks,

Curious, I have a number of devices working behind a router, it is an old router and the admin page shows some kind of throughput (blocks) but no real detail.

Is there any way of routing (temporarily preferably) all network traffic through a Pi so that using something like ntopng more detailed network traffic can be viewed.

Appreciate this could cause a bottleneck, hence suggestion of temporary.

Geoff

epoch1970
Posts: 2976
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Temporary Router

Sat Jun 15, 2019 11:43 am

I'd rather suggest adding a bridge (possibly anonymous = sans IP address), in other words turn the Pi into a 2-port ethernet switch, that will see all the traffic pass through it without changing anything to the network setup.

For ethernet:
  • Install on the Pi the software packages you want to use,
  • Add an USB adapter to the Pi,
  • Create a bridge br0 with both eth0 and usb0 in it,
  • Disconnect everything from the router except WAN and one LAN cable,
  • Stick the LAN cable in the Pi,
  • Connect another cable from the USB adapter to a switch on which LAN clients are connected.
So for this recipe you need: 1 gigabit USB adapter, 1 ethernet switch, 1 ethernet cable, Pi and accessories.

If you need to see wifi traffic as well, altering the router, and possibly clients configs will be required:
  • Disable the AP in the router,
  • Create one with possibly identical parameters in the Pi,
  • Add wlan0 to the bridge.
Ethernet or wifi, performance will suffer so the setup is not going to be as "transparent" as it can be.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

tpylkko
Posts: 369
Joined: Tue Oct 14, 2014 5:21 pm

Re: Temporary Router

Sat Jun 15, 2019 1:46 pm

On many routers you can install a linux-based open source firmware that then allows you to modify and install almost anything on them.

Andyroo
Posts: 3255
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Temporary Router

Sat Jun 15, 2019 2:09 pm

tpylkko wrote:
Sat Jun 15, 2019 1:46 pm
On many routers you can install a linux-based open source firmware that then allows you to modify and install almost anything on them.
The best known is https://dd-wrt.com/ but there is https://openwrt.org/ and https://advancedtomato.com/ with different capabilities.
Need Pi spray - these things are breeding in my house...

geffers
Posts: 364
Joined: Sun Jun 24, 2012 6:25 am
Location: UK
Contact: Website

Re: Temporary Router

Mon Jun 17, 2019 12:47 pm

Andyroo wrote:
Sat Jun 15, 2019 2:09 pm
tpylkko wrote:
Sat Jun 15, 2019 1:46 pm
On many routers you can install a linux-based open source firmware that then allows you to modify and install almost anything on them.
The best known is https://dd-wrt.com/ but there is https://openwrt.org/ and https://advancedtomato.com/ with different capabilities.
Yes, I've seen them, my present Router is old but still works fine and can't take that firmware update.

Thanks for suggestion.

Geffers

geffers
Posts: 364
Joined: Sun Jun 24, 2012 6:25 am
Location: UK
Contact: Website

Re: Temporary Router

Mon Jun 17, 2019 12:49 pm

epoch1970 wrote:
Sat Jun 15, 2019 11:43 am
I'd rather suggest adding a bridge (possibly anonymous = sans IP address), in other words turn the Pi into a 2-port ethernet switch, that will see all the traffic pass through it without changing anything to the network setup.
Great suggestion but for my minimal requirements might be too much.

Think I may just go with installing ntopng on remote machine then just viewing nia web browser.

Geffers

User avatar
procount
Posts: 1651
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: Temporary Router

Mon Jun 17, 2019 12:51 pm

Lede / Openwrt can also be installed on a RPi to turn it into a router. It's available for many devices. (also installable via PINN ;) )
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

geffers
Posts: 364
Joined: Sun Jun 24, 2012 6:25 am
Location: UK
Contact: Website

Re: Temporary Router

Mon Jun 24, 2019 2:09 pm

procount wrote:
Mon Jun 17, 2019 12:51 pm
Lede / Openwrt can also be installed on a RPi to turn it into a router. It's available for many devices. (also installable via PINN ;) )
Now the Pi 4 is out with gigabit ethernet this becomes a decent option.

Geffers

Return to “General discussion”