Commit 773813cd authored by rafaelferrari0's avatar rafaelferrari0 Committed by GitHub

Update README.md

parent d82ffbdb
......@@ -106,3 +106,27 @@ Add the IP to static hosts list ("/etc/hosts" on Linux, "C:\Windows\System32\Dri
sudo proxy -l 80 -h 93.184.216.119 -p 80 -i "tee input.log" -o "tee output.log"
```
Point your browser to http://www.example.com and watch the contents of input.log and output.log files.
### IPv6 support
It's possible to accept IPv6 or IPv4 connections and forward to IPv6 or IPv4 services/hosts.
Accepting IPv6 connections and forwarding to IPv6 service: (still accepting IPv4 connections)
```
proxy -l 8080 -h fe80::20d:b9ff:fe12:7650 -p 8080
```
Accepting IPv6 connections and forwarding to legacy IPv4 service: (still accepting IPv4 connections)
```
proxy -l 8080 -h 192.168.1.2 -p 8080
```
Accepting only IPv4 connections and forwarding to IPv6 service:
```
proxy -l 8080 -b 192.168.1.1 -h fe80::20d:b9ff:fe12:7650 -p 8080
```
Accepting only IPv4 connections and forwarding to IPv4 service:
```
proxy -l 8080 -b 192.168.1.1 -h 192.168.1.2 -p 8080
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment