Closed chris13524 closed 6 years ago
Use ListenDatagram=0.0.0.0:34197
which—due to the 0.0.0.0
—will configure IPv4.
Else you most likely get IPv6 with the idiosyncratic conversion to IPv4 and would need to call systemd-transparent-udp-forwarderd [::1]:34198
and have Factorio talk IPv6 too. Which in turn will exclude all your players on IPv4-networks.
Then, I recommend swapping Requires=…
with BindsTo=…
to shutdown the proxy once the server (Factorio) exits, to have systemd listen for incoming packets again.
Please note that the first packets to arrive at your machine (the one running the proxy, and the server some seconds in) will be regarded as timed-out. That is, for example, I ask users of my Avorion server to click on browse within the game again if the server appears to be offline.
I have three unit files,
factorio.service
,factorioproxy.service
, andfactorio.socket
. When I go in Factorio and connect to port 34197, I get this error printed several times under thefactorioproxy.service
logs: "Error binding to destination. (#97 Address family not supported by protocol)"All three services are running according to systemd, but no connections can be made and there is that error.
factorio.service
factorioproxy.service
factorioproxy.socket