adrienverge / openfortivpn

Client for PPP+TLS VPN tunnel services
GNU General Public License v3.0
2.72k stars 323 forks source link

Customizing OS Version Reporting in openfortivpn #1166

Open flug opened 12 months ago

flug commented 12 months ago

Hello,

I am using openfortivpn for VPN connections on my Ubuntu system. I was wondering if there's a way to configure the client to report a different version of Ubuntu when establishing a VPN connection? I aim to present an alternative version identifier to the VPN server for compatibility reasons. Is there a configuration option or a command-line argument that allows for such modification?

Thank you for your assistance.

DimitriPapadopoulos commented 12 months ago

Try option user-agent = ... in a config file. It looks like the command line option --user-agent is not supported, I don't know why at this point.

DimitriPapadopoulos commented 12 months ago

Here is the default value: https://github.com/adrienverge/openfortivpn/blob/6a5a91f603d2e853ffc926b969044636cc07abdd/src/main.c#L670-L672

Which value is required in your case?

DimitriPapadopoulos commented 11 months ago

713 added user_agent, and also hostcheck and check_virtual_desktop.

Would you have a suggestion for default values that may work better with newer FortiOS?