Forums

Resolved
3 votes
Hi all,

I'm facing a weird problem and I need some of your usefull help.

In my company I set squid to non-transparent + non-user authentication, and this is working quite good. The problem lies when some employees need to use Whatsapp and when I set the proxy options on these mobiles, Whatsapps is working good, you can chat, but cannot send images or voice records. This drives me crazy. I open ports on Squid and Iptables (5222, 5223 and 5228 according to some investigating) and this seems not work.

I will appreciate any help about this.
Tuesday, October 07 2014, 04:09 PM
Share this post:
Responses (13)
  • Accepted Answer

    Friday, January 15 2021, 07:28 PM - #Permalink
    Resolved
    0 votes
    You've bumped a 6 year old thread, and, in general you should avoid using FQDN's in iptables. They probably don't work as you expect. The FQDN is resolved when the firewall rule is loaded and never again until the firewall reloads. If the IP for the FQDN changes, the firewall won't track the change, This is a PITA for FQDN's which have multiple A records and round-robin them.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, January 15 2021, 02:44 PM - #Permalink
    Resolved
    0 votes
    I try in the Custom Firewall this rules
    iptables -I FORWARD -d media.faep9-2.fna.whatsapp.net -p tcp --dport 443 -j ACCEPT
    and
    iptables -I FORWARD -d https://media.faep9-2.fna.whatsapp.net/ -p tcp --dport 443 -j ACCEPT

    to my is work
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 22 2014, 05:33 PM - #Permalink
    Resolved
    0 votes
    I neither know a way to block this sadly! Whatsapp uploading of files seems to be the cullprit. Hope somebody can help
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 22 2014, 04:17 PM - #Permalink
    Resolved
    0 votes
    This is bad :(
    I do not want to bypass those smartphones IP's because some people saturate web traffic using social networks and downloading apps, It is very difficult to control those apps separately, and I don't get any other solution to this. . . but thanks anyway, I will continue investigating about this terrible issue, Whatsapp has a terrible network traffic management.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 22 2014, 09:08 AM - #Permalink
    Resolved
    0 votes
    11:05:50.975363 IP 192.168.3.187.38935 > 173.192.222.186.5222: Flags [P.], seq 128:218, ack 244, win 463, options [nop,nop,TS val 2182219 ecr 144043163], length 90
    11:05:51.103015 IP 173.192.222.186.5222 > 192.168.3.187.38935: Flags [.], ack 218, win 514, options [nop,nop,TS val 144052411 ecr 2182219], length 0
    11:05:51.110039 IP 173.192.222.186.5222 > 192.168.3.187.38935: Flags [P.], seq 244:401, ack 218, win 514, options [nop,nop,TS val 144052417 ecr 2182219], length 157
    11:05:51.111787 IP 192.168.3.187.38935 > 173.192.222.186.5222: Flags [.], ack 401, win 463, options [nop,nop,TS val 2182234 ecr 144052417], length 0
    11:05:51.140184 IP 192.168.3.187.54639 > 184.173.204.57.443: Flags [S], seq 3002331119, win 14600, options [mss 1460,sackOK,TS val 2182236 ecr 0,nop,wscale 6], length 0
    11:05:51.140219 IP 184.173.204.57.443 > 192.168.3.187.54639: Flags [S.], seq 3787441869, ack 3002331120, win 14480, options [mss 1460,sackOK,TS val 82925526 ecr 2182236,nop,wscale 6], length 0
    11:05:51.141449 IP 192.168.3.187.54639 > 184.173.204.57.443: Flags [.], ack 1, win 229, options [nop,nop,TS val 2182237 ecr 82925526], length 0
    11:05:51.153765 IP 192.168.3.187.54639 > 184.173.204.57.443: Flags [P.], seq 1:185, ack 1, win 229, options [nop,nop,TS val 2182238 ecr 82925526], length 184
    11:05:51.153794 IP 184.173.204.57.443 > 192.168.3.187.54639: Flags [.], ack 185, win 243, options [nop,nop,TS val 82925540 ecr 2182238], length 0
    11:05:51.154645 IP 184.173.204.57.443 > 192.168.3.187.54639: Flags [F.], seq 1, ack 185, win 243, options [nop,nop,TS val 82925540 ecr 2182238], length 0
    11:05:51.158728 IP 192.168.3.187.54639 > 184.173.204.57.443: Flags [F.], seq 185, ack 2, win 229, options [nop,nop,TS val 2182238 ecr 82925540], length 0
    11:05:51.158749 IP 184.173.204.57.443 > 192.168.3.187.54639: Flags [.], ack 186, win 243, options [nop,nop,TS val 82925545 ecr 2182238], length 0


    Indeed pictures don't work. Here you can see the output from tcpdump. I only copied the text for the image sending.

    192.168.3.187 is my phone IP

    I just closed the app and added a few ports to the firewall but now it just keeps uploading endless.

    I guess firewall doesnt do anything
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 21 2014, 07:03 PM - #Permalink
    Resolved
    0 votes
    Ok I will stay tuned.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 21 2014, 06:09 PM - #Permalink
    Resolved
    0 votes
    Damn. Will try to test at my own internship company tomorrow! Have not yet deployed ClearOS completly and want to test small scale first.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 21 2014, 04:32 PM - #Permalink
    Resolved
    0 votes
    Hi, thanks for links, but neither works for me :(
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 21 2014, 06:50 AM - #Permalink
    Resolved
    0 votes
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 20 2014, 04:30 PM - #Permalink
    Resolved
    0 votes
    Of course, Whatsapp needs 443 and 80 ports (5222 only for login session)... so I think when Webproxy redirects 80 to 8080 is when whatsapp gets blocked. . .
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 20 2014, 09:39 AM - #Permalink
    Resolved
    0 votes
    Have you treid to find out what ports whatsapp uses (for saving images and voice notes on their server)? Try allowing those through firewall and test
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 17 2014, 03:25 PM - #Permalink
    Resolved
    0 votes
    Any tip or help on this?

    I would aprecciate.
    The reply is currently minimized Show
  • Accepted Answer

    Luis Asaba
    Luis Asaba
    Offline
    Thursday, October 09 2014, 06:56 PM - #Permalink
    Resolved
    0 votes
    The same here, and support only say: Whatsapp don't support proxies, terrible support!
    The reply is currently minimized Show
Your Reply