This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
about_my_setup [2025/07/29 16:22] – created n0fuq | about_my_setup [2025/09/29 21:04] (current) – n0fuq | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== About My Setup ====== | ====== About My Setup ====== | ||
- | I've been asked by quite a few people if I could document what I've done and how I've configured Wireguard. | + | Prior Setup: |
+ | - [[debian_12|Debian 12]] | ||
- | I'm currently running a Debian 12 colocated machine out of [[https:// | + | Switched |
- | + | ||
- | Any and all documentation on here will be related to Debian 12; though there is a good chance it's relevant | + | |
- | + | ||
- | One of the first things I do on my Debian | + | |
- | + | ||
- | The first thing you need to do, is edit ''/ | + | |
- | + | ||
- | An example of my ''/ | + | |
- | + | ||
- | < | + | |
- | net.ipv4.tcp_timestamps = 0 | + | |
- | net.ipv4.ip_forward=1 | + | |
- | net.ipv4.conf.all.proxy_arp=1 | + | |
- | </ | + | |
- | + | ||
- | After making the necessary changes, you'll want to run the '' | + | |
- | + | ||
- | Next, you'll want to add your AMPRNet address to your network interface. You'll want to update your '' | + | |
- | + | ||
- | My enp1s0f0 ethernet is already configured, so what I'm going to do is add an alias (the : | + | |
- | < | + | |
- | auto enp1s0f0: | + | |
- | iface enp1s0f0:0 inet static | + | |
- | address 44.32.91.2/ | + | |
- | # Create a routing table for the second subnet | + | |
- | up ip rule add from 44.32.91.2/ | + | |
- | up ip route add 44.32.91.0/ | + | |
- | up ip route add default via 44.32.91.1 dev enp1s0f0 table 2 | + | |
- | post-up /sbin/ip route add 44.128.0.0/ | + | |
- | post-up /sbin/ip route add 44.0.0.0/9 via 44.32.91.1 dev enp1s0f0 src 44.32.91.2 || true | + | |
- | post-down /sbin/ip route del 44.128.0.0/ | + | |
- | post-down /sbin/ip route del 44.0.0.0/9 via 44.32.91.1 dev enp1s0f0 src 44.32.91.2 || true | + | |
- | </ | + | |
- | + | ||
- | With this change I've applied the additional address to my interface as well as update all routing for AMPRNet 44.0.0.0/9 and 44.128.0.0/ | + | |
- | + | ||
- | Go ahead and install the wireguard packages with '' | + |