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 Mode #9

Open
sowie2016 opened this issue Jul 15, 2020 · 2 comments
Open

DSR Mode #9

sowie2016 opened this issue Jul 15, 2020 · 2 comments

Comments

@sowie2016
Copy link

sowie2016 commented Jul 15, 2020

Does DSR work across servers in different datacentres?

I have got the standard proxy working but cant get the config working for DSR and cant see where I'm going wrong from the instructions. Is there a log anywhere I could check?

The interface is listening with no errors, but I cant complete a TCP connection with the server behind it.

I set up the balancers as per the instructions below, is there anythign I could be missing?

Thank You for any help

` sudo tc qdisc add dev enp0s8 root handle 10: htb

sudo tc filter add dev enp0s8 parent 10: protocol ip prio 1 u32 match ip src <LOCAL_SERVER_IP> match ip sport <LISTEN_PORT> 0xffff match ip dst <LOAD_BALANCER_IP> action ok

sudo tc filter add dev enp0s8 parent 10: protocol ip prio 10 u32 match ip src <LOCAL_SERVER_IP> match ip sport <LISTEN_PORT> 0xffff action nat egress 192.168.1.117 <LOAD_BALANCER_IP> `

@bparli
Copy link
Owner

bparli commented Jul 15, 2020

Thanks for trying it out! In general DSR mode is a little trickier to get working across networks and I don't think it would work currently (only on the same VLAN). I would need to add encapsulation and steps to setup tunneling on the backend host to do that

Passthrough mode should also work though if you feel like trying that. You can run in debug mode with sudo RUST_LOG=debug ./convey --passthrough --config=passthrough.toml

Also, you pointed out a few typos in the readme so fixed those

@kolinfluence
Copy link

@bparli when do you think it's possible to make it work across networks? any updates on this?

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

3 participants