I am living in a hostel where we get access to internet through LAN ports by connecting to a proxy server. I am running Kali Linux in Oracle VirtualBox and that's where I need internet access.
Here is what is did:
- I have changed my network settings in VirtualBox to Bridged Adapter
- I checked that the Bridged adapter was working by setting up a proxy connection in Firefox's network setting within the VM (Firefox > Settings > Network Settings > Settings). It was working and I could connect to the internet.
- I then reset the network settings because I wanted the proxy setting to be system wide, not just limited to Firefox.
- I then tried to set up a proxy connection in Kali Linux by editing the "bash.bashrc" file in "/etc". I basically appended the following to the end of the file "bash.bashrc" in "/etc". The IP address here is obviously an example.
This failed to work, and I cannot connect to internet in the VM.
Can anyone tell me what should I do to set up a system wide proxy?