I want to share my VPN connection via wifi using internet sharing, but something is not working.
My current configuration is as follows:
- Macbook Pro: macOS Mojave 10.14.6
- VPN Client: CheckPoint Endpoint Security for Mac
I have tried the steps described here but something is not working.
Some of the NAT rules that I have tried:
nat on utun1 from bridge100:network to any -> (utun1) #OR nat on utun1 from 192.168.2.2/24 to any -> (utun1) #OR nat on en6 from 192.168.2.2/24 to any -> (en6) nat on utun1 from 192.168.2.2/24 to any -> (utun1) #and many more...
My script looks like this:
#!/bin/sh sysctl -w net.inet.ip.forwarding=1 sysctl -w net.inet.ip.fw.enable=1 sysctl -w net.inet6.ip6.forwarding=1 #disables pfctl pfctl -d sleep 1 #flushes all pfctl rules pfctl -F all sleep 1 #starts pfctl and loads the rules from the nat-rules file pfctl -f ./nat-rules -e
Internet sharing works without VPN enabled, but after I activate it, I get Connected, no internet ….
Is something wrong with my NAT rule or is the VPN going through CheckPoint Endpoint Security?