by rsync · 4y ago · 0 comments
https://john.kozubik.com/pub/NetworkSlug/tip.html
"A Network Slug, or "Slug", is a transparent layer 2 firewall running on a device with only two interfaces ..."
"So, while the device participates on the physical layer of the (probably ethernet) network, it does not have an IP address and cannot answer IP (or even ICMP) requests ..."
In my case, if I needed a VPN, I would use the excellent 'sshuttle' on, for instance, port 40 and then set the slug to allow only TCP port 40 and nothing else.
No misconfiguration possible. No footguns.
What distinguishes a "slug" is that it is not on the TCP/IP network - you cannot connect to it - and it acts as a "dumb" chokepoint that cannot be misconfigured or attacked or co-opted by other actors or software.[1]
Further, it is a physical, wired device with exactly two ports so you can conceptually witness - with your eyes - how your traffic is locked to whatever VPN you may be using.
[1] Yes, of course it can but when we think of a layer 2 bridge with no TCP/IP connectivity being attacked by a remote actor ... we're bordering on science fiction. For what it's worth, the FreeBSD filesystem I use on my slugs is mounted read-only. Defense in depth.
https://john.kozubik.com/pub/NetworkSlug/
... and this is the body underneath:
https://john.kozubik.com/pub/NetworkSlug/body.html
... and that is where you can see some details of what a "slug" looks like and how they may be set up, etc.