Skip to content

Commit 00d9e8d

Browse files
author
Ercan Ozturk
committed
Add whatsapp.net frontend and backend
1 parent 8863495 commit 00d9e8d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ You should see a message similar to `[+] Building 6.6s (18/18) FINISHED`. The co
8282
You can manually execute the Docker container with the following `docker` command
8383

8484
```bash
85-
docker run -it -p 80:80 -p 443:443 -p 5222:5222 -p 8080:8080 -p 8443:8443 -p 8222:8222 -p 8199:8199 whatsapp_proxy:1.0
85+
docker run -it -p 80:80 -p 443:443 -p 5222:5222 -p 8080:8080 -p 8443:8443 -p 8222:8222 -p 8199:8199 -p 587:587 -p 7777:7777 whatsapp_proxy:1.0
8686
```
8787

8888
You will see lines ending with `Certificate generation completed.`. The HAProxy is running in the background and will continue to do so until you close this process.
@@ -104,6 +104,7 @@ Depending on the scenario in which you utilize your proxy, the proxy container e
104104
1. 80: Standard web traffic (HTTP)
105105
2. 443: Standard web traffic, encrypted (HTTPS)
106106
3. 5222: Jabber protocol traffic (WhatsApp default)
107+
4. 587 or 7777: *.whatsapp.net traffic including media
107108

108109
There are also ports configured which accept incoming [proxy headers](https://www.haproxy.com/blog/use-the-proxy-protocol-to-preserve-a-clients-ip-address/) (version 1 or 2)
109110
on connections. If you have a network load balancer you can preserve the client IP address if you want.

proxy/src/proxy_config.cfg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ frontend haproxy_v4_xmpp
8080

8181
default_backend wa
8282

83+
frontend haproxy_v4_whatsapp_net
84+
maxconn 27495
85+
#PUBLIC_IP
86+
87+
bind ipv4@*:587
88+
bind ipv4@*:7777
89+
90+
default_backend wa_whatsapp_net
91+
92+
backend wa_whatsapp_net
93+
default-server check inter 60000 observe layer4
94+
server whatsapp_net_443 whatsapp.net:443
95+
8396
backend wa
8497
default-server check inter 60000 observe layer4 send-proxy
8598
server g_whatsapp_net_5222 g.whatsapp.net:5222

0 commit comments

Comments
 (0)