wireguard partial setup
This commit is contained in:
parent
67d7b6669f
commit
e8e4c4b311
@ -146,14 +146,15 @@
|
|||||||
};
|
};
|
||||||
wireguardConfig = {
|
wireguardConfig = {
|
||||||
PrivateKeyFile = "/run/keys/wireguard-privkey";
|
PrivateKeyFile = "/run/keys/wireguard-privkey";
|
||||||
#ListenPort = 9918;
|
FirewallMark = 51820;
|
||||||
};
|
};
|
||||||
wireguardPeers = [
|
wireguardPeers = [
|
||||||
{
|
{
|
||||||
wireguardPeerConfig = {
|
wireguardPeerConfig = {
|
||||||
|
Endpoint = "89.234.141.83:8095";
|
||||||
PublicKey = "t3+JkBfXI1uw8fa9P6JfxXJfTPm9cOHcgIN215UHg2g=";
|
PublicKey = "t3+JkBfXI1uw8fa9P6JfxXJfTPm9cOHcgIN215UHg2g=";
|
||||||
|
PresharedKeyFile = "/run/keys/wireguard-psk.key";
|
||||||
AllowedIPs = ["0.0.0.0/0" "::/0"];
|
AllowedIPs = ["0.0.0.0/0" "::/0"];
|
||||||
Endpoint = "89.234.141.83";
|
|
||||||
PersistentKeepalive = 15;
|
PersistentKeepalive = 15;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -183,6 +184,42 @@
|
|||||||
"89.234.141.196/32"
|
"89.234.141.196/32"
|
||||||
"2a00:5881:8119:400::1/128"
|
"2a00:5881:8119:400::1/128"
|
||||||
];
|
];
|
||||||
|
# routingPolicyRules = [
|
||||||
|
# {
|
||||||
|
# routingPolicyRuleConfig = {
|
||||||
|
# FirewallMark = "51820";
|
||||||
|
# InvertRule = true;
|
||||||
|
# Table = "51820";
|
||||||
|
# Priority = "10";
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# routingPolicyRuleConfig = {
|
||||||
|
# To = "10.0.0.0/8";
|
||||||
|
# Priority = "9";
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# routingPolicyRuleConfig = {
|
||||||
|
# To = "192.168.0.0/16";
|
||||||
|
# Priority = "9";
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# routingPolicyRuleConfig = {
|
||||||
|
# To = "89.234.141.83/32";
|
||||||
|
# Priority = "5";
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
# routes = [
|
||||||
|
# {
|
||||||
|
# routeConfig = {
|
||||||
|
# Destination = "0.0.0.0/0";
|
||||||
|
# Table = 51820;
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
};
|
};
|
||||||
"40-eno2" = {
|
"40-eno2" = {
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
|
Loading…
Reference in New Issue
Block a user