From owner-freebsd-questions@freebsd.org Sat Feb 27 09:43:28 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83328AB6640 for ; Sat, 27 Feb 2016 09:43:28 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44D396C1; Sat, 27 Feb 2016 09:43:28 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id p65so13679762wmp.1; Sat, 27 Feb 2016 01:43:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DPRmnvypjeUMPHZBEj3rAm67TALAX9spiAtVRV8ydk4=; b=yORuzpNVCxnfLd7Q2W+9zaC/tjUR2klTwU42ZFsrPPCb2Tf4OFzdXvCotFV3lndsxC rhKn3QpeiZNVURejwAuqTm1hPcngL3Id6Y6mLbnUzqKqfCSuFRisFPdwV9Z85lFMS9I2 oVFUvFZ5WAsQVXdFBnsksmT4sSyKiHxrxQV24sX90PZBZ8EO021UlS/+B5URC1rxD5tx sHXQN5CTRMu4dKjr07jmSMR+jv/Dsbs1uUtnaWQv7giVejJbxRIGnegKjoSkUHSZd2s0 M3W7o5EbplsPfwQeENoFWKtsKiol6Q0GAx6Ur182tF+HjfEc5YVGLxRJBC40o8Vl5Avg Z+6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DPRmnvypjeUMPHZBEj3rAm67TALAX9spiAtVRV8ydk4=; b=Fwt1+9G8kSIzPwp3u/R93f3ASntOyNTkU0sgGcBdsU/A8DH0npYTU70TOzPLOUm+Y9 UBots4bNoA/6q8vHKzmAvgY4NaoUhm2DKfy9vwZv2fAvHFqcNjYHGcDOvNiCE0k1aXTQ pP/jwIYa+EMK3YuhH/HcoWoo4LNi4AFbb16uCmcllxlZst1E0xXXBpOrgqBW8BzcaHat 5aNzZdeoCA3LlT2FrI4vYj0JBtVdrBaS+i1+l56V8eppy4WGW47+WZkMP1spzILdEC5D Exc7860MLXa0v8uxD82a5FlgAIUoHt6NuA8mnYOUYEdZ9eQhUPzb/GZU2Q712wQ2f0uJ aJHw== X-Gm-Message-State: AD7BkJJ8Hh0h6qKzheaOstsZwcPHVvnO7h/ZTKVuU8KdqSA04DsVzZWRv/J9GlqA6j+APUnTekU1FMceft6c5w== X-Received: by 10.28.171.8 with SMTP id u8mr2047968wme.97.1456566206411; Sat, 27 Feb 2016 01:43:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.166.67 with HTTP; Sat, 27 Feb 2016 01:42:46 -0800 (PST) In-Reply-To: <6458F1DB-6E78-44E3-92F2-3E684BEA16FA@FreeBSD.org> References: <1456412447.3227197.531722746.2BC3D996@webmail.messagingengine.com> <6458F1DB-6E78-44E3-92F2-3E684BEA16FA@FreeBSD.org> From: Odhiambo Washington Date: Sat, 27 Feb 2016 12:42:46 +0300 Message-ID: Subject: Re: WhatsApp Calls through IPFilter - How do I allow? To: Mark Felder Cc: User Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2016 09:43:28 -0000 On 26 February 2016 at 15:49, Mark Felder wrote: > > > On Feb 26, 2016, at 01:56, Odhiambo Washington wrote: > > > > On 25 February 2016 at 18:00, Mark Felder wrote: > >> >> >> On Thu, Feb 25, 2016, at 05:04, Odhiambo Washington wrote: >> > I have a network where FreeBSD acts as the gateway. I use IPFilter as >> the >> > firewall. >> > >> > I have users with smartphones who'd like to use Whatsapp call feature >> but >> > the firewall is blocking these. I have googled and found >> > https://github.com/ukanth/afwall/issues/358 which seems to talk about >> the >> > ports that I need to open, but even after following that, I still cannot >> > get this working. My IPFilter rules are these -> >> > http://pastebin.com/77YrMEEG >> > >> > Hopefully someone can see what I am missing or knows what I should do. >> > I am currently away from the box and with bad Internet, I cannot easily >> > do >> > packet capture to analyze... I know iy sounds lazy, but I also hope this >> > wheel has already been invented and is spinning already... >> > >> > >> >> Do you end up getting log entries for the blocked traffic? >> >> -- >> Mark Felder >> ports-secteam member >> feld@FreeBSD.org >> > > I do't see anything written to the logfile. > However, I have identified the rules blocking the traffic. I just need to > get the ports used by Whatsapp for calls and I'll get this sorted. > > > After some searching I was able to find someone who claims "The voice > server connects only, as mentioned, 59437 - 59581 (the first time) and this > goes through port 5222." > > I also came across this URL containing all the whatsapp IPs: > http://www.whatsapp.com/cidr.txt > > If you still can't get this sorted out I can try emailing a contact I have > at Whatsapp to see if he can provide further details. > The version of IPFilter on my server (FreeBSD 8.4-STABLE) does not support variable definitions/substitutions else I could have used the CIDR. My latest attempt at opening the relevant ports can be seen at http://goo.gl/0xnhw8 but still it did not work! Maybe it's me who's getting confused with the rules?? I have to literally leave the firewall open for Whatsapp calls to work, which is pretty bad! I'll appreciate any info from your contact at Whatsapp.. But also take a look at my rules and lemme know if you can act as my 3rd eye to see where I could be missing the point/going wrong with the rules - which are derived from http://freebsd.therek.net/handbook/firewalls-ipf.html, to be precise. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."