LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-19-2024, 03:01 AM   #1
geekyrits
LQ Newbie
 
Registered: Apr 2024
Posts: 1

Rep: Reputation: 0
How to determine destination for UDP packets, at proxy server?


I need to route TCP and UDP packets via a proxy server, at layer 4 (i.e. without TLS termination, for TCP packets). The destination address for all packets is not fixed. In other words, the routing needs to be dynamic and the destination for each packet can be determined based on destination hostname/IP in the packet. So, TCP/TLS packets can be routed based on SNI (in TLS ClientHello) because all TCP in my case is TLS. However, UDP packets cannot be, as SNI is typically for TCP and its equivalent does not seem to be present in UDP.

I was looking at envoy proxy's DestinationIPInput filter (https://www.envoyproxy.io/docs/envoy...ching_listener) to cater to this problem but it is based on HAProxy Proxy protocol (https://www.envoyproxy.io/docs/envoy...proxy-protocol), which doesn't seem to support UDP (https://www.haproxy.org/download/1.9...y-protocol.txt).

Is there a standard proxy protocol, using which a proxy server can determine the destination server address (and port) for UDP packets coming to it from a client (which can also send the packets in compliance with the same protocol) ? Will be good, if the same protocol can support TCP/HTTP proxying too.

Last edited by geekyrits; 04-19-2024 at 03:29 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] match source pattern in destination and substitute in destination usin AWK 123raajesh Linux - Software 7 11-13-2013 04:22 AM
destination unavailable W/ vpn. All other net destination o.k. MikeOfAustin Linux - Networking 1 04-07-2007 04:42 PM
UDP: Short Packets: and UDP bad checksum: entries in dmesg minutes2memories Linux - Networking 2 02-26-2006 07:28 PM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration