ugated

command
v0.0.0-...-8ac4b46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

uGate primary goal is to provide a minimal sidecar/gateway that delegates to an envoy or other advanced gateway.

It should be possible to use it as a swap-in for istio proxy, in particular for low-memory devices.

In a deployment using both ingress and egress gateways, the sidecar doesn't need a lot of dynamic config: can simply capture all outbound traffic and forward it to the egress server. For inbound it will only use the BTS port, and forward to the local port.

For capture, a simplified form of the script is used: Example:

PROXY_GROUP=costin INBOUND_PORTS_INCLUDE=3001,5201 OUTBOUND_PORTS_INCLUDE=5201 bash -x ./iptables.sh
iptables-save -c| grep ISTIO
tcpdump -n -i any port 15006

# Turn off
PROXY_GROUP=costin INBOUND_PORTS_INCLUDE=- OUTBOUND_PORTS_INCLUDE=- bash -x ./iptables.sh

Iperf3 should show line speed with and without proxy.

Example numbers (Gbps):

iperf3 -c 10.1.10.228
Raw: 28.4 

Direct proxy:
iperf3 -c 10.1.10.228 -p 3001
21.2

IPtables enabled: 20.7 (outbound capture only)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL