Booker

Tuesday, March 31, 2015

How to test your site using localhost/vpn routes via Proxy

Testing web sites (PROXY)

Have you ever came in position that you need to use localhost on another computer or use their VPN routes ?

Have no fear, proxy is here!

Server Proxy

Proxy

Having the server on GNU/Linux(Ubuntu 12.04), just install squid:
sudo apt-get install squid

Config

edit the configuration file:
vim /etc/squid3/squid.conf

locate line:   TAG: http_access define a variable:
acl our_networks src 192.168.0.0/24

above the first http_access line,
thenbelow the last http_access write this line:

http_access allow our_networks

Proxy Restart

finaly restart it:
sudo service squid3 restart

Windows

Proxy client setup

  •  Uncheck Automatically detect settings.
  • Enter: 192.168.0.198 (your address will differ, ifconfig in your servers terminal to get it right ;) )
  • Port number 3128
  • Click OK to finish and close the other window as well.















Using the proxy in browser

Opening localhost will open the localhost of the server instead of 127.0.0.1.

6 comments:

  1. Data Architect: Data Architect works with system designers, users and developers to maintain and protect data sources. data science course syllabus

    ReplyDelete
  2. This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea.

    data science course in India

    ReplyDelete
  3. I just got to this amazing site not long ago. I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful blog page!
    Artificial Intelligence Course

    ReplyDelete