{"id":923153,"date":"2024-05-29T03:29:21","date_gmt":"2024-05-29T03:29:21","guid":{"rendered":"https:\/\/proxyelite.info\/?p=923153"},"modified":"2024-05-28T03:31:20","modified_gmt":"2024-05-28T03:31:20","slug":"implementing-multi-instance-openvpn-with-socks-proxy-for-secure-web-browsing","status":"publish","type":"post","link":"https:\/\/proxyelite.info\/uk\/implementing-multi-instance-openvpn-with-socks-proxy-for-secure-web-browsing\/","title":{"rendered":"\u0412\u043f\u0440\u043e\u0432\u0430\u0434\u0436\u0435\u043d\u043d\u044f Multi-Instance OpenVPN \u0456\u0437 Socks Proxy \u0434\u043b\u044f \u0431\u0435\u0437\u043f\u0435\u0447\u043d\u043e\u0433\u043e \u0432\u0435\u0431-\u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u043c\u0438 \u0440\u043e\u0437\u043f\u043e\u0432\u0456\u043c\u043e \u043f\u0440\u043e \u043f\u0440\u043e\u0446\u0435\u0441 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0457 \u043c\u0435\u0440\u0435\u0436\u0456, \u0434\u0435 \u043a\u043b\u0456\u0454\u043d\u0442\u0438 \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u044c\u0441\u044f \u0434\u043e \u0440\u0456\u0437\u043d\u0438\u0445 \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0456\u0432 OpenVPN, \u043a\u043e\u0436\u0435\u043d \u0437 \u044f\u043a\u0438\u0445 \u043c\u0430\u0454 \u0432\u043b\u0430\u0441\u043d\u0438\u0439 \u043d\u0430\u0431\u0456\u0440 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u0438\u0445 IP-\u0430\u0434\u0440\u0435\u0441, \u0456 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u044c \u0441\u0432\u0456\u0439 \u0442\u0440\u0430\u0444\u0456\u043a \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 SOCKS \u0434\u043b\u044f \u0431\u0435\u0437\u043f\u0435\u0447\u043d\u043e\u0433\u043e \u0432\u0435\u0431-\u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0432\u0441\u0442\u0443\u043f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439 \u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u043a\u0456\u043b\u044c\u043a\u0430 \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0456\u0432 OpenVPN, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0438\u0445 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456, \u043a\u043e\u0436\u0435\u043d \u0437 \u044f\u043a\u0438\u0445 \u043f\u0440\u043e\u0441\u043b\u0443\u0445\u043e\u0432\u0443\u0454 \u0440\u0456\u0437\u043d\u0456 \u043f\u043e\u0440\u0442\u0438. \u041a\u043e\u0436\u0435\u043d \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 OpenVPN \u0432\u0438\u0434\u0456\u043b\u044f\u0454 \u043e\u043a\u0440\u0435\u043c\u0443 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u0443 IP-\u043c\u0435\u0440\u0435\u0436\u0443 \u0434\u043b\u044f \u0441\u0432\u043e\u0457\u0445 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432 (\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, 192.168.1.0 \u0434\u043b\u044f OpenVPN 1 \u0456 192.168.2.0 \u0434\u043b\u044f OpenVPN 2). \u041c\u0435\u0442\u0430 \u043f\u043e\u043b\u044f\u0433\u0430\u0454 \u0432 \u0442\u043e\u043c\u0443, \u0449\u043e\u0431 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0443\u0432\u0430\u0442\u0438 \u0442\u0440\u0430\u0444\u0456\u043a \u043a\u043b\u0456\u0454\u043d\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0456 \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0438 OpenVPN, \u0430 \u043f\u043e\u0442\u0456\u043c \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 SOCKS \u043f\u0435\u0440\u0435\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u0434\u043e \u0406\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u043f\u0435\u0440\u0435\u0434\u0443\u043c\u043e\u0432\u0438<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0421\u0435\u0440\u0432\u0435\u0440 \u0456\u0437 \u043a\u0456\u043b\u044c\u043a\u043e\u043c\u0430 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u043c\u0438 \u0456\u043d\u0441\u0442\u0430\u043b\u044f\u0446\u0456\u044f\u043c\u0438 OpenVPN<\/li>\n\n\n\n<li>\u041f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 SOCKS<\/li>\n\n\n\n<li>\u0411\u0430\u0437\u043e\u0432\u0456 \u0437\u043d\u0430\u043d\u043d\u044f \u043c\u0435\u0440\u0435\u0436 \u0456 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0456\u0432<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u041a\u0440\u043e\u043a 1: \u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0439\u0442\u0435 \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0438 OpenVPN<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u041f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0439\u0442\u0435\u0441\u044f, \u0449\u043e \u043a\u043e\u0436\u0435\u043d \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 OpenVPN \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0437 \u0432\u043b\u0430\u0441\u043d\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u0438\u0445 IP-\u0430\u0434\u0440\u0435\u0441.<\/li>\n\n\n\n<li>\u0417\u0430\u043d\u043e\u0442\u0443\u0439\u0442\u0435 \u0434\u0456\u0430\u043f\u0430\u0437\u043e\u043d IP-\u0430\u0434\u0440\u0435\u0441, \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043a\u043e\u0436\u043d\u043e\u043c\u0443 \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0443 OpenVPN (\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, 192.168.1.0\/24 \u0434\u043b\u044f OpenVPN 1 \u0456 192.168.2.0\/24 \u0434\u043b\u044f OpenVPN 2).<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u041a\u0440\u043e\u043a 2: \u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0439\u0442\u0435 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 SOCKS<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0439\u0442\u0435 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 SOCKS \u043d\u0430 \u0442\u0456\u0439 \u0441\u0430\u043c\u0456\u0439 \u043c\u0430\u0448\u0438\u043d\u0456 \u0430\u0431\u043e \u043d\u0430 \u0456\u043d\u0448\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0456, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u043c\u0443 \u0437 \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0456\u0432 OpenVPN.<\/li>\n\n\n\n<li>\u0417\u0430\u043d\u043e\u0442\u0443\u0439\u0442\u0435 IP-\u0430\u0434\u0440\u0435\u0441\u0443 \u0442\u0430 \u043f\u043e\u0440\u0442 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 SOCKS.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u041a\u0440\u043e\u043a 3: \u041c\u0430\u0440\u0448\u0440\u0443\u0442 \u0442\u0440\u0430\u0444\u0456\u043a\u0443<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u0435\u0440\u0430 \u0430\u0431\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0456 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0456\u0457 \u0434\u043b\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0456\u0457 \u0442\u0440\u0430\u0444\u0456\u043a\u0443 \u0432\u0456\u0434 \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 OpenVPN \u0447\u0435\u0440\u0435\u0437 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0438\u0439 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 SOCKS.<\/li>\n\n\n\n<li>\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0439\u0442\u0435 \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u0435\u0440 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0442\u0440\u0430\u0444\u0456\u043a\u0443 \u0432\u0456\u0434 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432 OpenVPN 1 \u0434\u043e SOCKS proxy 1 \u0456 \u0442\u0440\u0430\u0444\u0456\u043a\u0443 \u0432\u0456\u0434 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432 OpenVPN 2 \u0434\u043e SOCKS proxy 2.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u0440\u0438\u043a\u043b\u0430\u0434 \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0457 (iptables)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code data-no-translation=\"\"># Redirect traffic from OpenVPN 1 clients to SOCKS proxy 1\niptables -t nat -A PREROUTING -i tun0 -p tcp --dport 80 -j REDIRECT --to-ports &lt;SOCKS_PROXY_1_PORT>\n\n# Redirect traffic from OpenVPN 2 clients to SOCKS proxy 2\niptables -t nat -A PREROUTING -i tun1 -p tcp --dport 80 -j REDIRECT --to-ports &lt;SOCKS_PROXY_2_PORT><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u041a\u0440\u043e\u043a 4: \u0422\u0435\u0441\u0442\u0443\u0432\u0430\u043d\u043d\u044f<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u041f\u0456\u0434\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432 \u0434\u043e \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0438\u0445 \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0456\u0432 OpenVPN.<\/li>\n\n\n\n<li>\u041f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0439\u0442\u0435\u0441\u044f, \u0449\u043e \u0442\u0440\u0430\u0444\u0456\u043a \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0454\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 SOCKS, \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0432\u0448\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u0438 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0430\u0431\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u0437\u0430\u0441\u043e\u0431\u0438 \u043c\u043e\u043d\u0456\u0442\u043e\u0440\u0438\u043d\u0433\u0443 \u043c\u0435\u0440\u0435\u0436\u0456.<\/li>\n\n\n\n<li>\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434 \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a, \u0449\u043e\u0431 \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0442\u0438\u0441\u044f, \u0449\u043e \u043a\u043b\u0456\u0454\u043d\u0442\u0438 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0435\u0437\u043f\u0435\u0447\u043d\u043e \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0406\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u0412\u0438\u0441\u043d\u043e\u0432\u043e\u043a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0438\u043a\u043e\u043d\u0443\u044e\u0447\u0438 \u0446\u0456 \u043a\u0440\u043e\u043a\u0438, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 \u043c\u0435\u0440\u0435\u0436\u0443, \u0434\u0435 \u043a\u043b\u0456\u0454\u043d\u0442\u0438 \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u044c\u0441\u044f \u0434\u043e \u0440\u0456\u0437\u043d\u0438\u0445 \u0435\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0456\u0432 OpenVPN \u0456\u0437 \u0440\u0456\u0437\u043d\u0438\u043c\u0438 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u0438\u043c\u0438 \u0434\u0456\u0430\u043f\u0430\u0437\u043e\u043d\u0430\u043c\u0438 IP-\u0430\u0434\u0440\u0435\u0441 \u0456 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u044c \u0441\u0432\u0456\u0439 \u0442\u0440\u0430\u0444\u0456\u043a \u0447\u0435\u0440\u0435\u0437 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0456 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440\u0438 SOCKS \u0434\u043b\u044f \u0431\u0435\u0437\u043f\u0435\u0447\u043d\u043e\u0433\u043e \u0432\u0435\u0431-\u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443. \u0426\u044f \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u044f \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u0454 \u0456\u0437\u043e\u043b\u044f\u0446\u0456\u044e \u0442\u0430 \u043f\u0456\u0434\u0432\u0438\u0449\u0443\u0454 \u0431\u0435\u0437\u043f\u0435\u043a\u0443 \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0457 \u0433\u0440\u0443\u043f\u0438 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432.<\/p>","protected":false},"excerpt":{"rendered":"<p>In this guide, we&#8217;ll walk through the process of setting up a network configuration where clients connect to different OpenVPN instances, each with its own set of private IP addresses, and route their traffic through a SOCKS proxy for secure web browsing. Introduction The scenario involves multiple OpenVPN instances running on a server, each listening [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":923154,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-923153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles"],"acf":[],"_links":{"self":[{"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/posts\/923153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/comments?post=923153"}],"version-history":[{"count":0,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/posts\/923153\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/media\/923154"}],"wp:attachment":[{"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/media?parent=923153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/categories?post=923153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/tags?post=923153"}],"curies":[{"name":"\u0412\u041f","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}