Last active
June 8, 2020 01:25
-
-
Save genevera/bf89aa34f0ddefbfffb2719331409072 to your computer and use it in GitHub Desktop.
pfctl NAT for VPN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lan="{192.168.64.0/24}" | |
| vpn="{ VPN_RANGE_GOES_HERE }" | |
| ext_if="bridge100" | |
| vpn_if="utun0" | |
| nat on $ext_if from $lan to $vpn -> ($ext_if) | |
| nat on $vpn_if from $lan to $vpn -> ($vpn_if) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment