Beiträge von switched
-
-
Hi Subzero, thanks! The output is below.
Under PLUGINS, all the apps are showing there, so I cant reinstall them. When I try to remove them to reinstall, the removal comes up with an errorCodeFailed to execute command 'export LANG=C; apt-get --yes --auto-remove --purge remove openmediavault-shellinabox 2>&1': Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package openmediavault-shellinabox
But all the tabs on the left where we configure those apps are disappeared and all the services are missing.
Coderoot@RADNAS:~# dpkg -l | grep 'openmediavault\|nginx' ii nginx 1.2.1-2.2+wheezy4 all small, powerful, scalable web/proxy server ii nginx-common 1.2.1-2.2+wheezy4 all small, powerful, scalable web/proxy server - common files ii nginx-full 1.2.1-2.2+wheezy4 amd64 nginx web/proxy server (standard version) ii openmediavault 2.2.6 all Open network attached storage solution ii openmediavault-keyring 0.4 all GnuPG archive keys of the OpenMediaVault archive
Would it be better I start with a fresh install? Maybe a reason to go toOMV3? -
Code
Alles anzeigen# apt-get purge nginx he following packages were automatically installed and are no longer required: <SNIP> The following packages will be REMOVED: nginx* openmediavault* openmediavault-backup* openmediavault-couchpotato* openmediavault-ddclient* openmediavault-extplorer* openmediavault-fail2ban* openmediavault-headphones* openmediavault-letsencrypt* openmediavault-locate* openmediavault-mysql* openmediavault-nut* openmediavault-omvextrasorg* openmediavault-owncloud* openmediavault-plexmediaserver* openmediavault-remoteshare* openmediavault-rsnapshot* openmediavault-sabnzbd* openmediavault-sensors* openmediavault-shellinabox* openmediavault-sickbeard* openmediavault-snapraid* openmediavault-transmissionbt* openmediavault-usbbackup* openmediavault-virtualbox* 0 upgraded, 0 newly installed, 25 to remove and 75 not upgraded. After this operation, 10.9 MB disk space will be freed. Do you want to continue [Y/n]? Y (Reading database ... 78310 files and directories currently installed.) Removing openmediavault-fail2ban ... Purging configuration files for openmediavault-fail2ban ... Removing openmediavault-plexmediaserver ... Purging configuration files for openmediavault-plexmediaserver ... Removing openmediavault-extplorer ... Reloading PHP5 FastCGI Process Manager: php5-fpm. Reloading nginx configuration: nginx. Purging configuration files for openmediavault-extplorer ... Reloading PHP5 FastCGI Process Manager: php5-fpm. Reloading nginx configuration: nginx. Removing openmediavault-usbbackup ... Purging configuration files for openmediavault-usbbackup ... Removing openmediavault-owncloud ... Purging configuration files for openmediavault-owncloud ... Reloading PHP5 FastCGI Process Manager: php5-fpm. Reloading nginx configuration: nginx. Removing openmediavault-nut ... Stopping NUT - power devices information server and drivers: upsd driver(s). update-rc.d: using dependency based boot sequencing Stopping NUT - power device monitor and shutdown controller: nut-client. update-rc.d: using dependency based boot sequencing Stopping NUT - power device monitor and shutdown controller: nut-client. update-rc.d: using dependency based boot sequencing update-rc.d: error: no runlevel symlinks to modify, aborting! <SNIP> Removing openmediavault-sabnzbd ... Purging configuration files for openmediavault-sabnzbd ... userdel: sabnzbd mail spool (/var/mail/sabnzbd) not found dpkg: warning: while removing openmediavault-sabnzbd, directory '/opt' not empty so not removed Removing openmediavault-headphones ... Stopping headphones Purging configuration files for openmediavault-headphones ... userdel: headphones mail spool (/var/mail/headphones) not found Removing openmediavault-couchpotato ... Stopping couchpotato Purging configuration files for openmediavault-couchpotato ... userdel: couchpotato mail spool (/var/mail/couchpotato) not found Removing openmediavault-virtualbox ... Reloading nginx configuration: nginx. Reloading PHP5 FastCGI Process Manager: php5-fpm. Purging configuration files for openmediavault-virtualbox ... Removing openmediavault-shellinabox ... Restarting nginx: nginx. Purging configuration files for openmediavault-shellinabox ... Removing openmediavault-mysql ... Reloading nginx configuration: nginx. Reloading PHP5 FastCGI Process Manager: php5-fpm. Purging configuration files for openmediavault-mysql ... Removing openmediavault-letsencrypt ... Purging configuration files for openmediavault-letsencrypt ... Removing openmediavault-transmissionbt ... Stopping bittorrent daemon: transmission-daemon. Purging configuration files for openmediavault-transmissionbt ... Removing openmediavault-snapraid ... Purging configuration files for openmediavault-snapraid ... Removing openmediavault-rsnapshot ... Purging configuration files for openmediavault-rsnapshot ... Removing openmediavault-remoteshare ... Purging configuration files for openmediavault-remoteshare ... Removing openmediavault-omvextrasorg ... Purging configuration files for openmediavault-omvextrasorg ... Removing openmediavault-locate ... Purging configuration files for openmediavault-locate ... Removing openmediavault-ddclient ... Purging configuration files for openmediavault-ddclient ... Removing openmediavault-backup ... Please click on Install button. Purging configuration files for openmediavault-backup ... Removing openmediavault ... Purging configuration files for openmediavault ... dpkg: warning: while removing openmediavault, directory '/etc/nginx/openmediavault-webgui.d' not empty so not removed dpkg: warning: while removing openmediavault, directory '/etc/openmediavault' not empty so not removed dpkg: warning: while removing openmediavault, directory '/var/cache/openmediavault/archives' not empty so not removed dpkg: warning: while removing openmediavault, directory '/var/www/openmediavault/js/omv/util' not empty so not removed dpkg: warning: while removing openmediavault, directory '/var/log/openmediavault' not empty so not removed dpkg: warning: while removing openmediavault, directory '/var/lib/openmediavault/apt' not empty so not removed dpkg: warning: while removing openmediavault, directory '/var/lib/openmediavault/cron.d' not empty so not removed dpkg: warning: while removing openmediavault, directory '/var/lib/openmediavault/ssh/authorized_keys' not empty so not removed Removing nginx ... run-parts: failed to open directory /etc/apt/post-invoke.d: No such file or directory root@RADNAS:~# apt-get install nginx Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apt-transport-https avahi-daemon avahi-utils bc beep cifs-utils collectd collectd-core cpufrequtils cron-apt curlftpfs davfs2 dbconfig-common extundelete fail2ban fontconfig fuse-utils gdisk git git-man glusterfs-client glusterfs-common hdparm ifenslave-2.6 libaio1 libasound2 libasyncns0 libaudio2 libavahi-client3 libavahi-common-data libavahi-common3 libavahi-core7 libcaca0 libcairo2 libcap-ng0 libcpufreq0 libcrypt-openssl-random-perl libcrypt-passwdmd5-perl libcups2 libcurl3-gnutls libdaemon0 libdatrie1 libdbd-mysql-perl libdbi-perl libdbi1 libdevmapper-event1.02.1 libdirectfb-1.2-9 libdrm2 liberror-perl libflac8 libgl1-mesa-glx libglapi-mesa libibverbs1 libice6 libicu48 libio-socket-ssl-perl libjavascript-minifier-xs-perl libjs-extjs5 libjson-perl libjson0 liblchown-perl liblcms1 liblocale-po-perl libltdl7 libmcrypt4 libminiupnpc5 libmng1 libmysqlclient18 libnatpmp1 libneon27-gnutls libnet-ssleay-perl libnss-mdns libntfs10 libogg0 libossp-uuid16 libpango1.0-0 libperl5.14 libpixman-1-0 libpq5 libpulse0 libqt4-network libqt4-opengl libqt4-xml libqtcore4 libqtdbus4 libqtgui4 librrd4 libsdl1.2debian libsensors4 libsm6 libsndfile1 libsnmp-base libsnmp15 libtalloc2 libtdb1 libthai-data libthai0 libtiff4 libts-0.0-0 libvorbis0a libvorbisenc2 libvpx1 libwbclient0 libx11-xcb1 libxcb-glx0 libxcb-render0 libxcb-shm0 libxcursor1 libxdamage1 libxext6 libxfixes3 libxft2 libxi6 libxinerama1 libxmu6 libxrender1 libxt6 libxtst6 libxxf86vm1 lm-sensors lvm2 makepasswd monit mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 mywebsql ntfs-3g nut owncloud par2 php-json-schema php-xml-parser php5-gd php5-intl php5-mcrypt php5-mysqlnd php5-pam php5-pgsql php5-proctitle php5-sqlite phpvirtualbox plexmediaserver pm-utils proftpd-basic proftpd-mod-vroot python-apt-common python-central python-cheetah python-configobj python-feedparser python-openssl python-support python-yenc python3 python3-apt python3-minimal python3.2 python3.2-minimal quotatool rrdcached rrdtool rsnapshot rsync samba samba-common samba-common-bin sdparm shellinabox smartmontools snapraid snmpd socat sshfs testdisk tftpd-hpa transmission-cli transmission-common transmission-daemon tsconf unrar uuid virtualbox-4.3 virtualbox-extpack-installer wpasupplicant x11-common xmlstarlet Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: nginx Selecting previously unselected package nginx. (Reading database ... 76570 files and directories currently installed.) Unpacking nginx (from .../nginx_1.2.1-2.2+wheezy4_all.deb) ... Setting up nginx (1.2.1-2.2+wheezy4) ... root@RADNAS:~# service nginx status [ ok ] nginx is running.
-
Hi All,
After having issues with the "client max body size" showing "M" rather than sowing 20M for example, I read a post where they advised to purge nginx. Uh oh..... my box is broken. I have reinstalled nginx and i have the web console working, but all my applications arent appearing, and none of the services for these are working, eg Couchpotato, virtualbox, sab etc and my fileshares cant connect...
Im not the best linux admin, hence breaking the box, so need some assistanceWhat can I do from here?
Code
Alles anzeigenroot@RADNAS:~# dpkg -l grep openmediavault Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=====================================================-===============================-===============================-===================================================================================== ii grep 2.12-2 amd64 GNU grep, dpkg-query: no packages found matching openmediavault root@RADNAS:~# apt-get install openmediavault apt-transport-https avahi-utils bc cifs-utils curlftpfs davfs2 dbconfig-common extundelete fail2ban fuse-utils git git-man glusterfs-client glusterfs-common libasound2 libasyncns0 libaudio2 libcaca0 libcry libcrypt-passwdmd5-perl libdirectfb-1.2-9 libdrm2 liberror-perl libflac8 libgl1-mesa-glx libglapi-mesa libibverbs1 libice6 libio-socket-ssl-perl libjson0 liblchown-perl liblcms1 libmcrypt4 libminiupnpc5 li libneon27-gnutls libnet-ssleay-perl libntfs10 libogg0 libpulse0 libqt4-network libqt4-opengl libqt4-xml libqtcore4 libqtdbus4 libqtgui4 libsdl1.2debian libsm6 libsndfile1 libtiff4 libts-0.0-0 libvorbis0a l libx11-xcb1 libxcb-glx0 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxinerama1 libxmu6 libxt6 libxtst6 libxxf86vm1 makepasswd mywebsql owncloud par2 php-xml-parser php5-gd php5-intl php5-mcrypt ph php5-sqlite phpvirtualbox plexmediaserver python-central python-cheetah python-configobj python-feedparser python-openssl python-support python-yenc rsnapshot shellinabox snapraid sshfs testdisk transmissi transmission-daemon tsconf unrar virtualbox-4.3 virtualbox-extpack-installer x11-common Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: openmediavault 0 upgraded, 1 newly installed, 0 to remove and 74 not upgraded. Need to get 0 B/806 kB of archives. After this operation, 5,624 kB of additional disk space will be used. Selecting previously unselected package openmediavault. (Reading database ... 76576 files and directories currently installed.) Unpacking openmediavault (from .../openmediavault_2.2.6_all.deb) ... Setting up openmediavault (2.2.6) ... Updating local package archive ... Updating init scripts actions ... Stopping NTP server: ntpd. update-rc.d: using dependency based boot sequencing Stopping S.M.A.R.T. daemon: smartd. update-rc.d: using dependency based boot sequencing Stopping HPA's tftpd: in.tftpd. update-rc.d: using dependency based boot sequencing Stopping rsync daemon: rsync. Stopping OpenBSD Secure Shell server: sshd. update-rc.d: using dependency based boot sequencing update-rc.d: using dependency based boot sequencing Stopping network management services: snmpd snmptrapd. insserv: warning: current start runlevel(s) (empty) of script `tftpd-hpa' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (1 2 3 4 5) of script `tftpd-hpa' overrides LSB defaults (1). insserv: warning: current start runlevel(s) (empty) of script `ntp' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ntp' overrides LSB defaults (empty). insserv: warning: current start runlevel(s) (empty) of script `smartmontools' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (1 2 3 4 5) of script `smartmontools' overrides LSB defaults (1). insserv: can not remove(../rc2.d/K03ntp): No such file or directory insserv: can not remove(../rc4.d/K03smartmontools): No such file or directory insserv: can not remove(../rc4.d/K03ntp): No such file or directory update-rc.d: using dependency based boot sequencing insserv: can not remove(../rc5.d/K03ssh): No such file or directory insserv: can not remove(../rc5.d/K03smartmontools): No such file or directory insserv: can not remove(../rc5.d/K03ntp): No such file or directory Stopping ftp server: proftpd. update-rc.d: using dependency based boot sequencing insserv: warning: current start runlevel(s) (empty) of script `rsync' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (2 3 4 5) of script `rsync' overrides LSB defaults (empty). insserv: warning: current start runlevel(s) (empty) of script `ssh' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (2 3 4) of script `ssh' overrides LSB defaults (empty). Stopping NFS kernel daemon: mountd nfsd. insserv: can not remove(../rc3.d/K03ssh): No such file or directory Unexporting directories for NFS kernel daemon...insserv: warning: current start runlevel(s) (empty) of script `proftpd' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `proftpd' overrides LSB defaults (0 1 6). insserv: warning: current start runlevel(s) (empty) of script `snmpd' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `snmpd' overrides LSB defaults (0 1 6). insserv: warning: current start runlevel(s) (empty) of script `snmpd' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `snmpd' overrides LSB defaults (0 1 6). . update-rc.d: using dependency based boot sequencing Stopping Samba daemons: nmbdinsserv: warning: current start runlevel(s) (empty) of script `nfs-kernel-server' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `nfs-kernel-server' overrides LSB defaults (0 1 6). smbd. update-rc.d: using dependency based boot sequencing Stopping Postfix Mail Transport Agent: postfix. Configuring web server update-rc.d: using dependency based boot sequencing insserv: warning: current start runlevel(s) (empty) of script `samba' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `samba' overrides LSB defaults (0 1 6). update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match openmediavault Default-Start values (S) update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match openmediavault Default-Stop values (none) update-rc.d: using dependency based boot sequencing update-rc.d: using dependency based boot sequencing update-rc.d: using dependency based boot sequencing Site configuration file 'default' not found. Site configuration file 'openmediavault-webgui' is already enabled. insserv: warning: current start runlevel(s) (empty) of script `postfix' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `postfix' overrides LSB defaults (0 1 6). insserv: warning: current start runlevel(s) (empty) of script `postfix' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `postfix' overrides LSB defaults (0 1 6). update-initramfs: Generating /boot/initrd.img-3.16.0-0.bpo.4-amd64 W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. W: mdadm: no arrays defined in configuration file. update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64 E: intel-microcode: unsupported kernel version! W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. W: mdadm: no arrays defined in configuration file. Restarting services ... Restarting periodic command scheduler: cronStopping periodic command scheduler: cron. Starting periodic command scheduler: cron. Restarting watchdog: Stopping watchdog daemon... Starting watchdog daemon.... Restarting RRDtool data caching daemon: rrdcached. Restarting statistics collection and monitoring daemon: collectd. Reloading PHP5 FastCGI Process Manager: php5-fpm. Restarting nginx: nginx. Stopping daemon monitor: monit. Starting daemon monitor: monit. Restarting Avahi mDNS/DNS-SD Daemon: avahi-daemon. Updating configuration ... Processing triggers for openmediavault ... Restarting engine daemon ... monit: Cannot connect to the monit daemon. Did you start it with http support? Restarting OpenMediaVault engine daemon: omv-engined. Updating locale files ... Updating file permissions ... Purging internal cache ... root@RADNAS:~# service nginx status nginx is running. root@RADNAS:~# dpkg -l grep openmediavault Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=====================================================-===============================-===============================-===================================================================================== ii grep 2.12-2 amd64 GNU grep, egrep and fgrep ii openmediavault 2.2.6 all Open network attached storage solution root@RADNAS:~#
-
More infor here:
Code
Alles anzeigenroot@RADNAS:~# iptables -L -v Chain INPUT (policy ACCEPT 50831 packets, 9161K bytes) pkts bytes target prot opt in out source destination 275K 44M AS0_ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED 33321 5224K AS0_ACCEPT all -- lo any anywhere anywhere 0 0 AS0_IN_PRE all -- any any anywhere anywhere mark match 0x2000000/0x2000000 0 0 AS0_ACCEPT tcp -- any any anywhere RADNAS.local state NEW tcp dpt:915 0 0 AS0_ACCEPT tcp -- any any anywhere RADNAS.local state NEW tcp dpt:914 0 0 AS0_ACCEPT udp -- any any anywhere RADNAS.local state NEW udp dpt:918 0 0 AS0_ACCEPT udp -- any any anywhere RADNAS.local state NEW udp dpt:917 0 0 AS0_WEBACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED 0 0 AS0_WEBACCEPT tcp -- any any anywhere RADNAS.local state NEW tcp dpt:943 35 2232 fail2ban-owncloud tcp -- any any anywhere anywhere multiport dports http,https,8443 0 0 fail2ban-proftp tcp -- any any anywhere anywhere multiport dports ftp,ftp-data,ftps,ftps-data 2 104 fail2ban-ssh-ddos tcp -- any any anywhere anywhere multiport dports ssh 2 104 fail2ban-ssh tcp -- any any anywhere anywhere multiport dports ssh 0 0 ACCEPT all -- tun0 any anywhere anywhere ctstate ESTABLISHED 0 0 REJECT all -- tun0 any anywhere anywhere reject-with icmp-port-unreachable Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 AS0_ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED 0 0 AS0_IN_PRE all -- any any anywhere anywhere mark match 0x2000000/0x2000000 0 0 AS0_OUT_S2C all -- any as0t+ anywhere anywhere Chain OUTPUT (policy ACCEPT 400K packets, 183M bytes) pkts bytes target prot opt in out source destination 0 0 AS0_OUT_LOCAL all -- any as0t+ anywhere anywhere 0 0 ACCEPT all -- any lo anywhere anywhere owner UID match sabnzbd 0 0 ACCEPT all -- any tun0 anywhere anywhere owner UID match sabnzbd 0 0 ACCEPT all -- any lo anywhere anywhere owner UID match debian-transmission 0 0 ACCEPT all -- any tun0 anywhere anywhere owner UID match debian-transmission 0 0 REJECT all -- any eth0 !192.168.1.0/24 anywhere reject-with icmp-port-unreachable Chain AS0_ACCEPT (7 references) pkts bytes target prot opt in out source destination 308K 49M ACCEPT all -- any any anywhere anywhere Chain AS0_IN (3 references) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- any any anywhere 172.27.224.1 0 0 AS0_IN_POST all -- any any anywhere anywhere Chain AS0_IN_NAT (0 references) pkts bytes target prot opt in out source destination 0 0 MARK all -- any any anywhere anywhere MARK or 0x8000000 0 0 ACCEPT all -- any any anywhere anywhere Chain AS0_IN_POST (1 references) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- any any anywhere 192.168.1.0/24 0 0 AS0_OUT all -- any as0t+ anywhere anywhere 0 0 DROP all -- any any anywhere anywhere Chain AS0_IN_PRE (2 references) pkts bytes target prot opt in out source destination 0 0 AS0_IN all -- any any anywhere 192.168.0.0/16 0 0 AS0_IN all -- any any anywhere 172.16.0.0/12 0 0 AS0_IN all -- any any anywhere 10.0.0.0/8 0 0 ACCEPT all -- any any anywhere anywhere Chain AS0_IN_ROUTE (0 references) pkts bytes target prot opt in out source destination 0 0 MARK all -- any any anywhere anywhere MARK or 0x4000000 0 0 ACCEPT all -- any any anywhere anywhere Chain AS0_OUT (2 references) pkts bytes target prot opt in out source destination 0 0 AS0_OUT_POST all -- any any anywhere anywhere Chain AS0_OUT_LOCAL (1 references) pkts bytes target prot opt in out source destination 0 0 DROP icmp -- any any anywhere anywhere icmp redirect 0 0 ACCEPT all -- any any anywhere anywhere Chain AS0_OUT_POST (1 references) pkts bytes target prot opt in out source destination 0 0 DROP all -- any any anywhere anywhere Chain AS0_OUT_S2C (1 references) pkts bytes target prot opt in out source destination 0 0 AS0_OUT all -- any any anywhere anywhere Chain AS0_WEBACCEPT (2 references) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- any any anywhere anywhere Chain fail2ban-openvpn (0 references) pkts bytes target prot opt in out source destination Chain fail2ban-owncloud (1 references) pkts bytes target prot opt in out source destination 35 2232 RETURN all -- any any anywhere anywhere Chain fail2ban-proftp (1 references) pkts bytes target prot opt in out source destination 0 0 RETURN all -- any any anywhere anywhere Chain fail2ban-ssh (1 references) pkts bytes target prot opt in out source destination 2 104 RETURN all -- any any anywhere anywhere Chain fail2ban-ssh-ddos (1 references) pkts bytes target prot opt in out source destination 2 104 RETURN all -- any any anywhere anywhere root@RADNAS:~#
-
HI All,
I have an issue and looking for some quick help. my current iptables config is the below, cant say I fully understand it all but I've modified what I had originally to route traffic over VPN connections for SABNZBD etc.
At some point my OpenVPN connections are failing as a result and I cant tell where it is getting dropped. I just get an error when trying to connect to my server (OMV is my openvpn server) from my laptop, COULD NO ESTABLISH VPN CONNECTION.
When I clear out the iptables config completely my openvpn client to my server works OK.
I remember when I instlaled openvpnas it created many of these rules, eg the AS0_Accept which confuses the matter and I dont thouroughly understand what they all do....
Can anyone let me know what I can safely modify to make my inbound openvpn conenctions work again?Code
Alles anzeigen-P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -N AS0_ACCEPT -N AS0_IN -N AS0_IN_NAT -N AS0_IN_POST -N AS0_IN_PRE -N AS0_IN_ROUTE -N AS0_OUT -N AS0_OUT_LOCAL -N AS0_OUT_POST -N AS0_OUT_S2C -N AS0_WEBACCEPT -N fail2ban-openvpn -N fail2ban-owncloud -N fail2ban-proftp -N fail2ban-ssh -N fail2ban-ssh-ddos -A INPUT -m state --state RELATED,ESTABLISHED -j AS0_ACCEPT -A INPUT -i lo -j AS0_ACCEPT -A INPUT -m mark --mark 0x2000000/0x2000000 -j AS0_IN_PRE -A INPUT -d 192.168.1.10/32 -p tcp -m state --state NEW -m tcp --dport 915 -j AS0_ACCEPT -A INPUT -d 192.168.1.10/32 -p tcp -m state --state NEW -m tcp --dport 914 -j AS0_ACCEPT -A INPUT -d 192.168.1.10/32 -p udp -m state --state NEW -m udp --dport 918 -j AS0_ACCEPT -A INPUT -d 192.168.1.10/32 -p udp -m state --state NEW -m udp --dport 917 -j AS0_ACCEPT -A INPUT -m state --state RELATED,ESTABLISHED -j AS0_WEBACCEPT -A INPUT -d 192.168.1.10/32 -p tcp -m state --state NEW -m tcp --dport 943 -j AS0_WEBACCEPT -A INPUT -p tcp -m multiport --dports 80,443,8443 -j fail2ban-owncloud -A INPUT -p tcp -m multiport --dports 21,20,990,989 -j fail2ban-proftp -A INPUT -p tcp -m multiport --dports 22 -j fail2ban-ssh-ddos -A INPUT -p tcp -m multiport --dports 22 -j fail2ban-ssh -A INPUT -i tun0 -m conntrack --ctstate ESTABLISHED -j ACCEPT -A INPUT -i tun0 -j REJECT --reject-with icmp-port-unreachable -A FORWARD -m state --state RELATED,ESTABLISHED -j AS0_ACCEPT -A FORWARD -m mark --mark 0x2000000/0x2000000 -j AS0_IN_PRE -A FORWARD -o as0t+ -j AS0_OUT_S2C -A OUTPUT -o as0t+ -j AS0_OUT_LOCAL -A OUTPUT -o lo -m owner --uid-owner 1003 -j ACCEPT -A OUTPUT -o tun0 -m owner --uid-owner 1003 -j ACCEPT -A OUTPUT -o lo -m owner --uid-owner 115 -j ACCEPT -A OUTPUT -o tun0 -m owner --uid-owner 115 -j ACCEPT -A OUTPUT ! -s 192.168.1.0/24 -o eth0 -j REJECT --reject-with icmp-port-unreachable -A AS0_ACCEPT -j ACCEPT -A AS0_IN -d 172.27.224.1/32 -j ACCEPT -A AS0_IN -j AS0_IN_POST -A AS0_IN_NAT -j MARK --set-xmark 0x8000000/0x8000000 -A AS0_IN_NAT -j ACCEPT -A AS0_IN_POST -d 192.168.1.0/24 -j ACCEPT -A AS0_IN_POST -o as0t+ -j AS0_OUT -A AS0_IN_POST -j DROP -A AS0_IN_PRE -d 192.168.0.0/16 -j AS0_IN -A AS0_IN_PRE -d 172.16.0.0/12 -j AS0_IN -A AS0_IN_PRE -d 10.0.0.0/8 -j AS0_IN -A AS0_IN_PRE -j ACCEPT -A AS0_IN_ROUTE -j MARK --set-xmark 0x4000000/0x4000000 -A AS0_IN_ROUTE -j ACCEPT -A AS0_OUT -j AS0_OUT_POST -A AS0_OUT_LOCAL -p icmp -m icmp --icmp-type 5 -j DROP -A AS0_OUT_LOCAL -j ACCEPT -A AS0_OUT_POST -j DROP -A AS0_OUT_S2C -j AS0_OUT -A AS0_WEBACCEPT -j ACCEPT -A fail2ban-owncloud -j RETURN -A fail2ban-proftp -j RETURN -A fail2ban-ssh -j RETURN -A fail2ban-ssh-ddos -j RETURN root@RADNAS:~#
-
Thanks Ryan,...
remember the issue I had earlier with the clonezilla.. in OMV1 for some reason the VM wasn't booting clonezilla through virtualbox.. it was part loading and then freezing so I could never test the restore. I was running both physical and virtual OMV at OMV1 when doing this testing.
I've since rebuilt a test VM on OMV2.0 and that is loading clonezilla OK so I've used gparted tonight to increase the size temporarily on the VM drive to test that the restore works. If I know its good, I can restore this to my physical box at any time in the future. I've gotten it to restore to my test VM, but I'll have to test it tomorrrow as its getting too late. -
another quick question - are clonezilla backups generally viewable in Windows OS? I have three USB drives, and only one is recognised by windows?
-
My problem is my OS drive is 256GB So I need to have this available for a test restore.
Has there been reports of restoring a backup failing or is it pretty seamless? -
Hi All,
I have a number of updates available to OMV 2.1 and whilst I have everything working it is nice.
I am cautious about applying updates via the update manager incase it does break something.There are plenty of updates there, ranging from basefiles, libbind, openmediavault2.1.3, php* etc all in all probably around about 30 updates ready to go.
Whats the best approach here. I do backups via clonezilla but I've never actually had to test the restore of the backup so I dont want to break it and learn the hard way.
Thoughts and ideas from more senior linux members?
-
Im running Kodi on a RPI2 on my home TB and it connects to OMV for media. Kodi runs great, and it is worlds apart from a WDTV and a USB HDD I had before
-
Hi Solo,
I had issues with permissions and deleted data still appearing on member drives but I suspect this was a AUFS issue so this build I am avoiding it.
Thanks for clarifying I just wanted to ensure I was following best practices on this and it sounds like its still current. -
Hi All,
After a rebuild of OMV on 2.1 I have setup Snapraid 8.1 again and want to know the best way to keep the disks updated automatically.
I used to run nightly the omv-snapraid-diff script but this was quite old and wonder if I still should be using that to automate. I should also mention I had issues with what I supect was AUFS in the past so have taken this out of this particular build, but the issue could have been related to the omv-snapraid-diff script. That particular issue was permissions across files and one drive not getting updated with permissions and deletions causing "invalid device" when accessing files.Is this omv-snapraid-diff script still required or is there some sort of automation built into OMV that I can run through cron?
-
Thanks FT.. I hadnt read before of using symlinks on OMV.
Why do I want to pool? Its my media server, and file server. Media server has many files, large in size and will eventually span drives although not as yet.
Question - If I were to use symlinks on disk 2 and disk 3, can I use SNAPRAID and have a parity disk on disk1 without issue?
-
Hi Guys,
I've rebuilt my OMV1 box with OMV2 and resetup AUFS again. All was working well for a few days but I have the same "invalid device" errors again that I was getting in OMV 1.1 x 4TB parity, content
2 x 4TB, data and content.= 1 AUFS pool and snapraid.
Checking the permissions, again it seems one of the disks isn't updating the permissions, or if a folder is deleted on the pool, it isnt updating the disk event after a sync using th omv-snapraid-diff script. I just want a working solution so I want to know how I should have my media such it is protected by drive failure.
Should I:
1) setup different shared folders on each drive, still running snapraid
2) setup different shared folders on each drive and use maybe rsync to copy the data to alternate drives?
3) Anything else?I dont want to use AUFS anymore, its doing my head in and wasting my time.
-
All,
Just to update based on my experience. I'm just finishing a new OMV 2.0 build with BPorts, and installed mysql 1.0.16 and whilst mysql started OK after install I wasnt able to logon with any credentials. Tried to restart the password through the OMV GUI but this wasn't working either.
Eventually just tried 'root' as username and left the password empty and I was in. I can reset the password through the mysql admin console of mysql only. Havent used the database yet.
This is what I saw for the users - is it normal?Also i noticed in the config file that the server IP was set at 127.0.0.1, so I set to 0.0.0.0 with still no ability to change via GUI.
What could be the issue in regards to not being able to change password via OMV GUI? -
Yup I did, started to copy some data over and realized it was read only.
I guess I'll rebuilt the pool and get back on AUFS again.
-
I did a fresh install of OMV 2 on my NAS box to fix some issues with AUFS. I realised that I may have incorrectly setup the AUFS pool in my first attempt by including parity drive in the pool which I think is incorrect.
I just installed snapraid and I notice that it has an inbuilt POOL function.
Has anyone done any testing of this? I tried to create a pool and I got this error....CodeLoading state from /media/0d3fd1a3-5da6-4fdf-b2d7-9b83e322b0b4/snapraid.content... Cleaning... Pooling... No link created
Code
Alles anzeigenSnapRAID Pool One of the newer features of SnapRAID is the pooling facility. This facility creates a unified view of all the individual files and folders which are spread across the various drives in your Array and displays them as though they were stored on one single huge drive. So, instead of needing to know which drive a particular file was stored on you can instead access it directly via the pool. For example, on each of the drives in my Array I have a folder called "Blu-Rays" and inside there I have a separate folder for each blu-ray movie I own. When I access the Blu-Rays folder via the pool I see all the individual movie folders inside it even tho in reality they are spread across 6 different disks. This makes browsing your movie collection a much more family-friendly affair. You create or update the pool by issuing the following command after having updated the array: snapraid pool - See more at: http://www.havetheknowhow.com/Configure-the-server/Install-SnapRAID.html#sthash.SIjQOHIw.dpuf
-
I didnt .... thanks for pointing out.
looks ok now. -
Hi All,
A finger error had me type in "iptables -F" instead of using the -L. Thankfully I do have a backup of all rules prior to accidentally removing them,I am trying to get them installed as services are not starting, but no matter what I do they are not persistent after a reboot. After installing them via CLI, I do a iptables -L and see them there but the reboot removes them. I also tried creating a file in /etc/network/if-pre-up/iptables and add them there anrd restart the network.
root@NAS:/etc/network/if-pre-up.d# service networking restart
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...run-parts: failed to exec /etc/network/if-pre-up.d/openmediavault-iptables: Exec format error
run-parts: /etc/network/if-pre-up.d/openmediavault-iptables exited with return code 1
run-parts: failed to exec /etc/network/if-pre-up.d/openmediavault-iptables: Exec format error
run-parts: /etc/network/if-pre-up.d/openmediavault-iptables exited with return code 1
run-parts: failed to exec /etc/network/if-pre-up.d/openmediavault-iptables: Exec format error
run-parts: /etc/network/if-pre-up.d/openmediavault-iptables exited with return code 1Can anyone assist with getting them back in again such they are persistant after a reboot (and hopefully all services start as normal).