What changes when you turn a Linux box into a router

(patrickmccanna.net)

49 points | by 0o_MrPatrick_o0 3 days ago

2 comments

  • Havoc 10 minutes ago
    Used to run a virtualized firewall setup. And then one day discovered that somewhere along the lines I had made a change (or an update changed something) that meant proxmox admin interface was being served publicly. That's despite confirming during initial setup that it isn't.

    So now I do not do any funky stuff with firewalls anymore. Separate appliance with opnsense bare metal.

    • tarruda 0 minutes ago
      I currently do something similar.

      My router is a 16GB n150 mini PC with dual NICs. The actual router OS is within openwrt VM managed by Incus (VM/Container hypervisor) that has both NICs passed through.

      One of the NICs is connected to another OpenWrt wifi access point, and the other is connected to the ISP modem.

      The n150 also has a wifi card that I setup as an additional AP I can connect to if something goes wrong with the virtualization setup.

      Been running this for at least 6 months and has been running very smoothly.

  • eqvinox 1 hour ago
    That's not a router, that's a CPE, and one without IPv6 support.
    • marssaxman 18 minutes ago
      Thank you for informing me that a novel definition of the term "router" has come along since the last time I turned a Linux box into a router. The world changes in strange ways sometimes!
    • oxygen_crisis 1 hour ago
      Technically it's an IPv4 router once you enable net.ipv4.ip_forward in step 1, the rest is enabling a whole lot of supplementary services and operations not intrinsic to the definition of a router.
    • trelane 20 minutes ago
      What is "CPE" in this context? It's probably not "Common Platform Enumeration" (my top results for "cpe linux") or "Customer-Premises Equipment." ("cpe networking")
      • landdate 3 minutes ago
        Googling "cpe vs router" shows websites comparing "Customer Premises Equipment" with routers. I don't think it fits though.
      • bombcar 10 minutes ago
        I think it's your second one (used to be called the "modem" in the modem→router→ pc setups of yore).
        • trelane 5 minutes ago
          > CPE generally refers to devices such as telephones, routers, network switches, residential gateways (RG), set-top boxes, fixed mobile convergence products, home networking adapters and Internet access gateways that enable consumers to access providers' communication services and distribute them in a residence or enterprise with a local area network (LAN).

          https://en.wikipedia.org/wiki/Customer-premises_equipment

          Given that the Wikipedia definition of CPE includes routers, I don't see how calling it CPE precludes it being a router, as the poster claimed:

          > That's not a router, that's a CPE, and one without IPv6 support

    • TacticalCoder 48 minutes ago
      I didn't see in TFA --although I may have missed it-- where it said it was replacing the ISP's router/CPE. Anything routing traffic is a router.

      At home I've got both a CPE given by my ISP and my own router that routes and bridges traffic between two LANs of mine (192. and 10.).

      Moreover the lack of IPv6 inside our own LANs is, for many of us, a feature. It doesn't mean we don't have an IPv6 address: it just means we have the choice and did choose to have our own LANs on IPv4 only. And, no, I don't care that it makes some programmers at some megacorp' lives more difficult to "reach" inside my networks.

      I'm the boss at my home and my router is IPv4 only.

      And I've got that in addition to my ISP's CPE.