Jump to content


Photo

Configure Asuswrt Merlin OpenVPN-Server for access with AirVPN Port-Forwarding

Asuswrt Merlin Port-Forwarding OpenVPN-Server

  • Please log in to reply
3 replies to this topic

#1 Wolfschiesst

Wolfschiesst

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 11 June 2017 - 12:00 AM

Dear @all,

 

my Asus Router RT-AC88U - flashed with current Merlin Beta-Firmware 380.67_alpha2 - is configured to run as AirVPN OpenVPN-Client. ccording to the following AirVPN HowTo:

 
After importing AirVPN's *.ovpn config-file, I modified the following OpenVPN client-parameters in the advanced settings section (my suggestion to everyone):
  • Accept DNS Configuration (AirVPN -> Disabled): Should be "Strict" (recommended) or alternatively to "Exclusive"
  • Redirect Internet traffic (AirVPN -> No): Should be set to "all", to be sure, that every traffic will be forwarded through the VPN-tunnel
  • I added "mute-replay-warnings" to the custom configuration field.
     

So, now AirVPN-client connection is up and vpn connection via the router is running successfully.

:up:

 

In addition to that, I'd like to use the OpenVPN-server of the above mentioned router, to enable secure remote access to my home network (NAS, Samba-Shares, Printers etc.) - from the road (when I'm not at home) - using my mobile phone or my Laptop.  

 

So I startet with the configuration of OpenVPN-server 1.

Sample for Advanced Config: see attached image Asuswrt Merlin_Config OVPN Server.JPG  

After saving the configuration, I startet the router's export and imported the generated *.ovpn-file to my client devices OpenVPN-installation.

 

Then I configured an open port using the "remote port forwarding"-feature of AirVPN's client-backend, in order to enable TCP/UDP-Traffic to my local OpenVPN-Server port (e.g. 1149) using a predifined ddns-alias (like XXXXX.airdns.org). So for example Airvpn port 50000 directs to local port 1149 (TCP + UDP).

 

Unfortunaltely I got now stuck with building up any connection from the clients.

The DNS-resolution of AirVPN works correctly (client receives correct OpenVPN-Server IP), but the OpenVPN-Client (version 1.1.1 build 212 - 64-bit on iPhone)) ends with connection_timeout.

 

iPhone's OpenVPN-client Log-File (anonymized):

 

2017-06-11 02:07:16 ----- OpenVPN Start -----
OpenVPN core 3.1.2 ios arm64 64-bit built on Dec  5 2016 12:50:25
2017-06-11 02:07:16 Frame=512/2048/512 mssfix-ctrl=1250
2017-06-11 02:07:16 UNUSED OPTIONS
2017-06-11 02:07:16 EVENT: RESOLVE
2017-06-11 02:07:16 Contacting 46.165.XXX.XXX:YYYYY via TCP
2017-06-11 02:07:16 EVENT: WAIT
2017-06-11 02:07:16 SetTunnelSocket returned 1
2017-06-11 02:07:16 Transport Error: TCP connect error on 'XXXXXX.airdns.org:YYYYY' (46.165.XXX.XXX:YYYYY): Connection refused
2017-06-11 02:07:16 Client terminated, restarting in 2000 ms...
2017-06-11 02:07:17 NET Internet:ReachableViaWWAN/WR t------
2017-06-11 02:07:18 EVENT: RECONNECTING
2017-06-11 02:07:18 Contacting 46.165.XXX.XXX:YYYYY via TCP
2017-06-11 02:07:18 EVENT: WAIT
2017-06-11 02:07:18 SetTunnelSocket returned 1
2017-06-11 02:07:19 Transport Error: TCP connect error on 'XXXXXX.airdns.org:YYYYY' (46.165.XXX.XXX:YYYYY): Connection refused
2017-06-11 02:07:19 Client terminated, restarting in 2000 ms...

 

Is there anything more I need to configure on the router or the client? Maybe a firewall forwarding problem (if this could be the problem, what do I need to do)?

Since I do not have to forward to a specific client in my home lan (that is running a OpenVPN-server), but the main router itself is the OpenVPN server, I didn't find a suitable configuration example, yet.

 

I would be very grateful for tips or helping hints.

B)



#2 Joost123

Joost123

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 26 September 2018 - 06:40 PM

I have the same problem. 

 

Did you find a solution?



#3 bracio84

bracio84

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 11 February 2019 - 03:40 PM

Same problem, I've tried also on my board Odroid U3 with Openvpn Server.. I see correct air ip ....but still wait...

 

With SSH on Asus modem I've set forward port to device https://airvpn.org/topic/9270-how-to-forward-ports-in-dd-wrt-tomato-with-iptables/

 
If shutdown Airvpn client on Asus merlin router openvpn client on iPhone contact without problem openvpn server
 
Sorry for my English.. :whistle:
 
Ideas?

 



#4 bracio84

bracio84

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 12 February 2019 - 10:10 AM

Edit...

 

Start Openvpn server on router, and export client.ovpn

Start Openvpn client on router, and import Airvpn.ovpn

Configured client for connect by iPhone

Connection Work 

But I can't surf 

If I ping any device on my network over ISP LTE over Openvpn connection this response

But I can't Surf with my Openvpn connection

 

Situation is (green:work    red:not work)

                                                                

MY NETWORK -----> ROUTER <--redirect internet ALL traffic --> AIRVPN -->ipleak.net see ip&dns by AIrvpn> INTERNET OK

 

ME OUT HOME---->>>MY IPHONE ---> LTE ISP----> OPENVPN TO HOME ---->CONNECTION OK--->PING LAN OK---> NO SURF INTERNET

 

With ssh to my router I see this in /etc/openvpn/server1 

config.ovpn

 

Spoiler

 

i've edit client ,and  import profile to iPhone

 

Spoiler

 

I've port farwarding in my area choice port to internal 1194 (openvpnserver)

 

On iPhone test network with App Net Alayzer :

 

(Onedrive photo album) https://1drv.ms/a/s!AhgCbyEqsT3yuTDtXsPqkwJfnpZ6 ---> The image "information" report no GATEWAY no IP 

 

This is Openvpn client logs

 

Spoiler

 

 

Can you help me to configure the server ?







Similar Topics Collapse


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Servers online. Online Sessions: 13665 - BW: 51760 Mbit/sYour IP: 34.229.175.129Guest Access.