Compare commits
No commits in common. "1b0b4e2d9568ec5953944033e195901dda71fece" and "bba5d8c044c701bb434454b985c81c6e688866dc" have entirely different histories.
1b0b4e2d95
...
bba5d8c044
@ -20,21 +20,12 @@
|
|||||||
|
|
||||||
networking.hostName = "aluminium";
|
networking.hostName = "aluminium";
|
||||||
|
|
||||||
networking.iproute2.enable = true;
|
|
||||||
networking.iproute2.rttablesExtraConfig = ''
|
|
||||||
200 wg-clerie
|
|
||||||
'';
|
|
||||||
|
|
||||||
petabyte.policyrouting = {
|
petabyte.policyrouting = {
|
||||||
enable = true;
|
enable = true;
|
||||||
rules6 = [
|
rules6 = [
|
||||||
{ rule = "from 2a01:4f8:c0c:15f1::8106/128 lookup wg-clerie"; prio = 20000; }
|
{ rule = "from 2a01:4f8:c0c:15f1::8106/128 lookup 200"; prio = 20000; }
|
||||||
{ rule = "from 2a01:4f8:c0c:15f1::8106/128 unreachable"; prio = 20001; }
|
{ rule = "from 2a01:4f8:c0c:15f1::8106/128 unreachable"; prio = 20001; }
|
||||||
];
|
];
|
||||||
rules4 = [
|
|
||||||
{ rule = "from 10.20.30.106/32 lookup wg-clerie"; prio = 20000; }
|
|
||||||
{ rule = "from 10.20.30.106/32 unreachable"; prio = 20001; }
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -42,7 +33,7 @@
|
|||||||
networking.wireguard.interfaces = {
|
networking.wireguard.interfaces = {
|
||||||
wg-clerie = {
|
wg-clerie = {
|
||||||
ips = [ "2a01:4f8:c0c:15f1::8106/128" "10.20.30.106/32" ];
|
ips = [ "2a01:4f8:c0c:15f1::8106/128" "10.20.30.106/32" ];
|
||||||
table = "wg-clerie";
|
table = "200";
|
||||||
peers = [
|
peers = [
|
||||||
{
|
{
|
||||||
endpoint = "vpn.clerie.de:51820";
|
endpoint = "vpn.clerie.de:51820";
|
||||||
|
@ -20,8 +20,6 @@
|
|||||||
|
|
||||||
networking.hostName = "beryllium";
|
networking.hostName = "beryllium";
|
||||||
|
|
||||||
networking.firewall.enable = false;
|
|
||||||
|
|
||||||
networking.iproute2.enable = true;
|
networking.iproute2.enable = true;
|
||||||
networking.iproute2.rttablesExtraConfig = ''
|
networking.iproute2.rttablesExtraConfig = ''
|
||||||
200 wg-clerie
|
200 wg-clerie
|
||||||
|
Loading…
Reference in New Issue
Block a user