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

how to use tinc with vsock (for KVM/QEMU) #462

Open
mabra opened this issue Sep 9, 2024 · 2 comments
Open

how to use tinc with vsock (for KVM/QEMU) #462

mabra opened this issue Sep 9, 2024 · 2 comments
Labels
question Question from the users

Comments

@mabra
Copy link

mabra commented Sep 9, 2024

So far I remember, TINC may use different types of sockets, specified
in "DeviceType".
What to do to use VSOCK?
This would make TINC able to connect to qemu/kvm gest from outside.
Or how to use socat to bridge a host-running tincd to vsock?
Are there examples?
Thanks.

@gsliepen gsliepen added the question Question from the users label Sep 9, 2024
@gsliepen
Copy link
Owner

gsliepen commented Sep 9, 2024

Hi, vsock is not meant for network communication, it's meant as a communication channel between guest agents and hypervisor services. If you want tinc on the host to connect to a network interface inside a guest, then use DeviceType multicast, vde or tap in combination with QEMU's -netdev socket, vde or tap respectively.

@mabra
Copy link
Author

mabra commented Sep 15, 2024

Hi, vsock is not meant for network communication, it's meant as a communication channel between guest agents and hypervisor services. If you want tinc on the host to connect to a network interface inside a guest, then use DeviceType multicast, vde or tap in combination with QEMU's -netdev socket, vde or tap respectively.

Thank you for your reply.
"If you want tinc on the host to connect to a network interface inside a guest"
Exactly what I want.
I want me to prevent to have a TINC interface inside the guest, but inject packets to the LO(!) interface of the guest. I considered the "mention" of socket in the TINC docs to think, "if socket why not vsock" and I have not heared about "netdev socket" before.
I started considering socat, but for your mentioned uses, are there probably any examples, where VDE is too less described to be ussable for me (and requires this additional software) ??

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

No branches or pull requests

2 participants