What's new
  • 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!

Custom DDNS + OpenVPN Client get VPN IP

amoney

Regular Contributor
HI All

Router: RT-AC88U, Firmware: 384.9

I followed the guide here to get custom ddns working. Under DDNS settings the method to retrieve ip is set to internal. Now that i have enabled openvpn client tunnel i would like to have the ddns be updated with the VPN ip. I see the example on the page above on how to get the VPN IP but thats not working for me. Issue i am running into is that the wget/curl command on the router is not going through the vpn tunnel.

curl --interface tun11 http://ipv4.icanhazip.com/ -> returns the VPN IP
curl http://ipv4.icanhazip.com/ -> returns the ISP IP.

Under rules for routing for my VPN i have

Source IP: 192.168.1.0/24 Destination IP: 0.0.0.0 configured to use VPN.

I have confirmed my devices are connected to vpn so the tunnel is working.

So i was curious is it expected that the wget/curl commands on the router will not go through the tunnel or there is something wrong in my setup?

Also once its working do i then remove the ddns-start script and setup ddns only with the openvpn-event script? Or do i have them both running?
 
Last edited:
Interesting issue now. I did a recovery of my router to start with a clean setup and now when i have vpn client running i am not able to issue a ping call from the router it self.
 
So i tried adding a policy rule 192.168.1.1 -> 0.0.0.0 -> VPN and traffic from router still goes through the wan.

So my policy rules are
192.168.1.0/24 -> VPN
192.168.1.1 -> VPN

Is this expected? Technically i should only need the first policy rule right? But the router traffic still goes through the wan. So wondering if i am doing something wrong.
 
Last edited:

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!
Back
Top