Skip to content

Instantly share code, notes, and snippets.

@adrianmihalko
Created March 21, 2021 11:17
Show Gist options
  • Save adrianmihalko/1560b3201d09773ca96195dc4f11a484 to your computer and use it in GitHub Desktop.
Save adrianmihalko/1560b3201d09773ca96195dc4f11a484 to your computer and use it in GitHub Desktop.
{
"firewall": {
"modify": {
"LOAD_BALANCE": {
"description": "LOAD_BALANCE",
"rule": {
"2501": {
"action": "modify",
"modify": {
"table": "5"
},
"source": {
"group": {
"address-group": "6029c3e9e4f9411eca96870f"
}
}
}
}
}
}
},
"interfaces": {
"wireguard": {
"wg0": {
"address": [
"***PEER-INTERNAL-IP***/32"
],
"mtu": "1420",
"peer": {
"***PEER-PUBLIC-KEY***": {
"allowed-ips": [
"0.0.0.0/0"
],
"endpoint": "***PEER-IP***:51820"
}
},
"private-key": "***PEER-PRIVATE-KEY***",
"route-allowed-ips": "false"
}
}
},
"protocols": {
"static": {
"table": {
"5": {
"route": {
"0.0.0.0/0": {
"next-hop-interface": {
"wg0": "''"
}
}
}
}
}
}
},
"service": {
"nat": {
"rule": {
"5000": {
"outbound-interface": "wg0",
"type": "masquerade"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment