zehome / MLVPN

Multi-link VPN (ADSL/SDSL/xDSL/Network aggregation / bonding)
http://www.mlvpn.fr/
BSD 2-Clause "Simplified" License
521 stars 129 forks source link

[CRIT/config] file is group/other accessible #48

Closed mhand201 closed 9 years ago

mhand201 commented 9 years ago

Bonjour,

Lorsque je lance mlvpn avec la line de command: mlvpn --user mlvpn -c /etc/mlvpn/mlvpn0.conf

je recois le message d'erreur suivant: 2015-05-13T04:29:57 [CRIT/config] file is group/other accessible. Fix permissions

Merci

zehome commented 9 years ago
ls -l /etc/mlvpn/*
chmod 600 /etc/mlvpn/*.conf
chmod 700 /etc/mlvpn/*.sh
mhand201 commented 9 years ago

Merci ca régler le probleme mais j'ai un autre:

May 14 23:47:40 mlpvn mlvpn[981]: adsl1 bind error: Invalid argument May 14 23:47:40 mlpvn mlvpn[981]: adsl1 bind error May 14 23:47:40 mlpvn mlvpn[981]: adsl2 bind error: Invalid argument May 14 23:47:40 mlpvn mlvpn[981]: adsl2 bind error May 14 23:47:40 mlpvn mlvpn[981]: adsl3 bind error: Invalid argument May 14 23:47:40 mlpvn mlvpn[981]: adsl3 bind error May 14 23:47:40 mlpvn mlvpn[980]: bind port is mandatory in server mode. May 14 23:47:40 mlpvn mlvpn[980]: Will quit with exit code 1 May 14 23:47:40 mlpvn systemd[1]: mlvpn@mlvpn0.service: main process exited, code=exited, status=1/FAILURE May 14 23:47:40 mlpvn systemd[1]: Unit mlvpn@mlvpn0.service entered failed state. May 14 23:47:41 mlpvn mlvpn[985]: adsl1 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[985]: adsl1 bind error May 14 23:47:41 mlpvn mlvpn[985]: adsl2 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[985]: adsl2 bind error May 14 23:47:41 mlpvn mlvpn[985]: adsl3 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[985]: adsl3 bind error May 14 23:47:41 mlpvn mlvpn[984]: bind port is mandatory in server mode. May 14 23:47:41 mlpvn mlvpn[984]: Will quit with exit code 1 May 14 23:47:41 mlpvn systemd[1]: mlvpn@mlvpn0.service: main process exited, code=exited, status=1/FAILURE May 14 23:47:41 mlpvn systemd[1]: Unit mlvpn@mlvpn0.service entered failed state. May 14 23:47:41 mlpvn mlvpn[989]: adsl1 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[989]: adsl1 bind error May 14 23:47:41 mlpvn mlvpn[989]: adsl2 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[989]: adsl2 bind error May 14 23:47:41 mlpvn mlvpn[989]: adsl3 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[989]: adsl3 bind error May 14 23:47:41 mlpvn mlvpn[988]: bind port is mandatory in server mode. May 14 23:47:41 mlpvn mlvpn[988]: Will quit with exit code 1 May 14 23:47:41 mlpvn systemd[1]: mlvpn@mlvpn0.service: main process exited, code=exited, status=1/FAILURE May 14 23:47:41 mlpvn systemd[1]: Unit mlvpn@mlvpn0.service entered failed state. May 14 23:47:41 mlpvn mlvpn[993]: adsl1 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[993]: adsl1 bind error May 14 23:47:41 mlpvn mlvpn[993]: adsl2 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[993]: adsl2 bind error May 14 23:47:41 mlpvn mlvpn[993]: adsl3 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[993]: adsl3 bind error May 14 23:47:41 mlpvn mlvpn[992]: bind port is mandatory in server mode. May 14 23:47:41 mlpvn mlvpn[992]: Will quit with exit code 1 May 14 23:47:41 mlpvn systemd[1]: mlvpn@mlvpn0.service: main process exited, code=exited, status=1/FAILURE May 14 23:47:41 mlpvn systemd[1]: Unit mlvpn@mlvpn0.service entered failed state. May 14 23:47:41 mlpvn mlvpn[997]: adsl1 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[997]: adsl1 bind error May 14 23:47:41 mlpvn mlvpn[997]: adsl2 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[997]: adsl2 bind error May 14 23:47:41 mlpvn mlvpn[997]: adsl3 bind error: Invalid argument May 14 23:47:41 mlpvn mlvpn[997]: adsl3 bind error May 14 23:47:41 mlpvn mlvpn[996]: bind port is mandatory in server mode. May 14 23:47:41 mlpvn mlvpn[996]: Will quit with exit code 1 May 14 23:47:41 mlpvn systemd[1]: mlvpn@mlvpn0.service: main process exited, code=exited, status=1/FAILURE May 14 23:47:41 mlpvn systemd[1]: Unit mlvpn@mlvpn0.service entered failed state. May 14 23:47:42 mlpvn systemd[1]: mlvpn@mlvpn0.service start request repeated too quickly, refusing to start. May 14 23:47:42 mlpvn systemd[1]: Failed to start MLVPN connection to mlvpn0. May 14 23:47:42 mlpvn systemd[1]: Unit mlvpn@mlvpn0.service entered failed state.

voici le fichier mlvpn0.conf:

[general] statuscommand = "/etc/mlvpn/mlvpn0_updown.sh" tuntap = "tun" loglevel = 4 mode = "server" protocol = "udp" interface_name = "mlvpn0" timeout = 30 password = "pleasechangeme!"

[adsl1] bindport = 5081 bandwidth_upload = 61440 bandwidth_download = 512000

[adsl2] bindport = 5082 bandwidth_upload = 61440 bandwidth_download = 512000

[adsl3] bindport = 5083 bandwidth_upload = 61440 bandwidth_download = 512000 Merci

freemangl commented 4 years ago
chmod 700 /etc/mlvpn/*.sh

root@ubcloud:~# ls -l /etc/mlvpn/ -rw------- 1 root root 261 Jul 31 11:57 /etc/mlvpn/mlvpn0.conf -rwx------ 1 root root 677 Jul 31 12:04 /etc/mlvpn/mlvpn0_updown.sh root@ubcloud:~# chmod 600 /etc/mlvpn/.conf root@ubcloud:~# chmod 700 /etc/mlvpn/*.sh root@ubcloud:~# mlvpn --user mlvpn -c /etc/mlvpn/mlvpn0.conf 2020-07-31T12:36:21 [CRIT/fatal] you are not allowed to run this program as root. please specify a valid user with --user option

any ideas? thanks