我已经挠头了两个小时,似乎找不到答案。
我正在使用OpenVPN设置一个Android移动应用程序,以允许用户使用美国IP连接。
我的想法是:我在Digitalocean中设置了一个Droplet,配置了OpenVPN,它的运行非常漂亮。然后,我看到了将http-proxy选项添加到配置文件中。我希望即使用户连接到位于法兰克福的OpenVPN DigitalOcean服务器,他们的公共IP仍能解析为我在配置文件中放置的代理,因此是私有的美国IP。这有可能吗?我在Windows中尝试了配置,并获得了此日志,这意味着它已连接到VPN,然后成功连接到了代理,但是IP一直显示VPN一个,而不是代理IP:
Sat Apr 18 21:48:59 2020 Attempting to establish TCP connection with [AF_INET]37.1.208.106:1490 [nonblock]
Sat Apr 18 21:48:59 2020 MANAGEMENT: >STATE:1587239339,TCP_CONNECT,,,,,,
Sat Apr 18 21:49:00 2020 TCP connection established with [AF_INET]37.1.208.106:1490
Sat Apr 18 21:49:00 2020 Send to HTTP proxy: 'CONNECT 219.100.37.133:443 HTTP/1.0'
Sat Apr 18 21:49:00 2020 Send to HTTP proxy: 'Host: 219.100.37.133'
Sat Apr 18 21:49:01 2020 HTTP proxy returned: 'HTTP/1.1 407 Proxy Authentication Required'
Sat Apr 18 21:49:01 2020 Proxy requires authentication
Sat Apr 18 21:49:01 2020 PROXY AUTH BASIC: 'Proxy-Authenticate: Basic realm="Hello"'
Sat Apr 18 21:49:01 2020 HTTP proxy authenticate 'realm="Hello"'
Sat Apr 18 21:49:01 2020 Attempting to establish TCP connection with [AF_INET]37.1.208.106:1490 [nonblock]
Sat Apr 18 21:49:01 2020 MANAGEMENT: >STATE:1587239341,TCP_CONNECT,,,,,,
Sat Apr 18 21:49:02 2020 TCP connection established with [AF_INET]37.1.208.106:1490
Sat Apr 18 21:49:02 2020 Send to HTTP proxy: 'CONNECT 219.100.37.133:443 HTTP/1.0'
Sat Apr 18 21:49:02 2020 Send to HTTP proxy: 'Host: 219.100.37.133'
Sat Apr 18 21:49:02 2020 Attempting Basic Proxy-Authorization
Sat Apr 18 21:49:02 2020 HTTP proxy returned: 'HTTP/1.1 200 Connection Established'
同样,我的意图是允许用户连接到位于法兰克福的我的VPN,但之后再与代理IP连接,以便例如在whatismyip.com上向他们显示代理IP。
如果无法做到这一点,轮换IP以便让每个移动应用程序用户获得彼此不同的IP的最佳方法是什么?