Hi Krishna, can you add more details? Your answer says that we need to update another conf file like in comments above but I'm not sure what other comments you are referring to.
I have the exact same issue: Ubuntu on WSL2 can't talk to some servers when connection to VPN (through the Windows PulseSecure client app). Same issue as everyone else. I'd like to try your solution but am not sure what to cut and paste into the conf files. Should I copy the lines exactly "as is" with the stars * ? Can you add what other file you updated and paste the changes here? Thanks! I'm also completely stuck, I have to disconnect and reconnect to VPN multiple times per day to run some commands while on VPN and other while off VPN to be able to do my work, it's super frustrating.
Thanks for the help!
Had same issue with WSL2 & PulseSecure.
I was able to work this around by downgrading WSL2 -> WSL1:
PowerShell> wsl --set-version Ubuntu-20.04 1
Solution that really *worked* for me with WSL2 is to lower the MTU value of the network adapter of the Linux under WSL:
sudo ip link set dev eth0 mtu 1380