Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Ubuntu
  4. #
  5.  
  6. set -v
  7.  
  8. apt-get update
  9.  
  10. apt-get install -y ntpdate
  11. apt-get install squid
  12.  
  13. cp /etc/squid/squid.conf /etc/squid/squid.conf.bak
  14.  
  15. cat << EOF > /etc/squid/squid.conf
  16. http_port 3128
  17. http_access allow all
  18. cache allow all
  19. request_header_access Via allow all
  20. EOF
  21.  
  22. service squid restart
  23.  
  24. echo "IP ADDRESS"
  25.  
  26. curl ifconfig.co
  27.  
  28. #Be sure to shutdown/terminate your VM after you are done!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement