Recenty I tried to connect my office from home with open-vpn.
It worked fine when using ubuntu 18.04 a few months ago.
But after I upgrade system to ubuntu 22.04, it failed.

Open-vpn showed below log:

NOTE: unable to redirect IPv4 default gateway -- VPN gateway parameter (--route-gateway or --ifconfig) is missing

I don’t know what exactly it means, I’m not a network expert, so I searched web.
After hours of searching I got nothing! All answers are not even close.

Then I paste the log to Chat-GPT, she told me add below line to open-vpn config file:

ifconfig 192.168.1.xxx 255.255.255.0

It works! Great Chat-GPT!

Contents