If you implement the PPTP protocol yourself, is it possible to connect directly to the VPN server (port 1793) and exchange commands with it without creating a virtual network? For example, there are 10 different VPN servers — the program connects to 10 threads simultaneously to all of these VPNs and downloads a web page through them, while the rest of the applications on the computer run on a normal network without VPN. Some analog proxy. Is it possible?
- 2Of course you can, if you implement the entire protocol yourself and you yourself will send HTTP requests. True, I recommend to take some ready-made code and adapt it. pptp complex protocol, implementation - thousands of lines of code. And by the way, on TCP / 1723 only the PPTP control connection goes, the data goes on PPP through 47 IP protocols, so get ready to work with raw sockets and create IP packets yourself. (Here TCP is 6 IP protocol, and you need 47 (GRE)) - Mike
- @Mike, does it mean to understand the work of the PPTP protocol and to implement it is rather difficult? And what can you say about OpenVPN, is it easier to implement? - Geograph
- oneAs far as I understand it, it supports various protocols, including its own. Both PPTP and OpenVPN are available in source form, so there is more a question of adaptation. Throw out the part implementing the device and replace it with your own, take the part working with the network as it is - Mike
|