Hello!
I need to route all traffic that goes to *.mydomain.com (aa.mydomain.com, bbb,mydomain.com etc) to vpn tonel
is it possible to do so?
It would be easy with list of specific hostnames, you’d just add them to address list and use it to mark routing. But if you really need wildcard, I don’t see any simple and reliable way. You could perhaps write a script going through cached dns entries and build an address list from those, but there would always be some delay, even if you’d be running the script every few seconds. So it might work, but wouldn’t be very convenient, first request would fail and user would have to try again a little later.
thanks for your reply!
I understood the situation about script, but read a lot of posts like " doing wrong with one subdomain and IPv4". In a case of MS Office 365 - five and more subdomains and IPv4\6.
I’m not so good in scripting, so I asked for help here