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

136 total results found

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...

IPv6 Intro

Project Router IPv6

Refresher For a quick crash course into IPv6 checkout my IPv6 Quick Explainer guide. Why Did I Setup IPv6? Beyond just being good to know because it'll be what we're all using sooner than later there are a few practical advantages of IPv6 over IPv4. Most im...

Route Subnet Through Wireguard Interface

Project Router Virtual Private Networking

Funneling all traffic from an Ethernet interface through a Wireguard interface is relatively easy once I became familar with how packets flow through Linux. I mostly just needed to modify my Wireguard *.conf file to add the Table, PostUp, and PreDown parameter...

Remote Access

Project Router Virtual Private Networking

Allowing remote access is just a matter of setting up a new Wireguard interface, allowing incoming traffic to that interface, and making sure the firewall allows that traffic to connect to the rest of the network. Create Interface # cd /etc/wireguard # umas...

Isolate CPUs from Kernel Scheduler

Linux

Disable CPU(s) Sysfs # echo 0 > /sys/devices/system/cpu/cpu4/online When disabling a CPU this way any processes already assigned to this core will keep working but no new work will be assigned. Kernel Parameter isolcpus — Isolate CPUs from the kernel ...

IPv6 Quick Explainer

Guides Networking

The best information I've found that explains IPv6 in detail was on free online training from omnisecu.com. I read through all their lessons to get a good understanding of IPv6. However I'm going to briefly go over come key concepts below. Addresses IPv6 add...

Bonded Interface

Project Router

work in progress

Network Intrusion Detection

Project Router

work in progress