Skip to main content

IPv4 guide

What Is a VPN? How Virtual Private Networks Work and Change IP Visibility

Chan

What is a VPN?

A virtual private network (VPN) creates an authenticated, protected connection between devices or networks across another network. A VPN can connect an employee to company systems, join two sites, or route selected internet traffic through a provider gateway. The word “private” describes the controlled tunnel and access policy. It does not mean the user becomes anonymous.

A VPN can protect traffic while it travels between its tunnel endpoints and can change the public source IP address seen by destinations. Its exact effect depends on the protocol, route policy, DNS design, IPv4 and IPv6 coverage, endpoint security, and what happens after traffic leaves the VPN gateway.

How does a VPN work?

  1. The client authenticates the VPN peer. Depending on the design, the peers may use certificates, keys, credentials, or multiple factors to establish trust.
  2. They negotiate protection. The VPN protocol establishes keys, algorithms, tunnel parameters, and the traffic selectors or routes that belong in the tunnel.
  3. The device sends matching traffic into a virtual interface. A full tunnel usually captures most internet-bound traffic. A split tunnel sends only selected destinations through the VPN.
  4. The VPN encapsulates and protects the packet. An outer packet carries the protected inner traffic across the intervening network to the other tunnel endpoint.
  5. The remote endpoint verifies and forwards it. A gateway removes the tunnel protection and routes the original traffic toward a private network or the public internet. Replies follow the corresponding return path.

IPsec is one widely used network-layer VPN framework. IKEv2 can mutually authenticate peers and establish the Security Associations used by IPsec. Other VPN designs use different protocols and transports. “AES-256” alone does not identify a complete VPN design or prove that its authentication, key management, routing, software, and operations are secure.

What changes when you connect to a VPN?

Common effects of an internet-access VPN
PropertyTypical full-tunnel effectImportant limit
Traffic on the local or access networkSelected packets are protected between the device and VPN gatewayTraffic outside the tunnel and activity on a compromised endpoint remain exposed
Public source IP seen by a destinationThe destination commonly sees an address used by the VPN exitSplit routes, direct connections, embedded identifiers, and application behavior can reveal other information
DNS requestsThey may use a resolver reached through the tunnelResolver policy and route configuration decide this; a VPN label does not prevent DNS leaks
Local private IP addressThe device can receive an additional tunnel addressThe existing Wi-Fi or Ethernet address normally still exists on the local network
Protection after the VPN gatewayHTTPS or another end-to-end protocol can continue protecting application dataThe VPN tunnel itself normally ends at the gateway, so application encryption is still necessary

Common VPN types

VPN designs serve different network tasks
TypeConnectsTypical taskKey design question
Remote-access VPNA user device to an organization gatewayReach internal applications from another networkWhich users, devices, routes, and applications are authorized?
Site-to-site VPNOne network gateway to anotherJoin offices, data centers, or partner networksHow are overlapping routes, failover, and traffic selectors handled?
Consumer or commercial privacy VPNA device to a provider exitProtect access-network traffic and change the visible exit IPWhat can the provider observe, retain, and disclose?
Application-specific tunnelOne application or managed workload to a serviceProtect only a defined workflowWhat traffic remains outside the tunnel?

These categories can overlap. A product name does not establish the route scope, security boundary, or privacy outcome. Inspect the actual configuration and test both expected and excluded traffic.

How does a VPN change your IP address?

For traffic that leaves through an internet VPN gateway, a website generally sees the gateway’s public source address instead of the client network’s public address. For example, a client behind documentation address 198.51.100.25 could send a tunneled request that reaches a site from exit address 203.0.113.40. The VPN has changed source-address visibility for that flow, not the user’s identity.

An exit can use a shared address, a dedicated address, or a routed prefix. Shared exits provide less stable attribution to one customer but can encounter noisy-neighbor reputation and rate limits. Dedicated exits make allowlisting and reverse DNS easier, but they are more consistently associated with one organization. Neither arrangement guarantees a particular geolocation, reputation score, or acceptance by a destination.

IPv4 and IPv6 need separate attention. A tunnel that carries IPv4 but leaves IPv6 on the local path can expose a different public source address. Test route tables, DNS, IPv6, browser behavior, reconnects, captive portals, and tunnel failure instead of relying on an “IP changed” indicator alone.

What a VPN does not protect

  • Account identity: Signing in still tells a service which account is active.
  • Cookies and device signals: Cookies, browser storage, application identifiers, and fingerprinting can link sessions across IP changes.
  • The endpoint: Malware, unsafe extensions, stolen credentials, and unpatched software can expose data before encryption or after decryption.
  • All traffic by default: Split tunneling, excluded applications, DNS, IPv6, or a failed tunnel may use another path.
  • The provider relationship: A VPN operator can be in a position to observe connection metadata and, depending on the design, traffic leaving its gateway. A no-logs statement is a policy claim, not technical proof that no records exist.
  • Authorization or legal permission: A different exit location does not grant a right to bypass service terms, access controls, censorship law, licensing restrictions, or destination policy.
  • End-to-end application security: Use HTTPS, SSH, or another appropriate application protocol because the VPN protection normally stops at its peer.

