Frank Young 0 Posted ... Hi All, New to AirVPN, and I almost have my network set up correctly. So far I've got my pfSense router configured with an AirVPN interface, and all LAN traffic that I want going through the VPN is working well, except one. I've got an Unraid server running a reverse proxy I use for connecting to my unraid's nextcloud docker container. If the router is configured to use the regular WAN interface for the server, I can connect to nextcloud no problem. When I try to connect thorugh the AirVPN interface, no dice. My setup follows SpaceinvaderOne's tutorial on youtube, using duckdns for letsencrypt to obtain https certificates. I've played with this for days now, and can't get LetsEncrypt to create a new certificate, I keep getting the same error: Timeout during connect (likely firewall problem). Setup is as follows:Unraid duckdns docker container: duck dns website shows my AirVPN exit IP address. pinging my duckdns subdomain returns my AirVPN exit IP address. All good here.LetsEncrypt docker container: Removed LetsEncrypt docker container, and started fresh to force it to create a new certificate. Container port 80 is mapped to 180. Container port 443 is mapped to port 1443.Pfsense Firewall/NAT/Port Forward Rule: AirVPN Interface, TCP Protocol, Destination is AirVPN address port 180. Redirect target ip to unraid server, port 180. NAT reflection set to enable. Exact same setup for port 1443 to 1443.AirVPN/Client Area/Forwarded Ports: Port 12345, TCP protocol, Local port 180. Port 23456, TCP protocol, Local Port 1443. Accessing the AirVPN/Clent Area/Forwarded ports from a computer not on the VPN, the TCP Test check shows dark grey. Hovering over it seems to do nothing on firefox. When starting LetsEncrypt, I get the following errors in the log file: -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------2048 bit DH parameters presentSUBDOMAINS entered, processingSUBDOMAINS entered, processingOnly subdomains, no URL in certSub-domains processed are: -d xxxxxxxxxxxx.duckdns.orgE-mail address entered: xxxxxxxxxxxx@gmail.comhttp validation is selectedGenerating new certificateSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator standalone, Installer NoneSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator standalone, Installer NoneObtaining a new certificatePerforming the following challenges:http-01 challenge for xxxxxxxxxxxxxxxxxx.duckdns.orgWaiting for verification...Challenge failed for domain xxxxxxxxxxxxxxxx.duckdns.orghttp-01 challenge for xxxxxxxxxxxxxxxxxxx.duckdns.orgCleaning up challengesChallenge failed for domain xxxxxxxxxxxxxxxxxxxx.duckdns.orghttp-01 challenge for xxxxxxxxxxxxxxx.duckdns.orgCleaning up challengesSome challenges have failed.IMPORTANT NOTES:- The following errors were reported by the server:Domain: xxxxxxxxxxxxxxxxx.duckdns.orgType: connectionDetail: Fetchinghttp://xxxxxxxxxxxxxxx.duckdns.org/.well-known/acme-challenge/5nE9VpEtxFI4KAE:Timeout during connect (likely firewall problem)To fix these errors, please make sure that your domain name wasentered correctly and the DNS A/AAAA record(s) for that domaincontain(s) the right IP address. Additionally, please check thatyour computer has a publicly routable IP address and that nofirewalls are preventing the server from communicating with theclient. If you're using the webroot plugin, you should also verifythat you are serving files from the webroot path you provided. ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- I know there may be a more straight forward way of doing this using AirVPN DDNS, and I tried that for a while as well but couldn't get it working either. Would like to stay with the duckdns method. Any suggestions on what could be the issue? I'm thinking somethings up with the TCP Test check, but don't know how to diagnose and fix this (didn't see anything in the arivpn guide about this). Any help is appreciated, thanks guys and gals Quote Share this post Link to post
Frank Young 0 Posted ... I've tried tracing out the routing.. DuckDNS Docker on host -> pfsense router AirVPN interface -> AirVPN exit server -> DuckDNS: Updates IP with AirVPN Exit server LetsEncrypt Docker (80,443) -> host proxynet (180,1443) -> pfsense router AirVPN interface w/ 180,1443 ports forwarded -> AirVPN exit server w/ port forward 180 to 25789, 1443 to 25790. I've also tried: LetsEncrypt Docker (80,443) -> host proxynet (180,1443) -> pfsense router AirVPN interface w/ port forward 180 to 180 ,1443 to 1443 -> AirVPN exit server w/ no forwarded ports LetsEncrypt Docker (80,443) -> host proxynet (25789, 25790) -> pfsense router AirVPN interface w/ 25789, 25790 ports forwarded -> AirVPN exit server w/ 25789, 25790 ports forwarded. LetsEncrypt Docker (80,443) -> host proxynet (180, 1443) -> pfsense router AirVPN interface w/ port forward 180 to 25789, 1443 to 25790 -> AirVPN exit server w/ 25789, 25790 ports forwarded. Note that since unraid uses port 80 and 443 I need to remap those ports used by letsEncrypt to something else. Quote Share this post Link to post
flat4 87 Posted ... I use both of these, so just to be clear you want to use nextcloud to be available thru the reverse proxy while using airvpn's entry and exit endpoints? Quote Hide flat4's signature Hide all signatures pFsense it works Share this post Link to post
Frank Young 0 Posted ... Thats the goal. LetsEncrypt just doesnt seem to be able to validate a ssl certificate. Quote Share this post Link to post
HHUBSS 0 Posted ... Did you sort this out? I'm on the same boat as you. Quote Share this post Link to post
Tech Jedi Alex 1491 Posted ... @Frank Young @jomsen @HHUBSS It is likely none of you will ever solve this unless you use the dns-01 challenge (where a DNS TXT record is verified instead of the contents of a file in the .well-known dir of your webspace, but DuckDNS should support this). For http-01 port 80, and for tls-alpn-01 port 443, must be accessible, but AirVPN does not forward ports <1024 to clients, so verification behind AirVPN is impossible using these challenges. You can likewise not use dns-01 with AirVPN DDNS (those names like myserver.airdns.org, configured when forwarding a port) because that one only updates A and AAAA records when connecting to a server. That's just a note, OP is using DuckDNS, anyway. You can still automate this if you've got a means to edit DNS records with some API. For example, use Caddy as reverse proxy and change its ACME options to use dns-01, specifying one of the DNS providers for this; DuckDNS is supported here. I believe other clients are able to use dns-01, too, but for automating this with them (since it must be done every 60-90 days) some scripting may be needed. Quote Hide Tech Jedi Alex's signature Hide all signatures NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT. LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too! Want to contact me directly? All relevant methods are on my About me page. Share this post Link to post