Created
June 18, 2015 19:37
-
-
Save douglas/5ce4625801e4c72ad1d3 to your computer and use it in GitHub Desktop.
PF rules sshuttle
This file contains 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
table <exclude_subnets> {200.152.40.0/24,127.0.0.0/8,10.0.0.0/8} | |
table <allowed_subnets> {!200.152.40.0/24,!127.0.0.0/8,!10.0.0.0/8} | |
table <include_subnets> { 0.0.0.0/0} | |
rdr pass on lo0 proto tcp to <include_subnets> -> 127.0.0.1 port 12300 | |
pass out route-to lo0 inet proto tcp to <include_subnets> keep state | |
pass out route-to lo0 inet proto tcp to <exclude_subnets> keep state |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment