Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

Foward Proxy / Reverse Proxy / SSL TLS Termination

What is a proxy? A proxy is an intermediary server that receives a request, forwards it elsewhere, receives the response, and sends it back. Forward Proxy…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 4 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

What is a proxy?

A proxy is an intermediary server that receives a request, forwards it elsewhere, receives the response, and sends it back.



Forward Proxy (Represents the Client)

Sits in front of client and hides the client from servers. Server cannot see the real client




 Client ---> Forward Proxy ---> Server






Imagine your company blocks access to YouTube.



Instead of




Laptop ---> youtube.com






You do




Laptop ---> Corporate Proxy ---> youtube.com






The proxy makes the request on your behalf. The server sees request coming from Proxy IP not from your laptop.



Real Example School/college proxy, Corporate internet proxy, VPNs.



When you connect to a VPN:




Your PC ---> VPN Server ---> Google






Google sees VPN IP instead of of your original IP.



Why use forward proxy?





  1. Privacy: Hides the Client IP due to which Websites can't directly identify the client.


  2. Content Filtering: companies block some websites at the office network


  3. Caching: 100 employees request same file, without proxy 100 requests would go to internet. With proxy first request would go to internet and next 99 would be server from proxy cache.



Reverse Proxy (Represents the Server)

Sits in front of server and hides the server from client. Client Cannot see the real server




Client ---> Reverse Proxy ---> Server






Suppose you have multiple servers i.e. Server 1, Server 2, Server 3 etc and you don't want clients to know about these servers. In this case we need to setup reverse proxy and, proxy decides which server gets the request.




Client
|
v
Reverse Proxy
|
+----> Server1
|
+----> Server2
|
+----> Server3






Example: When you open amazon.com your request doesn't directly hit an application server. It usually go to




Browser
|
Load Balancer / Reverse Proxy
|
Backend Servers






Real Example: Nginx in front of Node.js servers



Why use Reverse Proxy?




  1. Load Balancing


  2. SSL/TLS Termination: Without reverse proxy every backend server, decrypts https, with reverse proxy setted up, it handles the encryption while backend focus upon the business logic. Don't worry if SSL/TLS is not clear to you, at end of this article we have detailed explanation of SSL/TLS.


  3. Hides Internal Servers: Client never knows the servers, which eventually improves the security


  4. Caching: For expensive endpoints, Reverse proxy stores response for the future requests.



Now Let's Boost your understanding of SSL(Secure Socket Layer) and TLS(Transport layer Security):



SSL and TLS both are same terms, name SSL was used in earlier days and now its new name TLS is being used.



Detailed flow of TLS



Step 1: Browser sends a request




https://api.company.com/users






Step 2: Reverse proxy i.e. Nginx here, receives HTTPS.




Browser
|
HTTPS
|
Nginx






Step 3: Nginx decrypts request.




Encrypted Request
↓
Decrypt
↓
Plain HTTP Request






Step 4: Nginx forwards request.




GET /users






to backend




Browser
|
HTTPS
|
Nginx
|
HTTP
|
Node Server






Step 5: Backend processes business logic.




app.get('/users', () => {
return users;
});






Step 6: Response returns. Nginx encrypts before sending to browser.




Node
|
HTTP
|
Nginx
|
HTTPS
|
Browser






Why Do This?



1. Less CPU Usage: As Encryption/decryption is expensive.



Without termination:




100 servers
100 TLS handshakes
100 certificate configs






With termination: Reverse proxy handles TLS. Backend servers focus on business logic.



2. Easier Certificate Management



Without reverse proxy: Nightmare to maintain certificates.




Certificate on Server 1
Certificate on Server 2
Certificate on Server 3






With reverse proxy: Certificate to be maintained only on Nginx. Renew once.



3. Simpler Backend Code: Backend doesn't care about HTTPS. It Just process requests.




app.get('/users', ...)






Real MAANG Architecture




User
|
HTTPS
|
Load Balancer
|
HTTPS
|
Reverse Proxy
|
HTTP/gRPC
|
Microservices






or




User
|
HTTPS
|
Load Balancer (TLS Termination)
|
HTTP
|
Services






Often the cloud load balancer itself performs TLS termination.



Important note on SSL/TLS termination: SSL/TLS termination means a reverse proxy or load balancer handles HTTPS encryption/decryption on behalf of backend servers. The client communicates securely with the proxy using HTTPS, the proxy decrypts the request and forwards it to backend services, typically over HTTP or an internal secure network. This reduces CPU overhead on application servers and centralizes certificate management.



The benefit of TLS termination is that:




1,000 Clients
|
v
Reverse Proxy
|
v
100 Backend Servers






The 100 backend servers do not perform those 1,000 TLS handshakes.

The reverse proxy performs them and forwards the already-decrypted requests internally.That's where the CPU savings come from. As "TLS connection terminates at the reverse proxy instead of the application server so its termed as TLS termination.

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Communitydiscussie & reacties

🌐 Naar de hoofdchat

Start de discussie in de Social Chat broadcaststream of dien hierboven een vakbijdrage in via het aanvulformulier.

🔍 CTI & Forensik

Cyber Threat Intelligence & Forensiek

ATT&CK-Navigator · IoC-Radar · Exploit-bewijs
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Security Briefing Gratis · 1-klik uitschrijven

Intelligence Digest gratis

Dagelijks het belangrijkste beveiligingsnieuws · kan op elk moment worden opgehaald

Community Rating & Social Proof
⭐ Lezersbeoordeling
–
Ø / 5.0
Nog geen recensies van lezers
Was dit artikel nuttig?
0
Geef uw beoordeling
Detailbeoordeling (optioneel)
Inhoud & Kwaliteit
Bron & Geloofwaardigheid
Actualiteit

Verwant Story Cluster & Sources (vector AI)

6 Cluster
24 Bronnen
Black Friday Roku deals: save on Roku Streaming Sticks, Roku TVs, and more
Latest from TechRadar 44 min. geleden
23 andere bronnen
Computer Bild35 min. geledenBigbank erhöht Festgeldzinsen: Bis zu 3,60 Prozent zum Black Friday Golem.de34 min. geledenAnzeige: 65 Zoll großer OLED-TV von Samsung günstig wie nie am Black Friday Latest from TechRadar2 uur geledenBlack Friday Pixel deals: save big on Pixel 10, Pixel 10a, Pixel 11 Pro, and more Latest from TechRadar2 uur geledenSamsung's Black Friday sale is here — I've found 11 excellent deals, including up to $1,800 off OLED TVs, Galaxy S26 Ultra, tablets, and more Latest from TechRadar1 uur geledenPick your favourite shade: every AeroPress colour is on sale for Black Friday Latest from TechRadar1 uur geledenPureVPN has launched 5-year plans just in time for Black Friday — $1.49 per month for half a decade of protection Latest from TechRadar1 uur geledenDDR5 RAM Black Friday deals: 6 32GB kits under $500 — because sadly that’s where memory prices are right now Latest from TechRadar1 uur geleden25 hand-picked deals in the Amazon UK Black Friday sale — Lego, Bose earbuds, Switch 2, Ninja Crispi, Kindles, and more WIRED51 min. geledenThe 24 Very Best Amazon Black Friday Deals to Get Now (2026) heise online News1 dag geledenBlack Friday 2026: Die besten Deals für Smartphones, Tablets und Smartwatches WIRED1 uur geledenBest Black Friday Nintendo Switch 2 Deals (2026): Bundles, Games Latest from Windows Central1 uur geledenDell's budget-friendly XPS 13 Windows laptop drops below $550 ahead of Black Friday PC-WELT1 uur geleden575 Euro günstiger: Solakon onPower Balkonkraftwerk mit ONE-Speicher im Black-Friday-Deal PC-WELT1 uur geledenBlack Friday bei PC-WELT: Norton 360 Premium-Security nur 19,99 Euro PC-WELT1 uur geleden575 Euro günstiger: Solakon onPower Balkonkraftwerk mit ONE-Speicher im Black-Friday-Deal PC-WELT1 uur geledenBlack Friday bei PC-WELT: Norton 360 Premium-Security nur 19,99 Euro PC-WELT1 uur geledenBlack Friday: Diese Handytarife sind jetzt besonders günstig – von 10 GB bis Unlimited PC-WELT1 uur geledenBlack Friday: Diese Handytarife sind jetzt besonders günstig – von 10 GB bis Unlimited Macerkopf.de2 uur geledenZendure Black Friday: bis zu 45 Prozent Rabatt auf Balkonkraftwerke mit Speicher, Solarmodule und mehr ifun.de2 uur geledenBluetti Black Friday: Drei empfehlenswerte Powerstations günstiger CNET23 uur geledenI Test Air Fryers. Cuisinart’s Glass Model Is a Steal at $84 for Black Friday t3n.de2 uur geledenBlack Friday: Diese 9 Fritzboxen, Repeater und Co. sind wirklich günstig Golem.de2 uur geledenAnzeige: Leises Rudergerät zum Black Friday günstig wie nie bei Amazon
Soortgelijke bijdragen
🔍 Verwandte News

Auch interessante Nachrichten Foward Proxy / Reverse Proxy / SSL TLS Termination

Thematisch verwandte Begriffe: Foward, Proxy, Reverse, Termination · 6 Treffer

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

💬 Reacties worden geladen…
Trek om te vernieuwen
Widgets & Topics
Loading widgets…
Nächster Beitrag