kmille / riseup-vpn-configurator

a simple command line tool to get RiseupVPN up and running
https://riseup.net/en/vpn
GNU General Public License v3.0
25 stars 5 forks source link

Error on status command #5

Closed Johnnyreyman closed 10 months ago

Johnnyreyman commented 11 months ago

When running the command ~/.local/bin/riseup-vpn-configurator --status I keep running into an error: ERROR: Could not find user/group: "getpwnam(): name not found: 'openvpn'" asciicast

kmille commented 11 months ago

A) What system do you use? B) Do you have installed the openvpn package (or openvpn-client?)? In this case the user openvpn does not exist.

Johnnyreyman commented 11 months ago

I am using Ubuntu 22.04 LTS with the openvpn package. I have tried creating the user/group and the script still does not recognize its existence.

kmille commented 11 months ago

BTW: I haven't checked it, but you have entered a password and probably captured it with asciinema!

Can you please show me your output?

kmille@linbox:~ groups openvpn
openvpn
kmille@linbox:~ id openvpn
uid=965(openvpn) gid=965(openvpn) groups=965(openvpn)
detournemint commented 10 months ago

I have this same issue, my output of the following was

$ groups openvpn
groups: ‘openvpn’: no such user
$ id openvpn
id: ‘openvpn’: no such user
kmille commented 10 months ago

I fixed the issue. You can now specify user/group in the config file. You can use -t to get a new "config file template". Please try and give feedback.

rojenzaman commented 7 months ago

Notice that the openvpn user and group name in Ubuntu is nm-openvpn.

My config:

---
# /etc/riseup-vpn.yaml

server: vpn07-par.riseup.net
protocol: udp
port: 53

# excluded_routes: list servcies that should not be routed over VPN
# can be an ipaddress, network or hostname
# your local subnet is excluded by default
excluded_routes:
  - 8.8.8.8
  - 192.168.123.0/24
  - us02web.zoom.us

# os user/group
user: nm-openvpn
group: nm-openvpn

Please run before start:

riseup-vpn-configurator --update
riseup-vpn-configurator --generate-config