linux-router icon indicating copy to clipboard operation
linux-router copied to clipboard

Request for clarification regarding OpenWrt

Open sheilbronn opened this issue 2 years ago • 9 comments

Hi! This is more a request for clarification rather than filing an concrete issue: Will linux-router also work with OpenWrt?

sheilbronn avatar Sep 18 '21 12:09 sheilbronn

Hi there! Thanks for question. This is the first time we hearing from OpenWrt user!

Our script has been used by many computer and RPi users. As for router devices, I myself have (only) one running Linux. It has a broadcom chip. masquerade/forwarding is not handled by Linux, but by hardware. So no iptables. And it hasn't hostapd, wifi is handled by hardware too. So I've never tested this script on that router.

Though, router devices have different models. Looking forward to hearing other router device users' feedback!

garywill avatar Sep 18 '21 13:09 garywill

So you're saying that - since OpenWrt has iptables and hostapd - I should be giving it a try?!

sheilbronn avatar Sep 18 '21 14:09 sheilbronn

Yes, why not? Just one command. Make sure meet the required dependencies

garywill avatar Sep 18 '21 15:09 garywill

What would be the purpose of linux-router on a... router?

atrent avatar Sep 18 '21 19:09 atrent

I think I didn't make clear enough on yesterday's reply.

Having hostapd and iptables installed is not the key. Key is: Hardware or software mode the device is

If one router

  • is a "software router"
  • or is a "hardware router" which can also be set to "software" mode

then I believe 99% there's chance we can make our script work.

To check S or H, we can check:

  • use tcpdump to see if all traffics passing the router physically reach Linux or not (not only those traffic from/to router itself, eg our SSH connection from PC to router)
  • is iptables (or nft) ~~empty or not~~ rules what the router actually doing
  • is a hostapd process running when wifi's on
  • ......

That's not all. Router may have something set by default, eg VLANs, which not taken into account by our script yet. (So welcome users' feedback)

What would be the purpose of linux-router on a... router?

Hmmm... maybe our transparent proxy feature?

garywill avatar Sep 19 '21 02:09 garywill

What would be the purpose of linux-router on a... router?

... easily added additional SSID's...

sheilbronn avatar Sep 19 '21 21:09 sheilbronn

I think I didn't make clear enough on yesterday's reply.

... If one router

* is a "software router"

* or is a "hardware router" which can also be set to "software" mode

then I believe 99% there's chance we can make our script work.

To check S or H, we can check:

* use `tcpdump` to see if all traffics passing the router physically reach Linux or not
  (not only those traffic from/to router itself, eg our SSH connection from PC to router)

* is iptables (or nft) empty or not

* is a `hostapd` process running when wifi's on

* ......

I wanted to try it on a Freifunk node (based on Gluon, based on OpenWrt, hardware is TP-Link TL-WR810N) to add an additional SSID. The node (being based on OpenWrt) has a non-empty iptables (iptables --list), a running hostapd process and all traffic is encrypted before being tunneled through a Wireguard VPN. So I assume strongly, that the kernel sees all traffic....

sheilbronn avatar Sep 19 '21 21:09 sheilbronn

What would be the purpose of linux-router on a... router?

... easily added additional SSID's...

this is a standard (and easily configured via luci or config files) feature of OpenWrt

atrent avatar Sep 20 '21 05:09 atrent

What would be the purpose of linux-router on a... router?

... easily added additional SSID's...

this is a standard (and easily configured via luci or config files) feature of OpenWrt

Yes, regarding OpenWrt you're right, but maybe not for Gluon and/or Freifunk (which I would like try out as soon as I have another device to experiment with)

sheilbronn avatar Sep 20 '21 20:09 sheilbronn