s
ProxyChains 3.1 / Linux代理上网软件
http://proxychains.sourceforge.net/
http://120.52.73.44/nchc.dl.sourceforge.net/project/proxychains/proxychains/version%203.1/proxychains-3.1.tar.gz
[root@localhost proxychains-3.1]# ll /opt/soft/proxychains-3.1.tar.gz
-rw-r--r--. 1 root root 327057 Jan 27 21:13 /opt/soft/proxychains-3.1.tar.gz
[root@localhost proxychains-3.1]# /opt/proxychains-3.1/configure
[root@localhost proxychains-3.1]# ./configure
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 static flag -static works... no
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating Makefile
config.status: creating proxychains/Makefile
config.status: creating proxychains/docs/Makefile
config.status: creating proxychains/docs/en/Makefile
config.status: creating config.h
config.status: executing default-1 commands
[root@localhost proxychains-3.1]# make
make all-recursive
make[1]: Entering directory `/opt/proxychains-3.1'
Making all in proxychains
make[2]: Entering directory `/opt/proxychains-3.1/proxychains'
Making all in docs
make[3]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
Making all in en
make[4]: Entering directory `/opt/proxychains-3.1/proxychains/docs/en'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/opt/proxychains-3.1/proxychains/docs/en'
make[4]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[3]: Entering directory `/opt/proxychains-3.1/proxychains'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c libproxychains.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wp,-MD,.deps/libproxychains.pp -c libproxychains.c -fPIC -DPIC -o .libs/libproxychains.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wp,-MD,.deps/libproxychains.pp -c libproxychains.c -o libproxychains.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c core.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wp,-MD,.deps/core.pp -c core.c -fPIC -DPIC -o .libs/core.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wp,-MD,.deps/core.pp -c core.c -o core.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -g -O2 -o libproxychains.la -rpath //lib -version-info 3:0:0 libproxychains.lo core.lo -ldl
gcc -shared .libs/libproxychains.o .libs/core.o -ldl -Wl,-soname -Wl,libproxychains.so.3 -o .libs/libproxychains.so.3.0.0
(cd .libs && rm -f libproxychains.so.3 && ln -s libproxychains.so.3.0.0 libproxychains.so.3)
(cd .libs && rm -f libproxychains.so && ln -s libproxychains.so.3.0.0 libproxychains.so)
ar cru .libs/libproxychains.a libproxychains.o core.o
ranlib .libs/libproxychains.a
creating libproxychains.la
(cd .libs && rm -f libproxychains.la && ln -s ../libproxychains.la libproxychains.la)
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[2]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[2]: Entering directory `/opt/proxychains-3.1'
make[2]: Leaving directory `/opt/proxychains-3.1'
make[1]: Leaving directory `/opt/proxychains-3.1'
[root@localhost proxychains-3.1]# make install
Making install in proxychains
make[1]: Entering directory `/opt/proxychains-3.1/proxychains'
Making install in docs
make[2]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
Making install in en
make[3]: Entering directory `/opt/proxychains-3.1/proxychains/docs/en'
make[4]: Entering directory `/opt/proxychains-3.1/proxychains/docs/en'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/opt/proxychains-3.1/proxychains/docs/en'
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains/docs/en'
make[3]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
make[4]: Entering directory `/opt/proxychains-3.1/proxychains/docs'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[2]: Leaving directory `/opt/proxychains-3.1/proxychains/docs'
make[2]: Entering directory `/opt/proxychains-3.1/proxychains'
make[3]: Entering directory `/opt/proxychains-3.1/proxychains'
/bin/sh ../mkinstalldirs //lib
/bin/sh ../libtool --mode=install /usr/bin/install -c libproxychains.la //lib/libproxychains.la
/usr/bin/install -c .libs/libproxychains.so.3.0.0 //lib/libproxychains.so.3.0.0
(cd //lib && { ln -s -f libproxychains.so.3.0.0 libproxychains.so.3 || { rm -f libproxychains.so.3 && ln -s libproxychains.so.3.0.0 libproxychains.so.3; }; })
(cd //lib && { ln -s -f libproxychains.so.3.0.0 libproxychains.so || { rm -f libproxychains.so && ln -s libproxychains.so.3.0.0 libproxychains.so; }; })
/usr/bin/install -c .libs/libproxychains.lai //lib/libproxychains.la
/usr/bin/install -c .libs/libproxychains.a //lib/libproxychains.a
chmod 644 //lib/libproxychains.a
ranlib //lib/libproxychains.a
PATH="$PATH:/sbin" ldconfig -n //lib
----------------------------------------------------------------------
Libraries have been installed in:
//lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ../mkinstalldirs //etc
/usr/bin/install -c -m 644 ././proxychains.conf //etc/./proxychains.conf
/bin/sh ../mkinstalldirs //bin
/usr/bin/install -c ./proxychains //bin/proxychains
/usr/bin/install -c ./proxyresolv //bin/proxyresolv
make[3]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[2]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[1]: Leaving directory `/opt/proxychains-3.1/proxychains'
make[1]: Entering directory `/opt/proxychains-3.1'
make[2]: Entering directory `/opt/proxychains-3.1'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/opt/proxychains-3.1'
make[1]: Leaving directory `/opt/proxychains-3.1'
configure: error: cannot run /bin/sh ./config.sub解决办法
http://blog.csdn.net/hero06206/article/details/7294499
确定已安装
libtool
libtool-ltdl
libtool-ltdl-devel
如果没安装,使用yum install libtool
yum install libtool-ltdl
yum install libtool-ltdl-devel
然后将
/usr/share/libtool/config.sub
/usr/share/libtool/config.gues
复制到你当前要configure目录下
(比如你要装mysql,进入解压后的文件夹进行如下操作:
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess . )
然后./configure --enable-shared --enable-static
proxy
http://hi.baidu.com/ileo/blog/item/9a661b4cfffceefdd62afcf2.html
http://blog.csdn.net/shawnrong/archive/2007/05/15/1610080.aspx
http://wiki.ubuntu.org.cn/Java
http://zhidao.baidu.com/question/42243192.html?fr=qrl&fr2=query&adt=0_89
ubuntu 查看 ip 配置 :终端输入 ifconfig -a 即可。
# for example>>>
# or
ubuntu 取消使用代理更新
lindows@ubuntu:~$ sudo gedit /etc/apt/apt.conf
• | 关于VM虚拟机上运行UBUNTU使用代理的问题! |
• | Ubuntu7.04 防代理拨号 |
• | ubuntu 7.10 beta无法通过代理上网 |
• | 如何让我的ubuntu 8.04通过主机windows的ccproxy上网 |
• | 关于Ubuntu804更新源 |
查看同主题问题:ubuntu 代理 http://www.stdio.cn/2007/11/proxy-for-apt-get.html 为apt-get设置HTTP代理 实验室里统一用代理上网,google之后,解决了apt-get的代理问题。以下为转贴: 方法一 这是一种临时的手段,如果您仅仅是暂时需要通过http代理使用apt-get,您可以使用这种方式。 在使用apt-get之前,在终端中输入以下命令(根据您的实际情况替换yourproxyaddress和proxyport)。 export http_proxy=http://yourproxyaddress:proxyport
方法二 这种方法要用到/etc/apt/文件夹下的apt.conf文件。如果您希望apt-get(而不是其他应用程序)一直使用http代理,您可以使用这种方式。 注意: 某些情况下,系统安装过程中没有建立apt配置文件。下面的操作将视情况修改现有的配置文件或者新建配置文件。 sudo gedit /etc/apt/apt.conf
在您的apt.conf文件中加入下面这行(根据你的实际情况替换yourproxyaddress和proxyport)。 Acquire::http::Proxy “http://yourproxyaddress:proxyport”;
保存apt.conf文件。 方法三 这种方法会在您的主目录下的.bashrc文件中添加两行。如果您希望apt-get和其他应用程序如wget等都使用http代理,您可以使用这种方式。 gedit ~/.bashrc 在您的.bashrc文件末尾添加如下内容(根据你的实际情况替换yourproxyaddress和proxyport)。 http_proxy=http://yourproxyaddress:proxyport export http_proxy
保存文件。关闭当前终端,然后打开另一个终端。 使用apt-get update或者任何您想用的网络工具测试代理。我使用firestarter查看活动的网络连接。 如果您为了纠正错误而再次修改了配置文件,记得关闭终端并重新打开,否自新的设置不会生效。 Ubuntu单网卡架设VPN并NAT共享上网办法 http://os.51cto.com/art/200810/91681.htm 服务器使用shorewall作为防火墙,实际上shorewall只是作为iptables的一个配置程序而已,实际上防火墙还是iptables。 首先是建立VPN,使用软件包PPTPD,这样做的好处是方便认证,也支持windows,安全性不如openvpn,但是简单实用。 服务器环境: OS:ubuntu server 8.04.1 firewall:shorewall IP:192.168.2.100 安装: sudo apt-get install pptpd |
修改配置文件:/etc/pptpd.conf 修改localip remoteip localip 192.168.250.1 remoteip 192.168.250.234-238,192.168.250.245 |
这里随便找了个IP段localip相当于拨号后的服务器地址,可以写成本机IP,或者和remoteip的IP段相同的一个IP地址 remoteip是客户机分配的IP段,这里分配了12个IP地址,也就只允许12个机器同时通过VPN连接,再增加就不能分配到IP地址了 修改配置文件:/etc/ppp/chap-secrets 这个文件里面设置登陆用的账号密码等信息 设置格式是: # client server secret IP addresses abc * 123456 |
第一个是用户名,然后是服务器地址,然后是登陆所用的密码,最后是为客户拨号后分配的IP地址,不指定的话就是系统自动分配。 以上过程之后,咱的PPTPD就配置好了哈 由于服务器采用了shorewall防火墙,需要开放端口1723,47和gre协议 编辑/etc/shorewall/rules 增加: ACCEPT net $FW gre ACCEPT net $FW tcp 1723 ACCEPT net $FW tcp 47 |
然后重启下shorewall: 开始测试在windows上VPN拨号吧 windows下VPN连接建立方法就不多说了哈 OK,测试VPN可以拨通了,但是还不能通过服务器的网络连接互联网,可能你会发现,除了访问服务器,其他你什么都干不了 下面来做NAT,不过这个地方我也没做得很好,还有点缺陷,希望以后能解决这个问题 拨通VPN后,在服务器上使用ifconfig可以看到多了一个PPP*的网络连接,例如我这里是ppp0 做NAT我也使用shorewall来做 修改/etc/shorewall/interface 增加: 修改/etc/shorewall/zones 增加: 修改/etc/shorewall/masq 增加: OK,然后重启shorewall NAT配置好了!! 这里要注意的是ppp0一定要存在,否则shorewall要报错,这个就是shorewall不足的地方了,不够灵活。 如果你不用shorewall 防火墙,直接使用iptables指令进行dnat操作,就不会因为没有ppp0连接而报错了。 |
RedHat 5.5 x86_64 配置公司代理上网后,可使用wget、yum install、yum update等命令更新xxx外网文件
%40为 转义后的 "@"符号,可由firefox输入直接拿到特殊符号的转义码,@就是%40
[root@Loadrunner19 localhost]# export http_proxy=07121038:Sn%[email protected]:8080
[root@Loadrunner19 localhost]# export https_proxy=07121038:Sn%[email protected]:8080
end