-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic support for freebsd ipfw firewall
FreeBSD's ipfw firewall does not rewrite the destination IP address when forwarding using rules such as: 00100 fwd 127.0.0.1,2080 tcp from me to not me 80,443 This commit adds ipfw support by assuming transparent redirection on freebsd. If you create the above rule and point moproxy at a http proxy at IP address 1.2.3.4 $ moproxy -b 127.0.0.1 -p 2080 -t 1.2.3.4:8080 You can fetch remote 443 or 80 ports without setting proxy environment variables, eg: $ curl https://example.com:443 <HTML>...
- Loading branch information
1 parent
8a052ea
commit d3f76c0
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
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
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