Linux Setup Agent Online

Source: Internet
Author: User
Tags nameserver

Linux Setup Agent online

Setting up a proxy in Linux only needs to set a user variable, there are several proxy methods:

Agent Mode variable name
http_proxy
https_proxy
ftp_proxy
do not use proxy IP

No_proxy


1. Immediate effect

[Email protected] ~]# export http_proxy=itxxx:123456@110.199.131.137: 909

Agent Mode =  User name : password @ proxy address : Port


#http_proxy: Using the HTTP proxy method

#itxxx: Is the user name used by the agent
#123456: Password
#110.199.131.137: Proxy address, can be IP, can also be a domain name
#909: Ports to use


2, modify the single user variable, single user permanent effective
[Email protected] ~]# echo "Export http_proxy=itwhy:123456@110.199.131.137 :909"> ~/.bashrc

[[email protected] ~]#source /etc/profile Remember to use after saving


3, single-user lftp program Agent permanently valid

[Email protected] ~]# echo "Export http_proxy=itwhy:123456@110.199.131.137 :909"> ~/.lftp

[Email protected] ~]#source /etc/profile


4, modify the global variables, all users take effect

[[email protected] ~]# vi/etc/profile #修改配置文件, all users are in effect

http_proxy=110.199.131.137: 8005
https_proxy=110.199.131.137: 8005
ftp_proxy=110.199.131.137: 8005
no_proxy=192.168.20 Network segment 192.168.20.0/24 do not use proxies, separate multiple addresses with commas
Export Http_proxy https_proxy Ftp_proxy

[Email protected] ~]#source /etc/profile


[[email protected] ~]# vi/etc/resolv.conf Modify DNS, whether the item is modified does not affect the Internet proxy

Search Localdomain
#nameserver 8.8.8.8
NameServer 110.199.131.131


5, Visual desktop proxy Internet settings

Mozilla 浏览器:

  Edit--=>> Perferences--=>> Advanced--=>> Proxies

Firefox 浏览器:

  Edit--=>> Perferences--=>> Advanced--=>> Network--=>> Connection--=>> Setting




附1:国内常用Linux开源镜像站

Http://www.360doc.com/content/15/1008/18/44521_504223800.shtml

http://mirrors.aliyu.com/

http://mirrors.163.com/



2.1, Socks Agent online-tsocks

[[Email protected] ~] #aptitude Install tsocks #修改配置文件
[[Email protected] ~] #vim/etc/tsocks.conf
Local = 192.168.1.0/255.255.255.0 #local表示本地的网络, that is, a network that does not use the SOCKS proxy
Server = 202.13.96.25 #SOCKS The IP of the server
Server_type = 5 #SOCKS service version
Server_port = port used by the 9999 #SOCKS service


2.2, Tsocks use:
[[Email protected] ~] #tsocks lftp #强制lftp通过socks代理连网


2.3, Tsocks installation: (Transparent SOCKS agent software)

The following instructions are all Linux users who use Ubuntu

In the terminal:sudo apt-get install tsocks
To modify a configuration file:sudo nano /etc/tsocks.conf

local = 192.168.1.0/255.255.255.0 #local表示本地的网络,不使用socks代理的网络
server = 127.0.0.1 # SOCKS 服务器的 IP
server_type = 5 # SOCKS 服务版本
server_port = 9999 #SOCKS 服务使用的端口

2.4. Running the Software
Running your software with Tsocks is simple, in the terminal:
tsocks 你的软件 &
Running Gwibber is now running like this:
tsocks gwibber &

---end---

Linux Setup Agent Online

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.