Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.
####1. anchor file
Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like:
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2275613/hack.sh | sh | |
| # |
| // | |
| // UACellBackgroundView.h | |
| // Ambiance | |
| // | |
| // Created by Matt Coneybeare on 1/31/10. | |
| // Copyright 2010 Urban Apps LLC. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
| // | |
| // UACellBackgroundView.m | |
| // Ambiance | |
| // | |
| // Created by Matt Coneybeare on 1/31/10. | |
| // Copyright 2010 Urban Apps LLC. All rights reserved. | |
| // | |
| #define TABLE_CELL_BACKGROUND { 1, 1, 1, 1, 0.866, 0.866, 0.866, 1} // #FFFFFF and #DDDDDD | |
| #define kDefaultMargin 10 |