DNS and HTTP
The server is configured to be a caching dns server and a web proxy
The goal is to use both.
Using the DNS server
-
Set kali to use the server as DNS server
This is a different DNS server than the one given by the DHCP server.
In network manager, there is a flag for specifying your own DNS server instead. See e.g. this stackoverflow question.
-
Use
wireshark
to check that kali acutally uses the new server as DNS server. -
Oh no! It is not working even with the correct DNS server in Kali.
What DNS trafic is the DNS server sending and receiving?
-
Correct the DNS server used by the server.
It is done in /etc/dnsmasq.resolv.conf. Set it to use censurfridns.dk
-
Restart the service by doing
service dnsmasq restart
(as root)If it fails, reiterate and fix.
-
Collect your notes on how you tested, concluded and fixed the issues.
Using the web proxy
-
Read up on what a webproxy is, e.g. here and here
The server is installed with squid
-
Use the server as a webproxy
Change the configuration in your browser, see here or find a guide specific for your browser.
Squid
is running on port tcp/3128 on the server. -
Is it working?
Use wireshark to show that you use the server as a proxy and that the proxy forwards the requests.
Also, there are log files on the server in
/var/log/squid
. Use e.g.tail -f /var/log/squid/access.log
to mnitor requests. -
Collect your notes on how you tested, concluded and fixed the issues.