apt的proxy比较简单。在/etc/apt/apt.conf中添加: /etc/apt/apt.conf 代码 APT::Authentication::TrustCDROM "true"; Acquire::http::Proxy "http://username:password@proxy.xxx.xxx/"; Acquire::::Proxy "true"; wget 的proxy 它是借助环境变量 export http_proxy=http://proxy.xx.xx:80 export ftp_proxy=ftp://proxy.xx.xx:21 如果需要认证则需要编写一个文本 ~/.wgetrc 中添加: 代码 proxy-user=username proxy-password=password w3m 的代理上网可以参考使用proxychains工具。 具体配置需要在 /etc/proxychains.conf中进行设置。 /etc/proxychains.conf 代码 # proxychains.conf VER 2.0 # # HTTP, SOCKS4, SOCKS5 tunneling proxifier. # # The option below identifies how the ProxyList is treated. # only one option should be uncommented at time, # otherwise the last appearing option will be accepted # # Dynamic - Each connection will be done via chained proxies # all proxies chained in the order as they appear in the list # at least one proxy must be online to play in chain # (dead proxies are skipped) # otherwise EINTR is returned to the app # # Strict - Each connection will be done via chained proxies # all proxies chained in the order as they appear in the list # all proxies must be online to play in chain # otherwise EINTR is returned to the app # # Random - Each connection will be done via random proxy # (or proxy chain, see chain_len) from the list # this option is good for scans #dynamic_chain #strict_chain random_chain # Make sense only if random_chain # 一定要注意,这个值要和下面定义的 proxy list 的个数一致 chain_len = 1 # Quiet mode (no output) quiet_mode # Write stats about good proxies to proxychains.stats #write_stats #Some timeouts in milliseconds # tcp_read_time_out 15000 tcp_connect_time_out 10000 [ProxyList] # ProxyList format # type host port [user pass] # (values separated by 'tab' or 'blank') # # # Examples: # # socks5 192.168.67.78 1080 lamer secret # http 192.168.89.3 8080 justu hidden # socks4 192.168.1.49 1080 # http 192.168.39.93 8080 # # # proxy types: http, socks4, socks5 # ( auth types supported: "basic"-http "user/pass"-socks ) # #http 10.0.0.5 3128 #http 10.0.0.3 3128 #http 10.0.0.5 3128 #socks5 192.168.1.4 1080 #socks4 10.5.81.143 1080 #http 192.168.203.18 8080 http proxy.xxx.xxx 80 username password 目前没有解决firefox的代理认证方法。
|
最新的文章
最后的评论
|