Skip to content

WSL2 , problem with network connection when VPN used (PulseSecure) #5068

Closed
@fibu79

Description

@fibu79

I'm using MS v. 2004 (build 19041) with UBUNTU linux on WSL2.
When I don't use VPN on windows , everything is fine - I have internet connection on windows and wsl2 ubuntu.
But when established connection via VPN (on windows) then on windows still is OK - I have both internet and vpn connection , but on Ubuntu there is no network connection at all (no internet , no vpn access).
I suspect there is a problem with NAT (on Hyper-V default switch)
Any idea what could be wrong ?
Additionally: on wsl1 everything worked fine (also when VPN enabled)

Currently on wsl2 it looks like this :
fibu@DESKTOP-3N4US3P:/mnt/c/Users/fibu2$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.123.209 netmask 255.255.240.0 broadcast 172.30.127.255
inet6 fe80::215:5dff:fe41:b550 prefixlen 64 scopeid 0x20
ether 00:15:5d:41:b5:50 txqueuelen 1000 (Ethernet)
RX packets 263 bytes 27705 (27.7 KB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 223 bytes 34352 (34.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 2 bytes 56 (56.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 56 (56.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

fibu@DESKTOP-3N4US3P:/mnt/c/Users/fibu2$
fibu@DESKTOP-3N4US3P:/mnt/c/Users/fibu2$ ping google.com
ping: google.com: Temporary failure in name resolution
fibu@DESKTOP-3N4US3P:/mnt/c/Users/fibu2$
fibu@DESKTOP-3N4US3P:/mnt/c/Users/fibu2$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 172.30.112.1 0.0.0.0 UG 0 0 0 eth0
172.30.112.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0
fibu@DESKTOP-3N4US3P:/mnt/c/Users/fibu2$ cat /etc/resolv.conf
nameserver 172.30.112.1
fibu@DESKTOP-3N4US3P:/mnt/c/Users/fibu2$

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions