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
| #!/bin/bash | |
| iptables -t nat -A POSTROUTING -o <iface1> -j MASQUERADE | |
| iptables -A FORWARD -i <iface1> -o <iface2> -m state --state RELATED,ESTABLISHED -j ACCEPT | |
| iptables -A FORWARD -i <iface2> -o <iface1> -j ACCEPT |
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
| #!/usr/bin/env bash | |
| set -e | |
| [ $EUID -ne 0 ] && echo "run as root" >&2 && exit 1 | |
| ########################################################## | |
| # You should not need to update anything below this line # | |
| ########################################################## |
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
| #!/bin/bash | |
| SAIL="./vendor/bin/sail" | |
| if [ ! -f "$SAIL" ]; then | |
| echo "Sail not found. Run sail.sh to install sail...." | |
| docker run --rm \ | |
| -u "$(id -u):$(id -g)" \ | |
| -v "$(pwd):/var/www/html" \ |