Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSR with mmproxy #22

Open
sudar-path opened this issue Aug 7, 2021 · 0 comments
Open

DSR with mmproxy #22

sudar-path opened this issue Aug 7, 2021 · 0 comments

Comments

@sudar-path
Copy link

sudar-path commented Aug 7, 2021

My topology,
server process (127.0.0.1:80) <--- HA proxy (sending proxy protocol info) <--- Client from Internet
Server process sees the real client IP via mmproxy as expected.
As a next step I was wondering if DSR could be enabled?
It doesn't work when I try to use ip rule to forward the response from local server process to the default GW (which I will then SNAT to the HA proxy's listening address)
ubuntu@ip-10-172-1-218:~$ ip rule list
0: from all lookup local
32765: from all fwmark 0x7b lookup 101
32766: from all lookup main
32767: from all lookup default
ubuntu@ip-10-172-1-218:~$ ip route show table 101
default via 10.172.1.1 dev lo
10.172.1.1 dev lo scope link src 127.0.0.1

Appreciate any pointers.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant