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

feat(tproxy): support tproxy on Linux #615

Merged
merged 9 commits into from
Oct 1, 2024
Merged

feat(tproxy): support tproxy on Linux #615

merged 9 commits into from
Oct 1, 2024

Conversation

ibigbug
Copy link
Member

@ibigbug ibigbug commented Sep 30, 2024

🤔 This is a ...

  • New feature
  • Bug fix
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

#73

💡 Background and solution

largely based on and supercedes #343

without iptables integration

https://github.com/kristrev/tproxy-example/blob/master/README.md
https://powerdns.org/tproxydoc/tproxy.md.html

📝 Changelog

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Changelog is provided or not needed

trace!("tproxy <- dispatcher: {:?}", pkt);

// remote -> local
match responder
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VendettaReborn we don't need to create a new response_transparent socket here and can just use the original listen socket to response

@ibigbug ibigbug merged commit 4c1a753 into master Oct 1, 2024
24 checks passed
@ibigbug ibigbug deleted the tproxy branch October 1, 2024 07:54
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

Successfully merging this pull request may close these issues.

1 participant