I have read a lot of guides about setting a proxy for ubuntu. I can do it with the GUI in the network settings and it automatically starts using the proxy I specified and when I open firefox or chrome to check my ip it shows the proxy ip.
But I'm not able to get it working with terminal by editing the ~/.bashrc
file. I do it like this:
sudo nano ~/.bashrc
then add this at the end of the file
export HTTP_PROXY="my_proxy:my_port"
export HTTPS_PROXY="my_proxy:my_port"
export FTP_PROXY="my_proxy:my_port"
then I save the changes and run the command
source ~/.bashrc
But when I open the web browser my IP did not change, I also tried rebooting the system but the ip remains the same.
/etc/security/pam_env.conf
– glenn jackman Sep 28 '21 at 20:21wget
use the environment variables you define in the terminal. To use proxy both in GUI and on command line, you have to define both. – raj Sep 28 '21 at 23:12