Skip to content

Port Forwarding With Tart #855

Answered by edigaryev
raghav155 asked this question in Q&A
Jul 8, 2024 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

We've just released Tart 2.23.0 and Softnet 0.13.0 and you can now expose VM's ports by passing the --net-softnet-expose option to tart run.

For example, to expose VM's 22 port on a TCP port 2222 on the host, use this command:

tart run --net-softnet --net-softnet-expose 2222:22 <VM>

If you're only interested in port forwarding and want to disable the Softnet restrictions (e.g. which prevent VM's communication with the local network), add a --net-softnet-allow option:

tart run --net-softnet --net-softnet-allow=0.0.0.0/0 --net-softnet-expose 2222:22 <VM>

Check out the tart run --help for more details.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@fkorotkov
Comment options

@HenAmar
Comment options

@fkorotkov
Comment options

@HenAmar
Comment options

@edigaryev
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by fkorotkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants