Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. sudo setenforce 0
  2.  
  3. vi /etc/selinux/config
  4.  
  5. # use global nameserver using google DNS here
  6. nserver 8.8.8.8
  7. nserver 8.8.8.4
  8.  
  9. # options
  10. daemon
  11. nscache 65536
  12. timeouts 1 5 10 30 180 1800 15 60
  13.  
  14. # authentication mode, you can auth with username and password or from an IP address, see below
  15. auth iponly strong
  16.  
  17. # users list - here if you want to login with username and password
  18. users “username:CL:password”
  19.  
  20. # ip allow list —— if you want to login from an IP address
  21. allow * 82.224.29.140 * *
  22.  
  23. # Must be the same with the username you have in the userlist
  24. allow username * * *
  25.  
  26. # Number of maximum connections 100 is more then enough
  27. maxconn 100
  28.  
  29. # proxy - here you create the socks -p is the port -i the local IP address(the ip you should connect to) and -e is the exit IP address, in case you have more then 1 IP on the server
  30. socks -a -p51365 -i172.22.33.11 -e172.22.33.11
  31.  
  32. # another example with another exit IP address if you have more then 1 ip addresses on the vps
  33. socks -a -p51365 -i172.22.33.11 -e172.33.44.44
  34.  
  35. # feel free to remove the lines with # since they are just comments so you can understand what you are doing and if you have only 1 IP address remove the last example also
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement