Code Monkey home page Code Monkey logo

minivtun-win's People

Contributors

boytm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

minivtun-win's Issues

你好,想请求你指点一下关于minivtun的设置

想请教一下,连接minivtun之后如何访问服务器的内网网卡呢?
centos6服务器端执行
/usr/sbin/minivtun -l 0.0.0.0:12398 -a 10.8.8.8/24 -n vnet0 -e '123123' -t aes-256 -d

iptables -t nat -A POSTROUTING -s 10.8.8.0/24 -o eth0 -j SNAT --to-source 10.104.232.195

客户端为openwrt中的minivtun客户端,连接上之后能正常经过访问外网,客户端跟服务器也能正常互ping,现在需求客户端能访问服务器端的内网网卡ip,像pptp跟l2tp一样,可以ping到内网网卡IP,并且使用内网网卡IP进行例如mysql的连接,那么服务器端应该要再怎么设置呢?
服务端 route :
[root@VM_232_195_centos ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.8.0 0.0.0.0 255.255.255.0 U 0 0 0 vnet0
10.104.192.0 0.0.0.0 255.255.192.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
0.0.0.0 10.104.192.1 0.0.0.0 UG 0 0 0 eth0

服务器为单网卡:

eth0 Link encap:Ethernet HWaddr 52:54:00:B3:3E:A9
inet addr:10.104.232.195 Bcast:10.104.255.255 Mask:255.255.192.0

请求大神抽空帮忙解答一下,感激不尽!

win10运行python -m pip install -r requirements.txt后出错

安装报错,请问这个要如何解决?
(BTW:请问大佬可以做一个exe版本么?可以直接cmd命令运行就太棒了)

./python -m pip install -r requirements.txt

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already satisfied: wheel in c:\python27\lib\site-packages (from -r requirements.txt (line 1)) (0.37.1)
Requirement already satisfied: ipaddress in c:\python27\lib\site-packages (from -r requirements.txt (line 2)) (1.0.23)
Requirement already satisfied: pywin32 in c:\python27\lib\site-packages (from -r requirements.txt (line 3)) (228)
Requirement already satisfied: wmi in c:\python27\lib\site-packages (from -r requirements.txt (line 4)) (1.5.1)
Collecting M2Crypto
Using cached M2Crypto-0.38.0.tar.gz (1.2 MB)
Requirement already satisfied: typing in c:\python27\lib\site-packages (from M2Crypto->-r requirements.txt (line 5)) (3.10.0.0)
Building wheels for collected packages: M2Crypto
Building wheel for M2Crypto (setup.py) ... error

ERROR: Command errored out with exit status 1:
command: 'C:\Python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\mk\appdata\local\temp\pip-install-kibce_\m2crypto\setup.py'"'"'; file='"'"'c:\users\mk\appdata\local\temp\pip-install-kibce_\m2crypto\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\mk\appdata\local\temp\pip-wheel-yybfop'
cwd: c:\users\mk\appdata\local\temp\pip-install-kibce_\m2crypto
Complete output (60 lines):
running bdist_wheel
running build
running build_py
copying src\M2Crypto\ASN1.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\AuthCookie.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\BIO.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\BN.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\callback.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\DH.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\DSA.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\EC.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\Engine.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\Err.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\EVP.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\ftpslib.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\httpslib.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\m2.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\m2crypto.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\m2urllib.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\m2urllib2.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\m2xmlrpclib.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\Rand.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\RC4.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\RSA.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\six.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\SMIME.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\threading.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\util.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto\X509.py -> build\lib.win-amd64-2.7\M2Crypto
copying src\M2Crypto_init_.py -> build\lib.win-amd64-2.7\M2Crypto
creating build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\cb.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\Checker.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\Cipher.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\Connection.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\Context.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\Session.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\SSLServer.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\ssl_dispatcher.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\timeout.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL\TwistedProtocolWrapper.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
copying src\M2Crypto\SSL_init_.py -> build\lib.win-amd64-2.7\M2Crypto\SSL
running egg_info
writing requirements to src\M2Crypto.egg-info\requires.txt
writing src\M2Crypto.egg-info\PKG-INFO
writing top-level names to src\M2Crypto.egg-info\top_level.txt
writing dependency_links to src\M2Crypto.egg-info\dependency_links.txt
reading manifest file 'src\M2Crypto.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'SWIG*.i'
warning: no files found matching 'SWIG*.h'
warning: no files found matching 'SWIG*.def'
warning: no files found matching 'SWIG_m2crypto_wrap.c'
warning: no files found matching 'M2Crypto\m2crypto.py'
writing manifest file 'src\M2Crypto.egg-info\SOURCES.txt'
running build_ext
building 'M2Crypto._m2crypto' extension
swigging src/SWIG/_m2crypto.i to src/SWIG/m2crypto_wrap.c
swig.exe -python -IC:\Python27\include -IC:\Python27\PC -I/usr/include/openssl -includeall -modern -builtin -outdir c:\users\mk\appdata\local\temp\pip-install-kibce
\m2crypto\src\M2Crypto -o src/SWIG/_m2crypto_wrap.c src/SWIG/_m2crypto.i
error: command 'swig.exe' failed: No such file or directory

ERROR: Failed building wheel for M2Crypto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.