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

Vpn got error, terminated Restore dns #42

Open
aucoliveira opened this issue Jan 31, 2023 · 5 comments
Open

Vpn got error, terminated Restore dns #42

aucoliveira opened this issue Jan 31, 2023 · 5 comments

Comments

@aucoliveira
Copy link

Occurs when I try to connect to a server:

31 76.69 19 days 2weeks 1447316 tcp 995
Vpn command: user_script.sh: line 28: hostname: command not found 1/5
Error calling command line “dbus-launch --autolaunch=70c2c43711774be2b6238f1e2da3db0

failed to negotiate cipher with server. Add the server's cipher
('AES-128-CBC') to --data-ciphers (currently 'AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305') if you
want to connect to this server.

OS: Arch Linux;

@ghost
Copy link

ghost commented Jan 31, 2023

yes...i also encounter this.

OPTIONS ERROR: failed to negotiate cipher with server. Add the
server's cipher ('AES-128-CBC') to --data-ciphers (currently
'AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305') if you want to connect to this server.

???? how do i resolve this issue?

When I try to do changes to VPN_TMP file, the changes are not permanent as the file is auto generated when I chose a VPN server. hence the changes are always over written

The changes that would help are these:

##default vpn_tmp file:

cipher AES-128-CBC
auth SHA1

##my changes:

cipher AES-128-CBC
auth SHA1
data-ciphers AES-256-GCM:AES-128-GCM:AES-128-CBC

(this helps in my another direct open vpn connection using the vpnggate config file)

please help
Thank you

OS: debian

@Dragon2fly
Copy link
Owner

Hi @aucoliveira
Hi @ghost

I don't have time to deal with this problem right now. So it would be great if you guys can add 'data-ciphers AES-256-GCM:AES-128-GCM:AES-128-CBC' to the extra_option below and test if the problem is solved?

extra_option = ['keepalive 5 30\r\n', # prevent connection drop due to inactivity timeout

@DenzaDzen
Copy link

Привет@aucoliveira Привет@ghost

У меня сейчас нет времени заниматься этой проблемой. Так что было бы здорово, если бы вы, ребята, могли добавить 'data-ciphers AES-256-GCM:AES-128-GCM:AES-128-CBC'ниже extra_optionи проверить, решена ли проблема?

extra_option = ['keepalive 5 30\r\n', # prevent connection drop due to inactivity timeout

Please take a moment.
Can you be more specific where and what?
2023-05-16_15-24

@Dragon2fly
Copy link
Owner

Hi @DenzaDzen,

Please take a moment.
Can you be more specific where and what?

very simple, like this:

extra_option = ['keepalive 5 30\r\n',  # prevent connection drop due to inactivity timeout
                '%s' % ('connect-retry 2\r\n' if self.proto == 'tcp' else ''),
                'resolv-retry 2\r\n',
                'data-ciphers AES-256-GCM:AES-128-GCM:AES-128-CBC\r\n',    # <---- add ciphers option
                ]

@vejkse
Copy link

vejkse commented Jan 13, 2024

Vpn command: user_script.sh: line 28: hostname: command not found 1/5
Error calling command line “dbus-launch --autolaunch=70c2c43711774be2b6238f1e2da3db0

This error is due to the two notify-send commands in the default user_script.sh. They don’t work when run as root. You can fix it by removing or commenting out these two lines in your ~/.config/vpngate-with-proxy/user_script.sh.

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

No branches or pull requests

4 participants