# MACOS set up mitm web tranparent model

**URL:** https://discourse.mitmproxy.org/t/macos-set-up-mitm-web-tranparent-model/1031
**Category:** help
**Created:** [May 8, 2018, 8:19am UTC](https://discourse.mitmproxy.org/t/macos-set-up-mitm-web-tranparent-model/1031 "2018-05-08T08:19:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![l55129](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@l55129](https://discourse.mitmproxy.org/u/l55129)
#### Post date: [May 8, 2018, 8:19am UTC](https://discourse.mitmproxy.org/t/macos-set-up-mitm-web-tranparent-model/1031/1 "2018-05-08T08:19:21Z")

</div>

Hi, I am current trying to use mitm web interface on my mac. And I use ettercap for arp attack, after choose the target, how to set up transparent model for mitm web interface?

---

<div class="post-metadata">

### Author: ![l55129](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@l55129](https://discourse.mitmproxy.org/u/l55129)
#### Post date: [May 8, 2018, 8:21am UTC](https://discourse.mitmproxy.org/t/macos-set-up-mitm-web-tranparent-model/1031/2 "2018-05-08T08:21:52Z")

</div>

Place the following two lines in /etc/pf.conf.  
line 1 mitm\_if = “re2”  
line 2 pass in quick proto tcp from $mitm\_if to port { 80, 443 } divert-to 127.0.0.1 port 8080

when i try to copy paste line 1 and line 2 in my /etc/pf.conf. it says file read only
