What's new

RT-AX56U OpenVPN connected but no route | Public IP unknown

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Maybe leave a hint for other people in GUI when "unknown public IP" occurs?

Some VPN providers e.g. VPNBOOK don't seemingly support STUN?, so always shows 'Public unknown' so this is not necessarily a reliable/definite indicator that there is something wrong with the OpenVPN configuration.

upload_2020-5-4_20-7-3.png


yet works perfectly

upload_2020-5-4_20-17-39.png
 
Some VPN providers e.g. VPNBOOK don't seemingly support STUN]

My site to site VPNs now say Unknown when it used to report an IP. It doesn't seem to matter, so I never bothered to ask why, but it is a fairly recent development.

It could easily be something I did though, as a tinkerer, I am a lousy test subject.
 

Attachments

  • IMG_20200504_155311.jpg
    IMG_20200504_155311.jpg
    27.8 KB · Views: 190
My site to site VPNs now say Unknown when it used to report an IP. It doesn't seem to matter, so I never bothered to ask why, but it is a fairly recent development.

It could easily be something I did though, as a tinkerer, I am a lousy test subject.
The firmware uses this very simple script:

/usr/sbin/gettunnelip.sh
Code:
#!/bin/sh

INSTANCE=$1

servers="stun.l.google.com:19302 stun.stunprotocol.org"

for server in $servers; do
    result=$(/usr/sbin/ministun -t 5000 -c 1 -i tun1$INSTANCE $server 2>/dev/null)
    [ $? -eq 0 ] && break
    result="unknown"
done

nvram set "vpn_client${INSTANCE}_rip"=$result
so if the two STUN servers cannot be resolved/accessed or if all traffic is forced through a private VPN site-to-site tunnel then it cannot retrieve the expected IP.

Usually, that's why it is advised when using Selective Routing for ALL LAN devices, that you explicitly force the router to use the WAN.
 
Do you mean like this? (75.254 is the local router). With this setting, the VPN reported connected, but I couldn't reach clients.

Lately, MQTT won't talk both ways, so it is likely something else (that I did) is botched too.
 

Attachments

  • IMG_20200504_162437.jpg
    IMG_20200504_162437.jpg
    16.6 KB · Views: 191
Do you mean like this? (75.254 is the local router). With this setting, the VPN reported connected, but I couldn't reach clients.

Lately, MQTT won't talk both ways, so it is likely something else (that I did) is botched too.
If you are not using Selective Routing, then the router is already implicitly outbound via the WAN.

If you can't perform nslookup on the router to the two STUN servers, or you could try manually executing the two ministun commands, then you may have found the reason for always having 'Public -unknown'.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top