73 lines
2.1 KiB
Bash
73 lines
2.1 KiB
Bash
#!/bin/bash
|
|
# vpn tunnel must be operation with dns resolution at 3115 dns server
|
|
|
|
|
|
function mnt3115nas(){
|
|
smount sysadmin@nas.3115.kebler.net:/opt /mnt/3115/nas/opt -p 22
|
|
smount sysadmin@nas.3115.kebler.net:/mnt/data /mnt/3115/nas/data -p 22
|
|
smount sysadmin@nas.3115.kebler.net:/mnt/backup /mnt/3115/nas/backup -p 22
|
|
smount sysadmin@nas.3115.kebler.net:/home/sysadmin /mnt/3115/nas/sysadmin -p 22
|
|
smount root@nas.3115.kebler.net:/ /mnt/3115/nas/root -p 22
|
|
}
|
|
|
|
function umnt3115nas(){
|
|
usmount /mnt/3115/nas/opt
|
|
usmount /mnt/3115/nas/data
|
|
usmount /mnt/3115/nas/backup
|
|
usmount /mnt/3115/nas/sysadmin
|
|
usmount /mnt/3115/nas/root
|
|
}
|
|
|
|
function mnt3115gate(){
|
|
smount root@grouter.3115.kebler.net:/ /mnt/3115/gate -p 22
|
|
}
|
|
|
|
function umnt3115gate(){
|
|
usmount /mnt/3115/gate
|
|
}
|
|
|
|
|
|
function mntfrodo(){
|
|
smount sysadmin@frodo.kebler.net:/opt /mnt/3115/frodo/opt -p 22
|
|
smount sysadmin@frodo.kebler.net:/home/sysadmin /mnt/3115/frodo/sysadmin -p 22
|
|
smount sysadmin@frodo.kebler.net:/mnt/data /mnt/3115/frodo/data -p 22
|
|
smount root@frodo.kebler.net:/ /mnt/3115/frodo/root -p 22
|
|
}
|
|
|
|
function umntfrodo(){
|
|
usmount /mnt/3115/frodo/opt
|
|
usmount /mnt/3115/frodo/sysadmin
|
|
usmount /mnt/3115/frodo/data
|
|
usmount /mnt/3115/frodo/root
|
|
}
|
|
|
|
function mnt3115hass(){
|
|
smount root@hassio.3115.kebler.net:/ /mnt/3115/hass -p 22
|
|
}
|
|
|
|
function umnt3115hass(){
|
|
usmount /mnt/3115/hass
|
|
}
|
|
|
|
# via NAT at WAN interface (mostly to support old gateway)
|
|
|
|
function mnt3115gatew(){
|
|
smount sysadmin@3115.kebler.net:/opt /mnt/3115/wgate/opt -p 22
|
|
smount sysadmin@3115.kebler.net:/home/sysadmin /mnt/3115/wgate/sysadmin -p 22
|
|
smount root@3115.kebler.net:/ /mnt/3115/wgate/root -p 22
|
|
}
|
|
|
|
function umnt3115gatew(){
|
|
usmount /mnt/3115/wgate/opt
|
|
usmount /mnt/3115/wgate/sysadmin
|
|
usmount /mnt/3115/wgate/root
|
|
}
|
|
|
|
function mnt3115nasw(){
|
|
smount sysadmin@3115.kebler.net:/opt /mnt/3115/nas/opt -p 322
|
|
smount sysadmin@3115.kebler.net:/mnt/data /mnt/3115/nas/data -p 322
|
|
smount sysadmin@3115.kebler.net:/mnt/backup /mnt/3115/nas/backup -p 322
|
|
smount sysadmin@3115.kebler.net:/home/sysadmin /mnt/3115/nas/sysadmin -p 322
|
|
smount root@3115.kebler.net:/ /mnt/3115/nas/root -p 322
|
|
}
|