Jun 1, 2020: update
This commit is contained in:
		
							
								
								
									
										35
									
								
								configs/etc/ctl.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								configs/etc/ctl.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,35 @@
 | 
			
		||||
portal-group pg0 {
 | 
			
		||||
	discovery-auth-group no-authentication
 | 
			
		||||
	listen 0.0.0.0
 | 
			
		||||
	listen [::]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
target iqn.nas.ahlawat.com:lab13 {
 | 
			
		||||
#	auth-group no-authentication
 | 
			
		||||
	portal-group pg0
 | 
			
		||||
    chap user secretsecret
 | 
			
		||||
	lun 0 {
 | 
			
		||||
		path /dev/zvol/ship/raw/lab13
 | 
			
		||||
		size 128G
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
target iqn.nas.ahlawat.com:lab17 {
 | 
			
		||||
#	auth-group no-authentication
 | 
			
		||||
	portal-group pg0
 | 
			
		||||
    chap user secretsecret
 | 
			
		||||
	lun 0 {
 | 
			
		||||
		path /dev/zvol/ship/raw/lab17
 | 
			
		||||
		size 128G
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
target iqn.nas.ahlawat.com:lab18 {
 | 
			
		||||
#	auth-group no-authentication
 | 
			
		||||
	portal-group pg0
 | 
			
		||||
    chap user secretsecret
 | 
			
		||||
	lun 0 {
 | 
			
		||||
		path /dev/zvol/ship/raw/lab18
 | 
			
		||||
		size 128G
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										3
									
								
								configs/etc/exports
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								configs/etc/exports
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
/mnt/ship/pxe/FreeBSD11 -alldirs -maproot=root
 | 
			
		||||
/mnt/ship/pxe/FreeBSD12 -alldirs -maproot=root
 | 
			
		||||
/mnt/ship/pxe/FreeBSD13 -alldirs -maproot=root
 | 
			
		||||
							
								
								
									
										1
									
								
								configs/pxe/.ssh/authorized_keys
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								configs/pxe/.ssh/authorized_keys
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAGJkR8PJBp68y44o4H44HueSGYbyg1+8VJP43YEj4M7ssKagMTH5QQEifU1gepdLgoK7mr+9yLpNXUlzT56FOcpQ3cyjPtp58N3384FrewAgiyA2dqwSxN/UsPXXA5F88HxcuhKXfEZgugC92W3LL8/U8dC/nSwj1hFVjWf75OpXqTjJFaBKhVYDjo75OfkzIwWQLmrFO/VF9TmA41eRn/yXZs+S504iVV+0dK6MgkN5FJoPj+XsKNr1pgQTIn63AtdLB2wW4gafWTQI6SMBYUPkfcrFdLR73+g2+IOSiLdB37us2XXtwHw1shJwLlz0j+1EVjZjOFAWILDNwrzJt ahlawat@ahlawat.com
 | 
			
		||||
							
								
								
									
										35
									
								
								configs/pxe/ctl.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								configs/pxe/ctl.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,35 @@
 | 
			
		||||
portal-group pg0 {
 | 
			
		||||
	discovery-auth-group no-authentication
 | 
			
		||||
	listen 0.0.0.0
 | 
			
		||||
	listen [::]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
target iqn.nas.ahlawat.com:lab13 {
 | 
			
		||||
#	auth-group no-authentication
 | 
			
		||||
	portal-group pg0
 | 
			
		||||
    chap user secretsecret
 | 
			
		||||
	lun 0 {
 | 
			
		||||
		path /dev/zvol/ship/raw/lab13
 | 
			
		||||
		size 128G
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
target iqn.nas.ahlawat.com:lab17 {
 | 
			
		||||
#	auth-group no-authentication
 | 
			
		||||
	portal-group pg0
 | 
			
		||||
    chap user secretsecret
 | 
			
		||||
	lun 0 {
 | 
			
		||||
		path /dev/zvol/ship/raw/lab17
 | 
			
		||||
		size 128G
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
target iqn.nas.ahlawat.com:lab18 {
 | 
			
		||||
#	auth-group no-authentication
 | 
			
		||||
	portal-group pg0
 | 
			
		||||
    chap user secretsecret
 | 
			
		||||
	lun 0 {
 | 
			
		||||
		path /dev/zvol/ship/raw/lab18
 | 
			
		||||
		size 128G
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										3
									
								
								configs/pxe/exports
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								configs/pxe/exports
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
/mnt/ship/pxe/FreeBSD11 -alldirs -maproot=root
 | 
			
		||||
/mnt/ship/pxe/FreeBSD12 -alldirs -maproot=root
 | 
			
		||||
/mnt/ship/pxe/FreeBSD13 -alldirs -maproot=root
 | 
			
		||||
							
								
								
									
										3
									
								
								configs/pxe/fstab.11
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								configs/pxe/fstab.11
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
# Device		Mountpoint	FStype	Options		Dump	Pass#
 | 
			
		||||
192.168.0.10:/mnt/ship/pxe/FreeBSD11       /         nfs      rw        0    0
 | 
			
		||||
fdescfs /dev/fd  fdescfs  rw  0  0
 | 
			
		||||
							
								
								
									
										3
									
								
								configs/pxe/fstab.12
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								configs/pxe/fstab.12
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
# Device		Mountpoint	FStype	Options		Dump	Pass#
 | 
			
		||||
192.168.0.10:/mnt/ship/pxe/FreeBSD12       /         nfs      rw        0    0
 | 
			
		||||
fdescfs /dev/fd  fdescfs  rw  0  0
 | 
			
		||||
							
								
								
									
										3
									
								
								configs/pxe/fstab.13
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								configs/pxe/fstab.13
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
# Device		Mountpoint	FStype	Options		Dump	Pass#
 | 
			
		||||
192.168.0.10:/mnt/ship/pxe/FreeBSD13       /         nfs      rw        0    0
 | 
			
		||||
fdescfs /dev/fd  fdescfs  rw  0  0
 | 
			
		||||
							
								
								
									
										7
									
								
								configs/pxe/iscsi.conf.13
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/pxe/iscsi.conf.13
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
t0 {
 | 
			
		||||
	TargetAddress   = 192.168.0.10
 | 
			
		||||
	TargetName      = iqn.nas.ahlawat.com:lab13
 | 
			
		||||
	AuthMethod      = CHAP
 | 
			
		||||
	chapIName       = user
 | 
			
		||||
	chapSecret      = secretsecret
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										7
									
								
								configs/pxe/iscsi.conf.17
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/pxe/iscsi.conf.17
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
t0 {
 | 
			
		||||
	TargetAddress   = 192.168.0.10
 | 
			
		||||
	TargetName      = iqn.nas.ahlawat.com:lab17
 | 
			
		||||
	AuthMethod      = CHAP
 | 
			
		||||
	chapIName       = user
 | 
			
		||||
	chapSecret      = secretsecret
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										7
									
								
								configs/pxe/iscsi.conf.18
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/pxe/iscsi.conf.18
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
t0 {
 | 
			
		||||
	TargetAddress   = 192.168.0.10
 | 
			
		||||
	TargetName      = iqn.nas.ahlawat.com:lab18
 | 
			
		||||
	AuthMethod      = CHAP
 | 
			
		||||
	chapIName       = user
 | 
			
		||||
	chapSecret      = secretsecret
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										6
									
								
								configs/pxe/rc.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								configs/pxe/rc.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
rpc_lockd_enable="YES"
 | 
			
		||||
rpc_statd_enable="YES"
 | 
			
		||||
sshd_enable="YES"
 | 
			
		||||
iscsid_enable="YES"
 | 
			
		||||
iscsictl_enable="YES"
 | 
			
		||||
iscsictl_flags="-Aa"
 | 
			
		||||
							
								
								
									
										8
									
								
								configs/pxe/resolv.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								configs/pxe/resolv.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,8 @@
 | 
			
		||||
# Generated by resolvconf
 | 
			
		||||
search ahlawat.com
 | 
			
		||||
nameserver 192.168.0.5
 | 
			
		||||
nameserver 2603:3024:3f6:e1::5
 | 
			
		||||
nameserver 2603:3024:3f6:e2::5
 | 
			
		||||
nameserver 2603:3024:3f6:e5::5
 | 
			
		||||
nameserver 2603:3024:3f6:e9::5
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										121
									
								
								configs/pxe/sshd_config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										121
									
								
								configs/pxe/sshd_config
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,121 @@
 | 
			
		||||
#	$OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
 | 
			
		||||
#	$FreeBSD: head/crypto/openssh/sshd_config 357926 2020-02-14 19:06:59Z emaste $
 | 
			
		||||
 | 
			
		||||
# This is the sshd server system-wide configuration file.  See
 | 
			
		||||
# sshd_config(5) for more information.
 | 
			
		||||
 | 
			
		||||
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
 | 
			
		||||
 | 
			
		||||
# The strategy used for options in the default sshd_config shipped with
 | 
			
		||||
# OpenSSH is to specify options with their default value where
 | 
			
		||||
# possible, but leave them commented.  Uncommented options override the
 | 
			
		||||
# default value.
 | 
			
		||||
 | 
			
		||||
# Note that some of FreeBSD's defaults differ from OpenBSD's, and
 | 
			
		||||
# FreeBSD has a few additional options.
 | 
			
		||||
 | 
			
		||||
#Port 22
 | 
			
		||||
#AddressFamily any
 | 
			
		||||
#ListenAddress 0.0.0.0
 | 
			
		||||
#ListenAddress ::
 | 
			
		||||
 | 
			
		||||
#HostKey /etc/ssh/ssh_host_rsa_key
 | 
			
		||||
#HostKey /etc/ssh/ssh_host_ecdsa_key
 | 
			
		||||
#HostKey /etc/ssh/ssh_host_ed25519_key
 | 
			
		||||
 | 
			
		||||
# Ciphers and keying
 | 
			
		||||
#RekeyLimit default none
 | 
			
		||||
 | 
			
		||||
# Logging
 | 
			
		||||
#SyslogFacility AUTH
 | 
			
		||||
#LogLevel INFO
 | 
			
		||||
 | 
			
		||||
# Authentication:
 | 
			
		||||
 | 
			
		||||
#LoginGraceTime 2m
 | 
			
		||||
PermitRootLogin yes
 | 
			
		||||
#StrictModes yes
 | 
			
		||||
#MaxAuthTries 6
 | 
			
		||||
#MaxSessions 10
 | 
			
		||||
 | 
			
		||||
#PubkeyAuthentication yes
 | 
			
		||||
 | 
			
		||||
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
 | 
			
		||||
# but this is overridden so installations will only check .ssh/authorized_keys
 | 
			
		||||
AuthorizedKeysFile	.ssh/authorized_keys
 | 
			
		||||
 | 
			
		||||
#AuthorizedPrincipalsFile none
 | 
			
		||||
 | 
			
		||||
#AuthorizedKeysCommand none
 | 
			
		||||
#AuthorizedKeysCommandUser nobody
 | 
			
		||||
 | 
			
		||||
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
 | 
			
		||||
#HostbasedAuthentication no
 | 
			
		||||
# Change to yes if you don't trust ~/.ssh/known_hosts for
 | 
			
		||||
# HostbasedAuthentication
 | 
			
		||||
#IgnoreUserKnownHosts no
 | 
			
		||||
# Don't read the user's ~/.rhosts and ~/.shosts files
 | 
			
		||||
#IgnoreRhosts yes
 | 
			
		||||
 | 
			
		||||
# Change to yes to enable built-in password authentication.
 | 
			
		||||
#PasswordAuthentication no
 | 
			
		||||
#PermitEmptyPasswords no
 | 
			
		||||
 | 
			
		||||
# Change to no to disable PAM authentication
 | 
			
		||||
#ChallengeResponseAuthentication yes
 | 
			
		||||
 | 
			
		||||
# Kerberos options
 | 
			
		||||
#KerberosAuthentication no
 | 
			
		||||
#KerberosOrLocalPasswd yes
 | 
			
		||||
#KerberosTicketCleanup yes
 | 
			
		||||
#KerberosGetAFSToken no
 | 
			
		||||
 | 
			
		||||
# GSSAPI options
 | 
			
		||||
#GSSAPIAuthentication no
 | 
			
		||||
#GSSAPICleanupCredentials yes
 | 
			
		||||
 | 
			
		||||
# Set this to 'no' to disable PAM authentication, account processing,
 | 
			
		||||
# and session processing. If this is enabled, PAM authentication will
 | 
			
		||||
# be allowed through the ChallengeResponseAuthentication and
 | 
			
		||||
# PasswordAuthentication.  Depending on your PAM configuration,
 | 
			
		||||
# PAM authentication via ChallengeResponseAuthentication may bypass
 | 
			
		||||
# the setting of "PermitRootLogin without-password".
 | 
			
		||||
# If you just want the PAM account and session checks to run without
 | 
			
		||||
# PAM authentication, then enable this but set PasswordAuthentication
 | 
			
		||||
# and ChallengeResponseAuthentication to 'no'.
 | 
			
		||||
#UsePAM yes
 | 
			
		||||
 | 
			
		||||
#AllowAgentForwarding yes
 | 
			
		||||
#AllowTcpForwarding yes
 | 
			
		||||
#GatewayPorts no
 | 
			
		||||
#X11Forwarding yes
 | 
			
		||||
#X11DisplayOffset 10
 | 
			
		||||
#X11UseLocalhost yes
 | 
			
		||||
#PermitTTY yes
 | 
			
		||||
#PrintMotd yes
 | 
			
		||||
#PrintLastLog yes
 | 
			
		||||
#TCPKeepAlive yes
 | 
			
		||||
#PermitUserEnvironment no
 | 
			
		||||
#Compression delayed
 | 
			
		||||
#ClientAliveInterval 0
 | 
			
		||||
#ClientAliveCountMax 3
 | 
			
		||||
#UseDNS yes
 | 
			
		||||
#PidFile /var/run/sshd.pid
 | 
			
		||||
#MaxStartups 10:30:100
 | 
			
		||||
#PermitTunnel no
 | 
			
		||||
#ChrootDirectory none
 | 
			
		||||
#UseBlacklist no
 | 
			
		||||
#VersionAddendum FreeBSD-20200214
 | 
			
		||||
 | 
			
		||||
# no default banner path
 | 
			
		||||
#Banner none
 | 
			
		||||
 | 
			
		||||
# override default of no subsystems
 | 
			
		||||
Subsystem	sftp	/usr/libexec/sftp-server
 | 
			
		||||
 | 
			
		||||
# Example of overriding settings on a per-user basis
 | 
			
		||||
#Match User anoncvs
 | 
			
		||||
#	X11Forwarding no
 | 
			
		||||
#	AllowTcpForwarding no
 | 
			
		||||
#	PermitTTY no
 | 
			
		||||
#	ForceCommand cvs server
 | 
			
		||||
		Reference in New Issue
	
	Block a user