A VPN can reduce exposure to an access network and create controlled network reachability. It cannot guarantee anonymity, total privacy, clean traffic, or immunity from tracking.

VPN vs proxy, private network, and HTTPS

Related controls protect different parts of a connection
ControlTypical scopeWhat it can changeWhat it does not prove
VPNSelected device or network traffic between VPN peersPath, protected tunnel, and often the public source IP seen after an exitAnonymity, endpoint safety, or protection beyond the gateway
Forward proxyConfigured application protocols or requestsApplication path and source address seen by the destinationProtection for every device flow; some proxy transports are encrypted and some are not
Private networkA network with controlled routing and addressingWhich systems can reach one anotherEncryption; a private network can exist without a VPN
HTTPSApplication data between a client and web origin or terminating intermediaryConfidentiality and integrity for the protected web sessionConcealment of the destination IP from the network path

See the proxy IP guide for protocol and logging differences, and the public versus private IP guide for address scope and reachability.

VPN selection and deployment checklist

  1. Define the task and threat model. State whether the goal is remote access, site connectivity, access-network protection, a stable egress IP, or another specific outcome.
  2. Confirm protocol and update support. Review maintained implementations, authentication, key management, algorithm negotiation, security advisories, and retirement of obsolete options.
  3. Design identity and authorization. Use appropriate user and device authentication, least-privilege routes, short-lived access where practical, and a tested revocation path.
  4. Document the route model. Record full or split tunnel behavior, allowed prefixes, default routes, overlapping networks, NAT, MTU, and return-path requirements.
  5. Test DNS and both IP versions. Verify resolver paths, IPv4 and IPv6 source addresses, reconnect behavior, kill-switch or fail-open policy, and captive-portal handling.
  6. Assess endpoints and gateways. Patch software, protect keys, restrict administration, monitor capacity, and test high availability. Tunnel encryption does not compensate for a compromised peer.
  7. Verify provider claims with dated evidence. Review the legal entity, ownership, jurisdictions, retention policy, incident history, independent assessment scope and date, and how requests for data are handled.
  8. Measure the real workload. Test latency, throughput, packet size, roaming, loss, failover, and application compatibility from the regions and networks that matter.
  9. Plan operations and exit. Assign alerting, abuse handling, log access, address changes, certificate and key rotation, provider outage, migration, and service termination.

IPv4 planning for VPN gateways

A business VPN gateway may need stable public IPv4 capacity for partner allowlists, customer access, reverse DNS, monitoring, or regional egress. Before using an address or prefix, verify the party authorized to provide it, the route origin and upstream acceptance, RPKI and IRR responsibilities, geolocation evidence, reverse DNS control, reputation observations, abuse contacts, DDoS handling, failover, renewal, and return terms.

IP reputation and geolocation are time-sensitive observations, not permanent properties. Record the provider, result, and timestamp, then retest after activation or route changes. The IP reputation guide explains the evidence limits, while IP address information covers what an address can and cannot reveal.

If you operate VPN infrastructure, review the responsibilities in the VPN and privacy network solution and managed IPv4 leasing. Availability, authority, routing, and suitability still require case-specific confirmation.

VPN FAQ

Does a VPN make you anonymous?

No. A VPN can hide the client network’s public IP from destinations for tunneled traffic, but the VPN operator, account logins, cookies, browser or device identifiers, traffic patterns, and activity outside the tunnel can still link actions to a user or organization.

Does a VPN change your IP address?

Usually for traffic routed through an internet exit. The destination commonly sees the exit’s public source IP rather than the client network’s public IP. Split-tunneled traffic, IPv6, peer-to-peer connections, or excluded applications may behave differently.

Does a VPN encrypt all internet traffic?

Not necessarily. A full-tunnel policy can protect most routed device traffic between the VPN peers. Split routes, unsupported protocols, DNS or IPv6 misconfiguration, local-network traffic, and tunnel failure can leave traffic outside. HTTPS is still needed beyond the VPN gateway.

What is the difference between a VPN and a proxy?

A VPN commonly routes selected device or network traffic through a protected tunnel. A proxy relays requests for configured applications or protocols. Either can change the source IP seen by a destination, and either may use encrypted or unencrypted transports depending on the implementation.

Is a virtual private network the same as a private network?

No. A private network is a routing and access domain. A virtual private network is a mechanism for creating protected connectivity between defined peers across another network. The phrase “private virtual network” is often an informal reversal of the standard term “virtual private network.”

Does a VPN slow down internet speed?

It can add encryption work, packet overhead, and a longer route, so latency may rise and throughput may fall. A better path or relief from network-specific traffic shaping can sometimes improve one workload, but higher speed is not guaranteed. Measure from the actual client, gateway, and destination.

Are free VPNs always unsafe?

No single price category proves safety. Free and paid services both require review. Check the operator, funding model, permissions, software updates, data handling, retention, independent assessment, incident response, and whether the service meets the defined threat model.

Primary technical sources

Tags

  • #VPN