Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

83 total results found

Systemd

Linux

Introduction systemd is a software suite that provides an array of system components for Linux operating systems. Its main aim is to unify service configuration and behavior across Linux distributions; systemd's primary component is a "system and service mana...

LXC NIC Passthrough

Linux LXC

On the rare occation you have a good reason to forgo the small overhead of an veth (Virtual Ethernet) device connected to an ethernet bridge it is possible to pass a physical network interface directly to a LXC host. To pass a physical device you just need to...

netfilter/iptable logging

Linux LXC

Logging from network namespaces other than init has been disabled since kernel 3.10 in order to prevent host kernel log flooding from inside a container. Source: lxc-users.linuxcontainers.narkive.com There are two ways to get logging working on guests ...

Physical Hardware

edge

Basic Components This is a Mini PC purchased from AliExpress to act as a router/firewall. It only provides expansion through USB and focuses more on power efficiency than raw performance. This allows it to run without any fan for cooling. Compute Processo...

Base Install

edge

Operating System Proxmox Virtual Environment 6.x Configuration Proxmox configuration has been transitioned to being automated by an Ansible Role

Base Install

vault

Operating System Proxmox Virtual Environment 6.x Configuration Proxmox configuration has been transitioned to being automated by an Ansible Role

LXC / ember

edge

Description LXC container acting as a router/firewall. You can read more about how it is setup at Project Router. Configuration Resources Hostname CPU Memory ember 4 vCPU 2048MB Storage Mount Point Source Mount Path Si...

Logging in LXC

Project Router

Logging One problem I ran into is that access to kernel logging is limited or unavailable from inside of a LXC container. For some usecases (like netfilter's LOG action) any logging that happens in a LXC container will be blackholed and not recorded anywhere ...

Wireguard

Project Router Virtual Private Networking

I had two goals I wanted to accomplish with VPNs. I need to redirect all outbound traffic from a specific subnet through a VPN so any client on that subnet would have its privacy protected by the VPN. Allow me to VPN into my home network from somehwe...

Bridge Zero Copy Transmit

Linux KVM Virtual Machines

Zero copy transmit mode is effective on large packet sizes. It typically reduces the host CPU overhead by up to 15% when transmitting large packets between a guest network and an external network, without affecting throughput. Source: Red Hat - Network Tu...

QEMU Device Properties

Linux KVM Virtual Machines

Example: Rename Device Example: Move MSI-X The QEMU vfio-pci device option is x-msix-relocation= which allows specifying the bar to use for the MSI-X tables, ex. bar0...bar5. Since this device uses a 64bit bar0, we can either extend that BAR or choose...

Introduction: Novice to Network Admin

Project Router

Introduction If you're just looking to get started reading about how I setup everything you can skip down to the Goals section or go straight to Guest Setup to get started. Background From when I first started using computers as a kid I treated all things r...

LXC Guest Setup

Project Router

As I discussed in Introduction: Novice to Network Admin the goal is to run a router/firewall inside a LXC guest so there is little to no overhead when routing packets. So I created an unpriviledged LXC guest with a Debian 10 template. Resources The mini PC t...

Initial Network Setup

Project Router

Configure Interfaces I need Internet access to download all the packages necessary so I setup DHCP on the WAN connection eth0. Setting all the local network interfaces to `manual` and not providing any addresses prevents any accidental routing before everyth...

DNS: Recursive DNS

Project Router

Option 1: Unbound $ apt install unbound Recursive DNS can sometimes sacrifice speed for security so the unbound server is going to be limited to only serve DNS requests from loopback addresses. Everyone else will have to go through a DNS caching server (dn...

Firewall Setup

Project Router IPv4

Install Shorewall To manage nftables/iptables I decided to go with Shorewall since it is easy to configure and very mature. At some point I may look into switching to FireHol since it looks even simpler to configure but I wanted something I knew I'd be able t...

DHCP and DNS Cache

Project Router IPv4

Install dnsmasq I decided to use dnsmasq since it can fulfull multiple roles as both a DHCP and DNS cache. I'll first configure it for IPv4 and then later add in the few extra IPv6 lines needed. Setup DHCP The following can look complicated but that is just...

Firewall Setup

Project Router IPv6

Install Shorewall6 Configuring Shorewall for IPv6 is nearly identical to how I did it for IPv4. The biggest different is I can skip most things related to masquerading since that is less often necessary in the world of IPv6. The only changes that need to be ...

DHCP and SLAAC

Project Router IPv6

I already setup dnsmasq for IPv4 and so there is very little that needs to be done to add IPv6 support. I just needed to add dhcp-range lines for each subnet. I am tagging them the same as before and using the ::,constructor:<interface> syntax to tell dnsmasq...

Prefix Delegation

Project Router IPv6

I'd recommend reading about Prefix Delegation to get a better understanding of it but the gist is that using DHCPv6 it is possible to request a "prefix" where any IPv6 address starting with that will be routed to the router. Then the router can use that to con...