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

What is the difference between AWS site-to-site VPN and AWS client VPN?

· 52CE 我爱测

I know that site-to-site is using IPSec (layer 3), but client is using TLS (application layer). It seems like both are actually site to site vpns after reading articles/ docs online. I guess the protocol (IPSec vs TLS) is their o…

问题原文

原帖链接 · Ben Butterworth · CC BY-SA 4.0

I know that site-to-site is using IPSec (layer 3), but client is using TLS (application layer). It seems like both are actually site to site vpns after reading articles/ docs online.

I guess the protocol (IPSec vs TLS) is their only difference, which has implications on when you would use which one. I would guess that both are equally good, and you should always use TLS on the application layer anyway, even on top of client VPN.

How do you decide which one to use, and why?

已采纳解答

原帖链接 · MLu · CC BY-SA 4.0

In general the protocol doesn't have much to do with it. You can have IPSec tunnels in both site-to-site or client (aka road warrior) configurations, just like you can have OpenVPN (TLS) tunnels in both site-to-site or client setups. It's a matter of configuration and purpose, not the protocol used.

Site-to-Site VPN

  • typically 1-to-1 configurations
  • both sides in general have similar configuration
  • both sides have fixed IP address
  • either side can initiate or restart the connection
  • both typically have a network behind them (e.g. two office networks connected)
  • you can run a routing protocol (BGP, OSPF, ...) over the tunnel
  • the networks can communicate both ways

Client-to-Site VPN

  • typically N-to-1 configurations, with N clients connecting to 1 server
  • server and client configs are different
  • clients don't need fixed IP address
  • only clients initiate the connections (because the server doesn't know the client's current IP)
  • client is typically just a single laptop with no network behind it
  • routing only permits one IP per client, no BGP or OSPF supported
  • only client to the site behind the server connectivity is permitted, generally the site can't initiate connection to the client

That's roughly the difference between site to site and client to site VPNs.

In AWS the VPN Gateway uses IPsec protocol and the Client VPN uses OpenVPN protocol but that's just how AWS implemented the services. However in general it's perfectly possible to use either protocol in either setup.

Hope that helps :)

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

资料来源与适用范围

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

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

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