Score:0

Is there a way to make ubuntu 22.04 default remote (vnc) to localhost only?

at flag

Is there a way to make default ubuntu 22.04 remote (vnc) to localhost only?

I used ssh + localhost vnc(tiger vnc), but it is handy to implement on each ubuntu. so I want to use default one. but I cannot find button to make ubuntu remote(vnc) to allow local only.

Is there a solution for ubuntu default remote(vnc)? (ubuntu 22.04, ubuntu 20.04)

Additional information: thanks for reply, My question is : like other vnc server, or like old ubuntu default vnc Vino, does ubuntu20.04 or ubuntu 22.04 vnc has ability to use localhost only option.

David avatar
cn flag
Do not understand the question. You are asking how to make a remote access program local only?
noBODYcare avatar
at flag
thanks for reply, My question is : like other vnc server, or like old ubuntu default vnc Vino, does ubuntu20.04 or ubuntu 22.04 vnc has ability to use localhost only option.
David avatar
cn flag
Please add this to the question not just as a comment. It is info for the question.
Score:0
at flag

I got solution for it. use iptables to make tcp port 5900 allow only local packet.

iptables -A INPUT -p tcp --dport 5900 -s 127.0.0.1 -j ACCEPT

iptables -A INPUT -p tcp --dport 5900 -j DROP

have a nice day.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.