大网数据广告活动
服务器运维问答

OpenVPN “Initialization Sequence Completed” but IP is the same

· 52CE 我爱测

I've setup OpenVPN on Ubuntu 16.04 with these instructions . I get this message after starting up on the client which seems to indicate everything is good and working: Wed Jun 21 21:30:18 2017 Initialization Sequence Completed Bu…

问题原文

原帖链接 · Philip Kirkbride · CC BY-SA 3.0

I've setup OpenVPN on Ubuntu 16.04 with these instructions.

I get this message after starting up on the client which seems to indicate everything is good and working:

Wed Jun 21 21:30:18 2017 Initialization Sequence Completed

But when I test my IP address from the browser it is still the same as before I started the process.

Should I be getting an error message if the connection isn't successful?

client1.ovpn:

client
dev tun
proto udp
remote ec2-34-211-11-37.us-west-2.compute.amazonaws.com 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
remote-cert-tls server
cipher AES-128-CBC
auth SHA256
comp-lzo
verb 3
key-direction 1
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

/etc/openvpn/server.conf

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key  # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
tls-auth ta.key 0 # This file is secret
key-direction 0
cipher AES-128-CBC   # AES
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3

已采纳解答

原帖链接 · EEAA · CC BY-SA 3.0

You missed a crucial step in the tutorial, the step that does what you're looking for it to do: route all of your traffic through the tunnel.

If you would indulge me a bit of a rant, this is why tutorials are so badly frowned upon here. They permit people to implement systems without actually learning what it is they're implementing.

OK, rant over.

Instead of relying on the tutorial, I'd suggest that you read the OpenVPN documentation. Actually read it. Learn what all of the options do, and how they might apply to your situation. This will not only allow you to fully understand what you're implementing, but will also allow you to troubleshoot issues in the future.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-06-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。