This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
root@wheezy:~# /etc/init.d/openvpn restart
[....] Stopping virtual private network daemon:/etc/init.d/openvpn: 98: kill: No such process
[ ok nt.
[ ok ] Starting virtual private network daemon: client.
root@wheezy:~#
Quand openvpn est arrêté (sans savoir pourquoi) et que je fais service openvpn restart, j ai un message similaire où il dit no such process (je ne sais plus le pid).
A+
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2
On a pas les mêmes dysfonctionnements. En ce qui me concerne openvpn ne se stoppe pour ainsi dire jamais. Quand tu as un moment poste les fichiers up.sh, down.sh et openvpn.conf pour que je compare avec les miens
#! /bin/bash
# This script enables policy routing after the tunnel interface is brought up
# Policy routing is used to make sure response packets go through the tunnel interface
# This is mandatory when your ISP has setup anti-spoofing filters
# Add a default route via tun0 into the VPN routing table
ip route add default dev $1 table VPN
# Pass traffic from lo:1 (192.168.0.1) to the VPN routing table, using policy routing ("ip rule" commands)
ip rule add from 192.168.180.1/32 table VPN
# Pass traffic from tur0 IP address to the VPN routing table
ip rule add from $4/32 table VPN
#sed -i 's/\(\"bind-address-ipv4\":\).*/\1\ \"'"$4"'\",/' /etc/transmission-daemon/settings.json
#On ajoute les règles iptables pour faire le NAT
# Source NAT and destination NAT rules to make sure the incoming and ougoing packets on 192.168.0.1 are $
iptables -A PREROUTING -t nat -i $1 -p tcp --dport 443 -j DNAT --to 192.168.180.1
iptables -A PREROUTING -t nat -i $1 -p udp --dport 443 -j DNAT --to 192.168.180.1
iptables -A POSTROUTING -t nat -o $1 -j MASQUERADE
# Allow session continuation traffic
iptables -A INPUT -i $1 -m state --state RELATED,ESTABLISHED -j ACCEPT
# Allow Bittorrent traffic via tun0
iptables -A SERVICES -p tcp --dport 45000:65000 -j ACCEPT # rTorrent random range
# iptables -A SERVICES -p udp --dport 45000:65000 -j ACCEPT # DHT
# Disallow BitTorrent traffic via eth0 - Just to be extra safe ;)
iptables -A FORWARD -s 192.168.180.1/32 -o eth0 -j DROP
#Démarrage de transmission
/etc/init.d/transmission-daemon restart
#Démarrage du script vérifiant que le VPN est toujours actif
killall checkVPN
/usr/bin/checkVPN &
client
dev tun
proto udp
;Pas de modification depuis le serveur de la table de routage
route-nopull
;Scripts locaux gérant les routes et le client torrent
script-security 2
up /etc/openvpn/client/vpntunnel/scripts/up.sh
down /etc/openvpn/client/vpntunnel/scripts/down.sh
; Cert
ca /etc/openvpn/client/vpntunnel/auth/ca.crt
ns-cert-type server
cipher BF-CBC
;Host
remote se-vpn.vpntunnel.com 443
resolv-retry infinite
;auth
auth-user-pass /etc/openvpn/client/vpntunnel/auth/pass
sndbuf 0
rcvbuf 0
persist-key
persist-tun
nobind
comp-lzo
verb 2
;Maintien de la connexion: ping envoyé toutes les 10s, restart si pas de réponses pendant 60s
keepalive 10 60
ensuite c'est la clé
Attention, mon fichier conf est ici:
/etc/openvpn/client/vpntunnel/config/
et s'appelle stockholm.conf
j'ai suivi le tuto de tech.kanka.ch
A+
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2
Ok par contre ds les fichiers up.sh et down.sh tu n'as pas modifié la ligne "/etc/init.d/transmission-daemon stop" ainsi que ds up.sh "/etc/init.d/transmission-daemon restart" .... à moins que tu n'aies laissé tomber rtorrent au profit de transmission ?
bonjour,
je réinstalle couchpotato l'install c'est bien passé , mais impossible de le faire démarrer
je suis sur la version 10.2.0.2.2433 ....une idée ?
root@couchpotato:/ # /etc/rc.d/couchpotato start
/etc/rc.d/couchpotato: WARNING: $command_interpreter /usr/local/bin/python2.7 != /usr/bin/local/python2.7
Starting couchpotato.
eval: /usr/local/couchpotato/CouchPotato.py: not found
/etc/rc.d/couchpotato: WARNING: failed to start couchpotato
root@couchpotato:/ #
edit :j'ai modifier mon post ... headphones & sickrage fonctionne seul couchpotato ne fonctionne pas
#!/bin/sh
#
# PROVIDE: couchpotato
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable couchpotato:
# couchpotato_enable: Set to NO by default. Set it to YES to enable it.
# couchpotato_user: The user account CouchPotato daemon runs as what
# you want it to be.
# couchpotato_dir: Directory where CouchPotato lives.
# Default: /usr/local/couchpotato
# couchpotato_datadir: Directory where CouchPotato user data lives.
# Default: $couchpotato_dir/data
# couchpotato_conf: Directory where CouchPotato user data lives.
# Default: $couchpotato_datadir/settings.conf
# couchpotato_pid: Full path to PID file.
# Default: $couchpotato_datadir/couchpotato.pid
# couchpotato_flags: Set additonal flags as needed.
. /etc/rc.subr
name="couchpotato"
rcvar=couchpotato_enable
load_rc_config ${name}
: ${couchpotato_enable:=NO}
: ${couchpotato_user:=} #default is root
: ${couchpotato_dir:=/usr/local/CouchPotato}
: ${couchpotato_datadir:=${couchpotato_dir}/data}
: ${couchpotato_conf:=} #default is datadir/settings.conf
: ${couchpotato_pid:=} #default is datadir/couchpotato.pid
: ${couchpotato_flags:=}
command="${couchpotato_dir}/CouchPotato.py"
command_interpreter="/usr/bin/local/python2.7"
command_args="--daemon --data_dir ${couchptato_datadir}"
# append optional flags
if [ -n "${couchpotato_pid}" ]; then
pidfile=${couchpotato_pid}
couchpotato_flags="${couchpotato_flags} --pid_file ${couchpotato_pid}"
fi
if [ -n "${couchpotato_conf}" ]; then
couchpotato_flags="${couchpotato_flags} --config_file ${couchpotato_conf}"
fi
run_rc_command "$1"
Lors de install sabnzbd, en faisant Fetch des python pakages voici le message:
pkg install pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest, please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:11:amd64 ... st/pkg.txz: Operation timed out
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
je vous informe que j'ai fait un installe fraîche de thebrig par OBI. Et je suis en dernier version 11.1.
Merci d'avance.
11.1.0.2 - Atomics x64-embedded sur AMD Athlon(tm) 64 Processor 3200+
Lors de install sabnzbd, en faisant Fetch des python pakages voici le message:
pkg install pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest, please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:11:amd64 ... st/pkg.txz: Operation timed out
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
je vous informe que j'ai fait un installe fraîche de thebrig par OBI. Et je suis en dernier version 11.1.
Merci d'avance.
J'arrive à résoudre en supprimant et réinstallant Sbanzbd+! Sabnzbd fonctionne, mais il y a des avertissements concernant "SAByenc"pkg et les certificats de sécurité a cause de dernier version SABnzbd+2.1.0.J'arrive à installer les pkg sabyenc mais il y a des conflits de versions.
11.1.0.2 - Atomics x64-embedded sur AMD Athlon(tm) 64 Processor 3200+
Ce sujet était maitrisé et fait par Laster13, qui est moins présent sur le forum. Donc toutes tes trouvailles sont les bienvenues. Et si tu es motivés pour mettre à jour le tuto, c'est bienvenu.
A bientôt
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2