Hi, guys.
Is there any way to specify the interface to listen on with the name of the interface,
instead of the IP of the interface ?
In my case, the IPs of both sides(client and server) are all dynamic (assigned by ISP).
I use a dynamic dns tool(luci-app-ddns & ddns-scripts) to refresh(re-bind) the new ip of Internet interface of my server to my domain name.
Yes, they all have their own dns name !
Obviously, it's necessary to config the "--remote" with the dns name of server on client side, instead of the ip of the server.
But my server has more than one Internet link.
While openwrt is starting, the sddns.sh script has not yet re-binded the new ip related to it's dns name.
At the same time, OpenVPN trys to resolve the ip of this dns name and to listen on this ip specified by former binding.
So, it fails inevitably (trys to listen a ip not belong to it).
Casually, it sometimes successfully listened on a IP, but not the correct ip related to the dns name (the ip belongs to another internet link).
A few minutes later, after sddns.sh re-bind the correct ip successfully, the clients can not establish vpn through the dns name of my server.
Considering security reasons, I don't like listen on all of my interface.
So, I want to start the openvpn server, and force it listen on a fixed interface such as "pppoe-wan1" in my case.
Then, I will config the sddns.sh script to bind the ip of this fixed interface to the dns name always.
Is there existing this way ?
Thanks!
(Last edited by evilroach on 21 Jun 2016, 16:46)