The Computer Oracle

How to transparently tunnel a port from IPv4 to a remote IPv6 device?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: City Beneath the Waves Looping

--

Chapters
00:00 How To Transparently Tunnel A Port From Ipv4 To A Remote Ipv6 Device?
01:34 Accepted Answer Score 19
01:58 Thank you

--

Full question
https://superuser.com/questions/722322/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #networking #vpn #iptables #ipv6

#avk47



ACCEPTED ANSWER

Score 19


I finally found a solution with Forwarding IPv4 Ports to IPv6-only Hosts which basically uses socat:

socat TCP4-LISTEN:22,fork,su=nobody TCP6:[2a01:198:79d:1::8]:22

My solution is basically the same except I use a hostname except for a static IP there. Take care not to use square brackes with a hostname as it will then interpret it as an IP.