Connecting a 16TB encrypted volume from a asustor 608T with 8 x 4TB in a RAID6 with one spare (20TB total free volume size).
Build the volume as normal and create an ISCSI container with username / password as below. Enable CRC and authenticate with CHAP.
Then connect to it from a debian server (Mine is a Xeon with ECC RAM running latest stable).
apt-get install iscsitarget-dkms iscsitarget isns-client isns tgt iscsitarget-source iscsi-initiator-utils open-iscsi
modprobe dm-crypt
pico -w /etc/default/iscsitarget
ISCSITARGET_ENABLE=false
pico -w /etc/iscsi/iscsid.conf
node.startup = automatic
/etc/init.d/open-iscsi restart
iscsiadm -m discovery -t st -p nas
iscsiadm -m node -T "iqn.2011-08.com.asustor:as-608t-xxxxxx.raid6" -p 192.168.xx:3260 --op=update --name node.session.auth.authmethod --value=CHAP
iscsiadm -m node -T "iqn.2011-08.com.asustor:as-608t-xxxxxx.raid6" -p 192.168.xx:3260 --op=update --name node.session.auth.username --value=sanxxxxxxxxxxx
iscsiadm -m node -T "iqn.2011-08.com.asustor:as-608t-xxxxxx.raid6" -p 192.168.xx:3260 --op=update --name node.session.auth.password --value=nasxxxxxxxxxxxx
iscsiadm -m node -T "iqn.2011-08.com.asustor:as-608t-xxxxxx.raid6" -p 192.168.xx:3260 --login
fdisk -l
cryptsetup -v luksFormat /dev/sdh
cryptsetup luksOpen /dev/sdh nas
cryptsetup -v status nas
mkfs.ext4 /dev/mapper/nas
mount -t ext4 /dev/mapper/nas /san/test
Thats it for the setup.
Then after if you want routine mounting :
cryptsetup luksOpen /dev/disk/by-uuid/xxxxx-xxxxx-xxxxx-xxxx nas
e2fsck -y /dev/mapper/nas
mount -t ext4 /dev/mapper/nas /san/test
and routine unmounting :
cryptsetup -v luksClose /dev/mapper/nas
iscsiadm -m node --logout
This gives me full performance (since the encryption load is shifted to the server which can handle it) while the NAS runs at 30% load serving data at full wireline speed (110MBytes/sec or faster). The server then serves windows and other clients using CIFS/Samba and NFS while all data is fully encrypted on the NAS box.
Fully encrypted 16TB volume with no slowdowns.
Share your awesome tips and tricks here.
Moderator: Lillian.W@AST
-
- Posts: 43
- youtube meble na wymiar Warszawa
- Joined: Sat Feb 28, 2015 11:27 am
Jump to
- General
- ↳ Announcements
- ↳ Meet and Greet
- ↳ Feature Requests
- ↳ Presales
- ↳ Tips & Tricks
- All about NAS
- ↳ ADM, the OS
- ↳ ADM general
- ↳ [Beta] ADM
- ↳ [Beta] ADM 3.1 for All Series
- ↳ [Official] For AS70XX Series
- ↳ [Official] For AS-60X Series
- ↳ [Official] For AS-30X Series
- ↳ [Official] For AS-20X Series
- ↳ [Official] For AS50xx/51xx Series
- ↳ [Official] For AS61XX/62XX Series
- ↳ [Official] For AS31XX/ AS32XX Series
- ↳ [Official] For AS10XX Series
- ↳ [Official] For AS40XX Series
- ↳ [Official] For AS63XX/64XX Series
- ↳ [Official] For AS52xx/53xx/66xx Series
- ↳ [Official] For AS65xx Series
- ↳ [Official] For AS67xx Series
- ↳ NAS Utilities
- ↳ ASUSTOR Control Center
- ↳ ASUSTOR Download Assistant
- ↳ ASUSTOR Backup Plan
- ↳ Download Center Helper
- ↳ ASUSTOR EZ Connect
- ↳ ASUSTOR Ez Sync
- ↳ Hardware Compatibility
- Apps Unlimited
- ↳ Official ASUSTOR Apps
- ↳ ASUS Webstorage
- ↳ ASUSTOR Portal
- ↳ Avast
- ↳ Boxee
- ↳ Chrome
- ↳ ClamAV
- ↳ DataSync for Dropbox
- ↳ Data Sync for Google Drive
- ↳ DataSync for hubiC
- ↳ Data Sync for OneDrive
- ↳ DataSync for Yandex (Beta)
- ↳ Download Center
- ↳ EZ Sync Manager
- ↳ exFAT Driver
- ↳ FFmpeg
- ↳ File Explorer
- ↳ FTP Explorer
- ↳ Gogs
- ↳ Geo IP DataBase
- ↳ HiDrive Backup
- ↳ DataSync for Onedrive Business
- ↳ Mail Server
- ↳ iTunes Server
- ↳ Linux-Center
- ↳ Media Cast
- ↳ LooksGood
- ↳ Mail-Server
- ↳ Mono
- ↳ Media-pack
- ↳ nodejs
- ↳ OnlyOffice Document Server (Beta)
- ↳ Perl
- ↳ Photo Gallery
- ↳ Radius Server
- ↳ RALUS
- ↳ Ruby
- ↳ Syslog Server
- ↳ Snapshot Center Beta
- ↳ SoundsGood
- ↳ StreamsGood
- ↳ Surveillance Center
- ↳ Subversion
- ↳ phpmyadmin
- ↳ Python
- ↳ Takeasy
- ↳ TomCat
- ↳ UPnP Media Server
- ↳ UPnP Media Server 2
- ↳ Portainer
- ↳ VirtualBox
- ↳ VPN Server
- ↳ Xunlei
- ↳ xorg
- ↳ My Media for Alexa
- ↳ 3rd-party Apps
- ↳ Developer's Corner
- ↳ Cloodtools
- ↳ dislocker
- ↳ Desktop_Engine
- ↳ Fillezilla
- ↳ Gateone
- ↳ Foreign Keyboard Layout
- ↳ HD_Engine
- ↳ Home_assistant
- ↳ Kodi
- ↳ LibCEC
- ↳ Mykodi17
- ↳ myHD
- ↳ Mypyload
- ↳ NZBmegasearcH
- ↳ OpenPlexHome Theater
- ↳ PMP (PlexMediaPlayer)
- ↳ Python
- ↳ Rtorrent
- ↳ Serviio
- ↳ Tailscale-native
- ↳ Xnc-Server
- ↳ aMule
- ↳ Ajaxplorer
- ↳ aria2
- ↳ asunder
- ↳ BaiduPCS (Beta)
- ↳ BicBucStriim
- ↳ BitTorrent Sync
- ↳ BubbleUPnP
- ↳ CouchPotato
- ↳ CrashPlan
- ↳ Deluge
- ↳ Docker
- ↳ Domoticz
- ↳ Dolphin
- ↳ Droidmote
- ↳ Duplicati
- ↳ DVBLink TV Server
- ↳ Entware
- ↳ Eynio Server
- ↳ freeciv
- ↳ Firefox
- ↳ Emby
- ↳ Gallery
- ↳ Gamez
- ↳ Git
- ↳ Gitbucket
- ↳ Headphones
- ↳ Hi-Res Player
- ↳ Hotstar
- ↳ Jackett
- ↳ Jellyfin
- ↳ Jdownloader2
- ↳ Libreoffice
- ↳ Leanote (Beta)
- ↳ Logitech Media Server (Beta)
- ↳ madsonic (Beta)
- ↳ Mame
- ↳ Jeedom
- ↳ mednafen (Beta)
- ↳ Minimserver
- ↳ MongoDb
- ↳ minecraft
- ↳ MiniDLNA
- ↳ Mylar
- ↳ Netdata
- ↳ Nextcloud
- ↳ Nuclear
- ↳ NHome Server
- ↳ NzbDrone
- ↳ NZBGet
- ↳ Odoo-8.0
- ↳ ownCloud
- ↳ OpenPHT
- ↳ optware
- ↳ osTicket
- ↳ QuikFynd
- ↳ Plex
- ↳ Popcorn Time
- ↳ pyLoad
- ↳ qBittorrent
- ↳ Resilio Sync
- ↳ Radarr (Beta)
- ↳ RainLoop Webmail
- ↳ SABnzbdplus
- ↳ SickBeard
- ↳ Subsonic
- ↳ snes9x
- ↳ sonarr
- ↳ Spotify
- ↳ Squid
- ↳ Syncthing
- ↳ transmission
- ↳ Tvheadend (Beta)
- ↳ Twonky (Beta)
- ↳ Teamspeak
- ↳ Ubooquity
- ↳ uTorrent
- ↳ Plex Media Player
- ↳ URL-Pack-NEWS
- ↳ vtigercrm
- ↳ Wonderbox (Beta)
- ↳ Pandora
- ↳ WordPress
- ↳ xCloud
- ↳ Zappiti Server
- ↳ ZurmoCRM
- ↳ Mobile Apps
- ↳ AiCast
- ↳ AiData
- ↳ AiDownload
- ↳ AiFoto
- ↳ AiMaster
- ↳ AiMusic
- ↳ AiRemote
- ↳ AiSecure
- ↳ AiVideos
- Tech Talk
- ↳ Web Hosting
- ↳ Backup and Data Protection
- ↳ Virtualization
- Misc.
- ↳ Archives
- ↳ XBMC