(DIR) Josip Tišljar Mataušić (9A3SFZ)
Published on: 2026-05-06
Yesterday, I was helping OE1RCI configure a HAMNET 6to4 tunnel[1].
(DIR) 1: /hamnet-6to4/
Among other things, he hosts a gopher server[2]. Since pygopherd does
not support binding to a TCP6 socket, the following socat command
turned out to be very useful:
(HTM) 2: http://rci.radioz.org:70
socat TCP6-LISTEN:70,ipv6only=1,fork,su=nobody,reuseaddr
TCP4:127.0.0.1:70
It proxies incoming TCP6 connections to a TCP4 socket, making any
application that uses TCP available over IPv6, you just need to set
the ports correctly.
A simple systemd service could look something like this:
nano /etc/systemd/system/gopher6.service
[Unit]
Wants=network-online.target
After=network.target network-online.target
Description=Makes IPv4-only application available over IPv6
[Service]
ExecStart=socat TCP6-LISTEN:70,ipv6only=1,fork,su=nobody,reuseaddr
TCP4:127.0.0.1:70
[Install]
WantedBy=multi-user.target
Latest
(DIR) 2026-05-30 RadioZ now on Gopher
(DIR) 2026-04-27 Test your HAMNET IPv6 setup
(DIR) 2026-03-29 IPv6 on HAMNET with 6to4
(DIR) 2026-03-22 AMPRNet IPIP with systemd-networkd
--------------------------------------------------------------------------------
(DIR) Home
(DIR) Logbook