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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
M

mabaker

@mabaker
About
Posts
6
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Cal.com (was Calendso) - Calendly Alternative
    M mabaker

    Would love to have this as well. Please make it happen 🙂

    App Wishlist

  • OAuth Connection With Nextcloud Not Working
    M mabaker

    Since Hairpin NAT was kind of a pain in the a** to set up, I decided to go for DNS route in the end.
    The following solution made it possible to connect to the domains/containers that are hosted on the same machine.

    • Create a file in the /etc/unbound/unbound.conf.d/ directory e.g. randomfilename.conf

    • Add a line for every domain that you want to resolve internally with the internal VM IP (e.g. 192.168.1.1)

    server:
    
      local-data: "domain1.xx.com. IN A INTERNAL_VM_IP"
      local-data: "domain2.xx.com. IN A INTERNAL_VM_IP"
      local-data: "domain3.xx.com. IN A INTERNAL_VM_IP"
    
    • Restart Unbound DNS Server via "systemctl restart unbound"

    Hopefully this helps someone who runs into the same problem.
    @girish Thanks for your help!

    N8N

  • OAuth Connection With Nextcloud Not Working
    M mabaker

    @girish Understood. Proxmox is acting as a router via internal IPTables.

    I'm going to give this config a go and see if it works, before I try fiddling around with DNS settings

    # Internet
     $IPTABLES -t nat -A PREROUTING -i $INTERNET_IF -p tcp -m tcp --dport 80 -j DNAT --to-destination $WEB_SERVER1:80
     $IPTABLES -t nat -A PREROUTING -i $INTERNET_IF -p tcp -m tcp --dport 443 -j DNAT --to-destination $WEB_SERVER1:443
    # VMNET - specify dest otherwise all traffic is redirected to this VM which we don't want
     $IPTABLES -t nat -A PREROUTING -i $INTRANET_IF -d $PUBLIC_IP  -p tcp -m tcp --dport 80 -j DNAT --to-destination $WEB_SERVER1:80
     $IPTABLES -t nat -A PREROUTING -i $INTRANET_IF -d $PUBLIC_IP  -p tcp -m tcp --dport 443 -j DNAT --to-destination $WEB_SERVER1:443
    # Host
     $IPTABLES -t nat -A OUTPUT -d $PUBLIC_IP -p tcp -m tcp --dport 80 -j DNAT --to-destination $WEB_SERVER1:80
     $IPTABLES -t nat -A OUTPUT -d $PUBLIC_IP -p tcp -m tcp --dport 443 -j DNAT --to-destination $WEB_SERVER1:443
    
    N8N

  • OAuth Connection With Nextcloud Not Working
    M mabaker

    @girish That indeed seems to be the issue which I'm currently trying to solve somehow via IPTables. Unbound is running. I'm NATing the VMs on this machine.

    I could find some resources on "Split-DNS" but I'm not sure if this is possible with the current unbound / nginx setup.

    If you happen to have any other workarounds to solve this, please let me know.

    N8N

  • OAuth Connection With Nextcloud Not Working
    M mabaker

    @girish

    Thanks for the quick reply!

    Result of curl: Connection refused. This happens with all apps and terminals.

    No App and Terminal is able to connect via curl to another domain hosted on the same machine.

    N8N

  • OAuth Connection With Nextcloud Not Working
    M mabaker

    Hi everyone,

    I was trying to connect n8n with nextcloud , hosted on the same VM as n8n itself.
    I'm forwarding both port 443 & 80 to this VM.

    When trying to fulfill the last step of the OAuth Verification there is an error on the last step, probably coming from a forwarding issue.

    {"code":0,"message":"Unable to connect to xx.xx.xx:443","hint":"","stack":"ConnectionError: Unable to connect to xx.xx.xx:443\n    at TLSSocket.onError
    

    There were no issues connecting the Nextcloud Cloudron Instance with the n8n Desktop App, so I assume this issue is soley based on some forwarding problem within cloudron/nginx.

    If anyone has an idea how solve this, please let me know 🙂

    N8N
  • Login

  • Don't have an account? Register

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