0x7a657573 / zroxy

Transparent TLS sni proxy ( sniproxy ) written with pure C.
GNU General Public License v3.0
20 stars 3 forks source link

errors in using this app #3

Closed rezad1393 closed 1 year ago

rezad1393 commented 1 year ago

I tried to use this on my laptop first. I compiled it (the compile on readme is wrong).

then I run it with this config :

# sni server set bind ip and port.
# patern:  port = <bind ip>:<local port>@<remote port>
# example: port = 127.0.0.1:8080@80,4433@433,853...
PORT = 192.168.1.101:8080@80,4433@433

# set upstream proxy.
# patern : socks = <user>:<pass>@<socks5 ip>:<socks port>
# example: socks = 127.0.0.1:9150
SOCKS = 192.168.1.1:9050

# enable statistics monitor
# patern : monitor = <port>
# example: monitor = 8123
#MONITOR = 8123

# active white list
# patern : white = <path to file>
# example: white = /etc/withlist.txt
#WHITE =

# enable dns forward to socks
# patern:  ldns = <bind ip>:<local port>
# example: ldns = 127.0.0.1:5356
#LDNS = 127.0.0.1:5356
#192.168.1.1:53

# set upstream DNS providers.
# patern : dns = < ip >
# example: dns = 8.8.8.8
#DNS = 192.168.1.1

I get these errors when I point firefox socks5 to the port ip of proxy.

21:46:49 INFO  /home/me/1/zroxy/src/zroxy.c:87: enable socks on 192.168.1.1:9050
21:46:49 INFO  /home/me/1/zroxy/sniproxy/sniproxy.c:34: socket listen on 0.0.0.0:4433
21:46:49 INFO  /home/me/1/zroxy/sniproxy/sniproxy.c:34: socket listen on 192.168.1.101:8080
21:46:49 TRACE /home/me/1/zroxy/src/zroxy.c:100: exit from main thread
21:46:51 ERROR /home/me/1/zroxy/network/net.c:174: Get HTTPS Host: not enough data
21:46:51 ERROR /home/me/1/zroxy/network/net.c:174: Get HTTPS Host: not enough data
21:46:51 ERROR /home/me/1/zroxy/network/net.c:174: Get HTTPS Host: not enough data
21:46:52 ERROR /home/me/1/zroxy/network/net.c:174: Get HTTPS Host: not enough data
21:47:08 INFO  /home/me/1/zroxy/sniproxy/sniclient.c:61: client 7 disconnect 0
21:47:08 INFO  /home/me/1/zroxy/sniproxy/sniclient.c:153: Close tid:7 Host  Tx:0 Rx:0
21:47:08 INFO  /home/me/1/zroxy/sniproxy/sniclient.c:61: client 6 disconnect 0
21:47:08 INFO  /home/me/1/zroxy/sniproxy/sniclient.c:153: Close tid:6 Host  Tx:0 Rx:0
21:47:08 ERROR /home/me/1/zroxy/network/net.c:174: Get HTTPS Host: not enough data
21:47:08 ERROR /home/me/1/zroxy/network/net.c:174: Get HTTPS Host: not enough data
21:47:13 ERROR /home/me/1/zroxy/network/net.c:174: Get HTTPS Host: not enough data
21:47:13 ERROR /home/me/1/zroxy/network/net.c:174: Get HTTPS Host: not enough data
0x7a657573 commented 1 year ago

Hi how to use zroxy with firefox ? if you are use on your laptop you need run zroxy on port 80 and 443 and use custom dns on your laptop!