Score:0

Add to route table destnation using this syntax *.mycompany.net

fr flag

The reason that I am asking this question is that i a using VPN-slice (VPNC) with openconnect

While running this command

ip route add *.mycompany.net via 0.0.0.0 dev tun0

Error: any valid prefix is expected rather than "*.mycompany.net".

What I have noticed is that all the domain names that are matching with *.mycompany.net can be covered using 160.0.0.0/8 but when I add this subnet It's not working the websites are not loading and even if I add the IP of a single domain name example: 160.22.33.44 the website doesn't load I have to write its domain name myweb.mycompany.net for it to work.

Thank a lot

Score:1
us flag

IP routing / forwarding has no idea about domain names, all routing rules are set up using IP addresses / address blocks.

Most likely the problem with your setup is that your VPN server is not doing NAT properly for the IP address blocks you are trying to route via the VPN.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.