This corrects issues you might have with various VPN Clients having discrepancies with MTU size between WSL and the Windows Host.
Create a file /usr/local/sbin/mtu
and add the following:
#!/bin/bash
ip link set dev eth0 mtu 1400
Add this to your .bashrc
, .zshrc
(or equivalent)
# Get the IP address of the host from /etc/resolv.conf
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2)
# Set the display path
export DISPLAY=$WSL_HOST:0.0