Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

TCP: connect to [AF_INET]209.xxx.xxx.xxx:7494 failed: Unknown error

Scheduled Pinned Locked Moved OpenVPN
7 Posts 3 Posters 5.0k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hasan
    wrote on last edited by
    #1

    TCP: connect to [AF_INET]209.xxx.xxx.xxx:7494 failed: Unknown error
    SIGUSR1[connection failed(soft),init_instance] received, process restarting
    MANAGEMENT: >STATE:1615008963,RECONNECTING,init_instance,,,,,
    Restart pause, 40 second(s)
    MANAGEMENT: >STATE:1615009003,RESOLVE,,,,,,
    TCP/UDP: Preserving recently used remote address: [AF_INET]209.xxx.xxx.xxx:7494
    Socket Buffers: R=[8192->8192] S=[8192->8192]
    Attempting to establish TCP connection with [AF_INET]209.xxx.xxx.xxx:7494 [nonblock]
    MANAGEMENT: >STATE:1615009006,TCP_CONNECT,,,,,,

    1. VPS has no firewall blocking 7494 port
    2. I use cloudflare it was working before no change but recent updates and I searched forum and have whitelisted 7494 as below:

    OpenVPN port 7494

    sudo -u yellowtent

    touch ports.json

    vi ports.json

    {
    "allowed_tcp_ports": [ 7494 ],
    "allowed_udp_ports": [ ]
    }

    Esc

    :wq

    sudo -u root

    systemctl restart cloudron-firewall

    1. Should I check my ISP might be blocking the IP but it is not the case as cloudron panel is reachable?

    I will end up uninstall/reinstall OpenVPN app in case no solution.

    Any idea? Thanks!

    girishG 1 Reply Last reply
    0
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    replied to hasan on last edited by
    #2

    @hasan

    • Are you proxying via cloudflare? If so, cloudflare cannot proxy VPN, only http(s).
    • You can also check if telnet <cloudron-server-ip> 7494 connects.
    • You don't (and shouldn't) need to white list port 7494. Cloudron will do this automatically for apps. The ports.json is only required for apps that you run outside Cloudron. So, in fact, I recommend removing this because I don't know what side effect it has on internal routing.
    H 1 Reply Last reply
    0
  • H Offline
    H Offline
    hasan
    replied to girish on last edited by hasan
    #3

    @girish Yes I use Cloudflare and OpenVPN was working well I don't know why maybe I should not update unless a stable version of Cloudron.

    I mean I do not proxy for OpenVPN only for the https for the my. domain. com panel and another app both works.

    Just removed ports.json

    $ telnet 209.xxx.xxx.xxx 7494
    Trying 209.xxx.xxx.xxx...
    Connected to 209.xxx.xxx.xxx.
    Escape character is '^]'.
    Connection closed by foreign host.
    (after a little while)

    Seemingly my ISP ... and connect error, guess where I'm living 🙂

    mehdiM 1 Reply Last reply
    0
  • mehdiM Offline
    mehdiM Offline
    mehdi App Dev
    replied to hasan on last edited by
    #4

    @hasan You can try

    • doing the same telnet stuff but from a shell on the server itself, to see if the problem comes from the server or the connectivity.
    • changing the port for the VPN on cloudron's management dashboard, then try the telnet stuff again with the new port
    H 1 Reply Last reply
    1
  • H Offline
    H Offline
    hasan
    replied to mehdi on last edited by
    #5

    @mehdi I tellnet from another ubuntu works fine 🙂 there's no issue with neither OpenVPN nor Cloudron. In another country it works so no problem.

    girishG 1 Reply Last reply
    0
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    replied to hasan on last edited by
    #6

    @hasan Is the conclusion that VPN is somehow blocked in your country 😞 ?

    1 Reply Last reply
    0
  • mehdiM Offline
    mehdiM Offline
    mehdi App Dev
    wrote on last edited by
    #7

    Recognizing TCP OpenVPN traffic is really not easy, as it kinda looks like any other TLS encrypted stream. As far as I know, doing so requires advanced Deep Packet Inspection capabilities that are only available to few countries, and even this is not foolproof.

    May I ask, @hasan, where are you based?

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.