Skip to content

Instantly share code, notes, and snippets.

@rdougan
Created February 28, 2020 20:37
Show Gist options
  • Save rdougan/6a5e41c4bd392afeed073b21afad5399 to your computer and use it in GitHub Desktop.
Save rdougan/6a5e41c4bd392afeed073b21afad5399 to your computer and use it in GitHub Desktop.
USG ExpressVPN setup
{
"firewall": {
"modify": {
"PBR_VPN": {
"rule": {
"5000": {
"action": "modify",
"description": "traffic from VLan 50 to VPN Tunnel",
"modify": {
"table": "50"
},
"source": {
"address": "192.168.50.0/24"
}
}
}
}
},
"source-validation": "disable"
},
"interfaces": {
"ethernet": {
"eth1": {
"vif": {
"50": {
"firewall": {
"in": {
"modify": "PBR_VPN"
}
}
}
}
}
},
"openvpn": {
"vtun0": {
"config-file": "/config/openvpn/my_expressvpn_uk_-_east_london_udp.ovpn",
"description": "OpenVPN Tunnel"
}
}
},
"protocols": {
"static": {
"table": {
"50": {
"interface-route": {
"0.0.0.0/0": {
"next-hop-interface": {
"vtun0": "''"
}
}
}
}
}
}
},
"service": {
"nat": {
"rule": {
"5000": {
"description": "OpenVPN Clients",
"log": "disable",
"outbound-interface": "vtun0",
"source": {
"address": "192.168.50.0/24"
},
"type": "masquerade"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment