

GitHub - acoinfo/KidVPN: The world's smallest VPN server and client.
source link: https://github.com/acoinfo/KidVPN
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
KidVPN
The world's smallest VPN server and client (For SylixOS and Linux).
Configure File
- Configure file is a ini format:
- Server configure like this:
[server_0]
mode=server
key_file=serv.key
vnd_id=0
tap_name=tap0
mtu=1472
local_ip=192.168.0.1
port=10088
- Client configure like this:
[client_0]
mode=client
key_file=cli.key
vnd_id=0
tap_name=tap0
mtu=1472
server=123.123.123.123
port=10088
For SylixOS
- Step 1: Add vnd interface parameter in /etc/ifparam.ini
[vnd-X]
#X is a number of vnd ID)
enable=1
enable(up) this interface
ipaddr=x.x.x.x
#should be a real ip address
netmask=x.x.x.x
#should be a real netmask
mac=xx:xx:xx:xx:xx:xx
#vnd mac address, If not, the system will use random numbers
- Step 2: Use 'vnd' command add a virtual net device.
]# vnd add X
X is a number of vnd ID
- Step 3: Use 'kidvpn' to create a VPN connect.
]# kidvpn x.ini sector password
'x.ini' is vpn config file, 'sector' is ini sector which we will use, 'password' is password
- Step 4: Use 'route' command add some route entry to system, make route rules.
For Linux
- Prepare for work:
]$ sudo apt-get install openssl
install OpenSSL library
]$ sudo apt-get install libssl-dev
install OpenSSL develop library
]$ make
make kidvpn tartget
- Step 1: Add tap interface
]$ sudo tunctl -t tapX -u root
X is tap number
]$ sudo ifconfig tapX up
- Step 2: Use 'ifconfig' command set tapX address
]$ ifconfig tapX inet x.x.x.x netmask x.x.x.x
- Step 3: Use 'kidvpn' to create a VPN connect.
]$ sudo ./kidvpn x.ini sector password
'x.ini' is vpn config file, 'sector' is ini sector which we will use, 'password' is password
- Step 4: Use 'route' command add some route entry to system, make route rules.
Enjoy yourself ^_^
For help: [email protected]
Recommend
-
54
nginx (Docker image) Built-from-source container image of the NGINX HTTP server
-
13
The smallest Hello World executable linux
-
9
World smallest office suiteWe are all familiar with a traditional office suite - a word processor, a spreadsheet, a presentation program, maybe a diagramming or note-taking app. We have seen it all in Microsoft Office and Google Docs...
-
5
Check out the world's smallest portable Nintendo 64 This N64 portable is nearly the same size as the cartridges it plays By...
-
5
Polaroid Launches Polaroid Go, The Smallest Analog Camera in the World
-
4
Electronics World's smallest single-chip system can be injected into the body ...
-
8
News “World’s Smallest” BLE Module Emerges from Toshiba and Nordic Semi Team-up 3 days ago by Adrian Gibbons Capitalizing on a 14.1% mar...
-
6
News From Smallest to Quantum: Rounding Up Image Sensor 2021 World “Firsts” 2 days ago by Adrian Gibbons It’s a busy quarter-year for im...
-
13
World’s smallest quad-core Linux SBC starts at $8 Jul 8, 2016 — by Eric Brown — 56305 views
-
5
VanJS: The Smallest Reactive UI Framework in the World VanJS (ab...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK