Mac OS instructions for transparrent proxy don't work
See original GitHub issueSteps to reproduce the problem:
- Follow the steps from https://docs.mitmproxy.org/stable/howto-transparent/
Issue1. According to the instructions, editing the sudoers file will allow any user to run /sbin/pfctl -s state
however running this gives the error
pfctl: /dev/pf: Permission denied
Issue2. Possible error when running sudo pfctl -f pf.conf
pfctl: Use of -f option, could result in flushing of rules
present in the main ruleset added by the system at startup.
See /etc/pf.conf for further details.
No ALTQ support in kernel
ALTQ related functions disabled
Any other comments? What have you tried so far?
I’m running on mac os 10.14.5, have also tried 10.13 Have confirmed that the sudoers file has been modified and have tried reboot
System information
Mitmproxy: 4.0.4
Python: 3.7.3
OpenSSL: OpenSSL 1.0.2r 26 Feb 2019
Platform: Darwin-18.6.0-x86_64-i386-64bit
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
Errors configuring transparent proxy on Mac OS (It doesn't work!)
I'm trying to set up a transparent proxy on Mac OS to intercept secure websocket traffic on port 3001. I can't use a...
Read more >Transparent Proxy seems to break Mail.app on Big Sur
I'm having a problem developing a "Transparent Proxy"-type network extension. The problem started with Big Sur. Everything seems to work on Catalina.
Read more >Transparent proxy (invisible mode) doesn't work for OSX 10.14.6
To proxy HTTP requests from iOS device, I configured testing environment as follows: * I paired iOS device to MacBook via Bluetooth *...
Read more >Setting up a transparent proxy on Mac OS X - Super User
Remove all default routes (using the route command) and add one specifically for the proxy's IP address.
Read more >How to implement transparent proxy on OS X?
There is no way to use the transparent proxying features with modern OS X. Apple removed ipfw (which is what natdport would use), ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After reading a lot of docs and old discussions, I have the same issue and will track it here that the docs are incorrect.
The following is done on macOS 10.5 Catalina with:
I was receiving the error:
Until I added into pf (as per @joeltaylor https://github.com/mitmproxy/mitmproxy/issues/2597#issuecomment-430769947):
On Android mobile device, on adding as a gateway with static ip (as designed):
On Android mobile device, on adding as a proxy (against guidance of Transparent Proxy):
For ease, I’ve written an on/off switch for
.bash_profile
which executes the described steps. I have not made this work with localhost yet (ironically, that is what I actually need).update - opening localhost:8080 on the machine running the proxy gives the response
this looks much like https://github.com/mitmproxy/mitmproxy/issues/2597 although editing rootcontext.py doesn’t help me