Dragon2fly / vpngate-with-proxy

vpn gate client for linux, be able to connect to open vpn server through proxy
GNU General Public License v2.0
249 stars 71 forks source link

Vpn got error, terminated Restore dns #42

Open aucoliveira opened 1 year ago

aucoliveira commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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?

https://github.com/Dragon2fly/vpngate-with-proxy/blob/3a2b067c3146a8ece7233e83f470696c77418bd6/vpnproxy_tui.py#L72

DenzaDzen commented 1 year ago

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

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

https://github.com/Dragon2fly/vpngate-with-proxy/blob/3a2b067c3146a8ece7233e83f470696c77418bd6/vpnproxy_tui.py#L72

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

Dragon2fly commented 1 year ago

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 commented 9 months ago

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.