mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
macos connection share script
This commit is contained in:
10
scripts/macos_connection_share.sh
Executable file
10
scripts/macos_connection_share.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# name of the ethernet gadget interface on the host
|
||||
USB_IFACE=${1:-en8}
|
||||
# host interface to use for upstream connection
|
||||
UPSTREAM_IFACE=${2:-en7}
|
||||
|
||||
sysctl -w net.inet.ip.forwarding=1
|
||||
pfctl -e
|
||||
echo "nat on ${UPSTREAM_IFACE} from ${USB_IFACE}:network to any -> (${UPSTREAM_IFACE})" | pfctl -f -
|
Reference in New Issue
Block a user