nfs.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/sh
  2. echo -e '\033[35m
  3. __
  4. _ __ / _|___
  5. | _ \| |_/ __|
  6. | | | | _\__ \
  7. |_| |_|_| |___/
  8. \033[0m'
  9. echo -e "\033[35;1mLEMP server (Nginx Mysql Php-fpm) \033[0m"
  10. apt install nfs-kernel-server
  11. vim /etc/exports
  12. mkdir /home/proxmox-backup
  13. mkdir /home/urbackup
  14. ufw allow from 37.187.134.71 to any port nfs
  15. ufw allow from 37.187.134.71 to any port 111
  16. ufw allow proto udp from 37.187.134.71 to any port 32764:32769
  17. ufw allow proto tcp from 37.187.134.71 to any port 32764:32769
  18. ufw allow from 37.187.93.155 to any port nfs
  19. ufw allow from 37.187.93.155 to any port 111
  20. ufw allow proto udp from 37.187.93.155 to any port 32764:32769
  21. ufw allow proto tcp from 37.187.93.155 to any port 32764:32769
  22. ufw allow from 37.187.128.147 to any port nfs
  23. ufw allow from 37.187.128.147 to any port 111
  24. ufw allow proto udp from 37.187.128.147 to any port 32764:32769
  25. ufw allow proto tcp from 37.187.128.147 to any port 32764:32769
  26. ufw allow from 94.23.8.104 to any port nfs
  27. ufw allow from 94.23.8.104 to any port 111
  28. ufw allow proto udp from 94.23.8.104 to any port 32764:32769
  29. ufw allow proto tcp from 94.23.8.104 to any port 32764:32769
  30. systemctl restart nfs-server
  31. systemctl enable nfs-server
  32. vim /etc/ufw/user.rules