Balangkas ng paksa
This part is very easy, just register by the URL and create a Droplet with your first VPS server with 60 days free using(only by this URL), you can select any country you want from the list in the video, for example, if you located in Russia and want to get access some resources like LinkedIn then you can select any countries which will allow this access for you.
For example, it will be a USA proxy server secured with login and password only for your use, and additional security settings with blocking from other resources via Fail2Ban(you can learn more for free when completing this course), and like a bonus you will get free access to additional steps for install and use dedicated and VPS server for 12 months free and more with promo-actions from AWS Amazon, Alibaba, and Google VPS and you will see more ways for setup and work with it via other ways for connecting to your servers via SSH clients with secure keys and using FTP clients to get access to your server files via the same SSH secure access.
We need to make a Database(with user access the DB with login=proxy1 and password=1a968116a6552ee3451a42c1c8! and you must change all passwords later on your own, you will see how to do it in part number 10) and a table where we will store login and password for access sites via our proxy server, so no one else will use it instead of you.
[MariaDB CLI] > CREATE TABLE `passwd`(`user` varchar(32) NOT NULL default '', `password` varchar(35) NOT NULL default '', `enabled` tinyint(1) NOT NULL default '1', `fullname` varchar(60) default NULL, `comment` varchar(60) default NULL, PRIMARY KEY (`user`));
Now a time to configure mysql_module for your Squid proxy server so it can access the DB which we created in the previous part from where Squid will check if login and passwords for proxy authentication are correct or no.
So we will use a command in the Linux console to edit(via Vim (text editor)) these module settings (need to edit like in a video, login, and password from this part which we created to access the DB) like this:
[VIM CLI] now edit the file the same way as in the video(use the cursor on your keyboard to navigate in the file content, for example, press arrow down for go to the down of the file while you not seeing similar data like in the video below, with login and password information for edit)
[VIM CLI] type :w for save the file, you can see how it looks like in the video
We'll connect to our VPS like always via the dashboard panel, via the command-line interface, we'll use the command "mysql" under root user to insert data into the table for add a user which will be used for proxy authentication(later you will use it in a browser, login=test01 and password=i5h-28!wR6B7 when it asks.) to access sites via our proxy server, you can remember how we created this table recently from the previous part.
And now we go this way:
[MariaDB CLI] > \q
Now we will add some new strings(please use a file below, then just copy and paste strings to the end of the settings file like in the video).
These settings need in the Squid configuration file for proper handle login and password when someone will try to get access to sites via your Squid proxy server.
To begin you can use the Vim text editor, press CTRL+V on your keyboard to paste strings one by one(at the end of the file of /etc/squid/squid.conf), like in the video below(later in the course you will know about other ways to edit files more comfortably):
We almost ready for the final test, now we need to stop the proxy server and make the last small change into the settings of Squid to allow connections to the sites via the proxy.
[VIM CLI] write it without brackets: [ /http_access deny all ] - for searching this string after symbol of '/' and then please make it commented(type i for edit and use your keyboard) on the line in the file of /etc/squid/squid.conf with '#' at the beginning of this string like in the video below
[VIM CLI] :w
[VIM CLI ] :q
And finally, after the last command, you will see a text with current proxy server status with words like these: active (running)
http_port 3129 intercept
So, now the time for make last security updates in your settings, first of all update login and password for a browser use, so you will know how to do it next time.
This topic only for your own way to do it and test, please write how you did it in the Completion Assignment.
For the more secure way you need to change the login and the password for your Database user which responsible for connections between the Squid proxy server and MariaDB server, you passed a lot of detailed topics and know everything to complete this task.
So, just do it.
This topic only for your way to do it and test, please write how you did it in the Completion Assignment.
soon will be ready
Alibaba cloud servers for free, 12 month, for Individuals and Corporate users
...soon will be ready