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

Cannot connect to cert download from vpngate.net #122

Open
Duchv2008 opened this issue Oct 27, 2024 · 3 comments
Open

Cannot connect to cert download from vpngate.net #122

Duchv2008 opened this issue Oct 27, 2024 · 3 comments

Comments

@Duchv2008
Copy link

My code connect success with my server. But when i change to ovpn cert download from vpngate.net

VPN lib not connect success.

I try test with open vpn client in macos. It ok with cert download from vpngate

Some log

I/flutter (13592): stage VPNStage.tcp_connect rawStage tcp_connect
I/flutter (13592): stage VPNStage.wait_connection rawStage wait_connection
I/flutter (13592): stage VPNStage.authenticating rawStage authenticating
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): stage VPNStage.get_config rawStage get_config
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): stage VPNStage.unknown rawStage reconnect
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): stage VPNStage.tcp_connect rawStage tcp_connect
I/flutter (13592): stage VPNStage.wait_connection rawStage wait_connection
I/flutter (13592): stage VPNStage.authenticating rawStage authenticating
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): stage VPNStage.get_config rawStage get_config
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}
I/flutter (13592): {connected_on: null, duration: 00:00:00, byte_in: 0, byte_out: 0, packets_in: 0, packets_out: 0}

@Farg0k
Copy link

Farg0k commented Oct 31, 2024

try it add

data-ciphers AES-128-CBC
data-ciphers-fallback AES-128-CBC

@dev-ali2
Copy link

try it add

data-ciphers AES-128-CBC
data-ciphers-fallback AES-128-CBC

Same problem, where to add it? in config file?

@Farg0k
Copy link

Farg0k commented Nov 1, 2024

Yes.
For me, it looks like this

if (config.contains('cipher AES-128-CBC') && !config.contains('data-ciphers')) {
      config = config.replaceAll('cipher AES-128-CBC', '''cipher AES-128-CBC
    data-ciphers 'AES-128-CBC'
    data-ciphers-fallback 'AES-128-CBC\'''');
    }
    if (config.contains('cipher AES-256-CBC') && !config.contains('data-ciphers')) {
      config = config.replaceAll('cipher AES-256-CBC', '''cipher AES-256-CBC
    data-ciphers 'AES-256-CBC'
    data-ciphers-fallback 'AES-256-CBC\'''');
    }

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

No branches or pull requests

3 participants