larsklitzke / homeassistant-openvpn-client

OpenVPN client Add-On for Home Assistant
24 stars 11 forks source link

Connection denied #1

Open BigDefax opened 5 years ago

BigDefax commented 5 years ago

Hi, I've the openvpn-client addons installed on hassio 0.92.1 but when I try to configure it with a click on openvpn- icona, I've the browser (Chrome) error "Connection denied from hassio.local" . Any solution? I don't have https enabled.

LiQuiD04 commented 5 years ago

Same. I think I don't now how to configure it well. I've installed flask and uwsgi using pip install.

larsklitzke commented 5 years ago

Hi there. This can have multiple issues. Can you show me the part of your configuration.yml file for the openvpn client?

You may have to check that the URL or IP adress defined in the file is correct. Furthermore, if you define a local IP Adresse, you can only access the configuration page via the local network.

I'm currently on a journey so I will check this is in more detail when I'm back.

BigDefax commented 5 years ago

Hi, two file in attachment. Note: Home Assistant is installed on raspberry pi 3 b+ that doesn't have flask installed because required pip that required python. There isn't a "easy" addons that install OpenVpn Client on Home Assistant?

config file1

triblax commented 5 years ago

hassio-openvpn-client2 hassio-openvpn-client1 you must install/build and start it first, than configure+upload keys (files must have name as described! ca.crt, client.crt, client.key [+ta.key] )

BigDefax commented 5 years ago

sorry but the addons is on start. The problem is how can i upload the certificate if when i click on OpenVpn icona there is “access denied” error?

triblax commented 5 years ago

did you have installed, builded and started addon?

BigDefax commented 5 years ago

no, sorry.... You are right, thanks

larsklitzke commented 5 years ago

@triblax thanks for handling this issue :+1:

I will update the instructions in the README and include the steps to build and start the addon.

shajek commented 4 years ago

Is there any tutorial how to build it and run it ? i have cloned it in addon folder, but i have same "denied" page, and i dont see OpenVPN Client in addon page PS: i use latest hassio on RPi... that means i dont have ssh connection to host system thanks PS2: i got it .... i install it, but, when i try start it ...

/openvpnclient/venv/bin/run.sh: line 4: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 7: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 10: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 13: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 16: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 19: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 22: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 25: $'\r': command not found
/openvpnclient/venv/bin/run.sh: line 33: syntax error near unexpected token `$'{\r''
/openvpnclient/venv/bin/run.sh: line 33: `function log(){
'
xyboox commented 4 years ago

So @larsklitzke how do I build and start the add-on? Can you please explain a bit?

MatejKovacic commented 3 years ago

Unable to connect

Hi, I have similar problem. Firefox can’t establish a connection to the server at 192.168.xxx.xxx:8090.

Also, I cannot see OpenVPN addon under Supervisor.

MatejKovacic commented 3 years ago

In fact, after some time it appeared under local addons. But I cannot install it. When I click to install, it is doing sometnihg, but nothing happens.

MatejKovacic commented 3 years ago

Log says:

21-02-15 19:28:50 ERROR (MainThread) [supervisor.store] https://github.com/larsklitzke/homeassistant-openvpn-client is not a valid add-on repository
21-02-15 19:28:50 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/8af5c461/repository.json: [Errno 2] No such file or directory: '/data/addons/git/8af5c461/repository.json'
21-02-15 19:28:50 WARNING (MainThread) [supervisor.store.data] Can't read repository information from /data/addons/git/8af5c461/repository.json
21-02-15 19:28:50 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'auto_uart' is deprecated, use 'uart'. Please report this to the maintainer of ESPHome