Franz: Can't connect to Franz online services when behind a proxy

Created on 18 Oct 2017  路  17Comments  路  Source: meetfranz/franz

Can't connect to Franz online services when behind a proxy

Expected Behavior

I would like to sign up for Franz account

Current Behavior

I have just installed Franz and when I start Franz I got an error that says "Can't connect to Franz online services" and when I try to create a new account nothing happens so I can't use Franz at the moment. I have setup my PC to automatically detect proxy setting and can browse the internet without any issues

Your Environment

  • Franz Version used: 5.0.0 beta 10
  • Operating System and version: Windows 7 64 bit
feature request help wanted research necessary

Most helpful comment

Same on MacOS High Sierra 馃憤

All 17 comments

same problem on xubuntu 16.04

Same problem. Try to set the proxy in the command line and execute Franz, but without success. Tried in Fedora 26.

Same on MacOS High Sierra 馃憤

Any solution to use Franz behind a VPN?

@FKSI Franz works fine when using a VPN, I've done so multiple times in the past.

Mine use some Proxy settings, and Franz says I'm offline :(

@FKSI ok, VPN and Proxy are different things though..

Franz doesn't work for me while using a VPN. I initially created a ticket for this stating VPN blocked access but it was moved here to this ticket about being behind a Proxy.

image

Option proxy with Auth very needed!

I confirm this is not working on opensuse using a proxy.

I'm having the same issue on Macbook. Any solution?

What is surprising for me is that some other apps like Whatsapp for mac is also not working thought the webapp works fine!

Same here. Is not working under proxy on OSX :)

Any updates on this?

Doesn't work for me either.

"Proxy & VPN support - coming soon" I would love to pay for franz as soon as this is implemented!!

I need proxy support (on Linux!) please :D

Okay so there's a quirky fix to this (and most other proxy dependent non-browser applications); you have to set proxy at the ip-tables level. (scripts and links courtesy @devanshg27)

  • First, install tinyproxy and run it as a service (runs by default)
sudo apt install tinyproxy
cd /etc/tinyproxy
sudo wget https://gist.github.com/Pk13055/8dec3e41c3aec65b1d0196741768bfcb/raw/7b6738877a6154c8d387225a1d230657f4b38bdd/tinyproxy.conf -O tinyproxy.conf
  • Next, setup https_proxy (http://web.iiit.ac.in/~anish.shankar/phinfinity_downloads/tproxyhttps.c). You will have to run this everytime you switch on your PC (stick nohup https_proxy 0<&- &>/dev/null & in your .profile to run it at boot)

  • Finally add a script with the following content:

#!/bin/bash
# set IP tables proxy at root level

sudo iptables -t nat -N REDSOCKS
iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURN
iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN
iptables -t nat -A REDSOCKS -d 224.0.0.0/4 -j RETURN
iptables -t nat -A REDSOCKS -d 240.0.0.0/4 -j RETURN

iptables -t nat -A REDSOCKS -p tcp --dport 80 -j REDIRECT --to-ports 1124
iptables -t nat -A REDSOCKS -p tcp --dport 443 -j REDIRECT --to-ports 1125
#iptables -t nat -A REDSOCKS -p tcp --dport 11371 -j REDIRECT --to-ports 12345

iptables -t nat -A OUTPUT -p tcp -j REDSOCKS

#iptables -t nat -A PREROUTING -p tcp --dport 11371 -j REDSOCKS
iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDSOCKS
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDSOCKS

And that's it! Everytime you run said script the proxy will be enabled. To allow https traffic to flow, you have to exec the https_proxy as shown before (unless you've put it in your .profile).

To remove the proxy run this other script:

#!/bin/bash
sudo iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Was this page helpful?
0 / 5 - 0 ratings

Related issues

larissaales picture larissaales  路  3Comments

seanford picture seanford  路  4Comments

G419 picture G419  路  3Comments

m2kk picture m2kk  路  4Comments

BinaryBen picture BinaryBen  路  4Comments