.github
bin
builder
pwnagotchi
scripts
backup.sh
changelog.sh
create_sibling.sh
language.sh
linux_connection_share.sh
macos_connection_share.sh
preview.py
pypi_upload.sh
release.sh
win_connection_share.ps1
.DEREK.yml
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE.md
MANIFEST.in
Makefile
README.md
requirements.txt
setup.py
11 lines
312 B
Bash
Executable File
11 lines
312 B
Bash
Executable File
#!/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 -
|