Rajen Patel
August 27, 2021 04:14PM
here are my setup details for the k8s cluster:

Nginx running as UDP proxy
nginx.conf: |
user root;
worker_processes 1;
events {
worker_connections 10240;
http {
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html; #Change this line
index index.html index.htm;
stream {
server {
listen *4729 udp;*
proxy_pass j_close_stream_backend;
proxy_responses 0;
error_log stderr;
proxy_bind $remote_addr:$remote_port transparent;
upstream juniper_close_stream_backend {
nginx-> client service(**)

*Nginx running as Kubernetes Daemonset as follows:*

apiVersion: apps/v1
kind: DaemonSet
name: nginx-daemonset
creationTimestamp: null
app: nginx
- image: nginx:1.14.2
imagePullPolicy: IfNotPresent
name: nginx
- containerPort: 80
protocol: TCP
resources: {}

here nginx works fine and is able to preserve source IP and also forward
spoofed IP. however client service is not able to receive any traffic.

I believe there is some issue with iptables but don't know how to trace
this issue.

Your help is much appreciated.
nginx mailing list
Subject Author Posted

Need help regarding DSR with NGINX - not working as expected

Rajen Patel August 27, 2021 04:14PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready