Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing OS Version Reporting in openfortivpn #1166

Open
flug opened this issue Nov 14, 2023 · 3 comments
Open

Customizing OS Version Reporting in openfortivpn #1166

flug opened this issue Nov 14, 2023 · 3 comments
Labels

Comments

@flug
Copy link

flug commented Nov 14, 2023

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
Copy link
Collaborator

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
Copy link
Collaborator

Here is the default value:

openfortivpn/src/main.c

Lines 670 to 672 in 6a5a91f

// Set default UA
if (cfg.user_agent == NULL)
cfg.user_agent = strdup("Mozilla/5.0 SV1");

Which value is required in your case?

@DimitriPapadopoulos
Copy link
Collaborator

#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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants