Configures jail to forward external ports to a different loopback port within a given jail.
vi /etc/ipfw.rules # Add ipfw.rules from gist
chmod +x /etc/ipfw.rules # Enable script execution
crontab -e # Add crontab.conf from gist
Configures jail to forward external ports to a different loopback port within a given jail.
vi /etc/ipfw.rules # Add ipfw.rules from gist
chmod +x /etc/ipfw.rules # Enable script execution
crontab -e # Add crontab.conf from gist
@reboot /etc/ipfw.rules |
ipfw -q -f flush # Delete existing rules | |
ipfw add 100 fwd 127.0.0.1,9091 tcp from any to any 80 in # Forward 80 -> 9091 |