I
italo
Enthusiast
Ok so I started this thread, so we can help each other.
So im using charles proxy and the rewrite option.
To make all connections go through i had to do this:
Mac version: Mac must be connected via wifi, without any ethernet cable connected to it.
1) open terminal
2) type "open /Library/Preferences/SystemConfiguration" without the quotes
3) Look for a file calles com.apple.Boot.plist, open it
4) Change the file so it looks like this:
5) Save it in the desktop with the same name, and then replace the original file with this one. It will ask for your password.
6)Restart your mac
7)Open again termina
8)Type "sudo sysctl -w net.inet.ip.forwarding=1". It will ask for admin password
9)Type "open ./". It will open your user folder.
10) Inside the folder create a file called pf.conf
11) pf.conf should have this inside:
I typed port 8888, because there is my proxy working, you type the port of your proxy there, and save the file.
12) You go back to terminal and type "sudo pfctl -f pf.conf"
13) You type "sudo pfctl -e"
Linux version:
Coming Soon, you can see the tutorial here: http://mitmproxy.org/doc/transparent/linux.html
To make your device connect to your computer, go to the internet settings of the device and chage it to manual.
Ip: The same ip it had, if not any ip like 192.168.1.33
Mask: 255.255.255.0
Router or Gateway: Local ip of the computer with the proxy.
DNS 1: Your router or gateway local ip
DNS 2: blank
The device is now connected to your proxy.
So im using charles proxy and the rewrite option.
To make all connections go through i had to do this:
Mac version: Mac must be connected via wifi, without any ethernet cable connected to it.
1) open terminal
2) type "open /Library/Preferences/SystemConfiguration" without the quotes
3) Look for a file calles com.apple.Boot.plist, open it
4) Change the file so it looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Kernel Flags</key>
<string>net.inet.ip.scopedroute=0</string>
</dict>
</plist>
6)Restart your mac
7)Open again termina
8)Type "sudo sysctl -w net.inet.ip.forwarding=1". It will ask for admin password
9)Type "open ./". It will open your user folder.
10) Inside the folder create a file called pf.conf
11) pf.conf should have this inside:
Code:
scrub-anchor "com.apple/*"
nat-anchor "com.apple/*"
rdr on en1 inet proto tcp to any port 80 -> 127.0.0.1 port 8888
rdr on en1 inet proto tcp to any port 443 -> 127.0.0.1 port 8888
dummynet-anchor "com.apple/*"
anchor "com.apple/*"
load anchor "com.apple" from "/etc/pf.anchors/com.apple"
12) You go back to terminal and type "sudo pfctl -f pf.conf"
13) You type "sudo pfctl -e"
Linux version:
Coming Soon, you can see the tutorial here: http://mitmproxy.org/doc/transparent/linux.html
To make your device connect to your computer, go to the internet settings of the device and chage it to manual.
Ip: The same ip it had, if not any ip like 192.168.1.33
Mask: 255.255.255.0
Router or Gateway: Local ip of the computer with the proxy.
DNS 1: Your router or gateway local ip
DNS 2: blank
The device is now connected to your proxy.