i got a small issue/question by using SOCAT on my vServer. My Problem is that i just got CG-NAT DS-Lite ISP wich provides me a private IPv4 Internal ISP IP and an native public IPv6 Adress. That means i do not have a native/functional/public IPv4 Adress.
To get my internal TCP and UDP bound Services offered to the Internet i have to work with IPv4>IPv6 Portforwarding.
So i did set up an VServer wich contains a public IPv4 and a IPv6 aswell.
My plan is to Forward Ports over the VServers IPv4 to my IPv6 Router. After some research i gave socat a try and it worked well. I did used a command like this: socat TCP4-LISTEN:25,fork,su=nobody TCP6:[2a01:198:79d:1::8]:25
And i could offer my Routers Login Page via the IPv4 of my VServer. Everything is well.
But my Problem is, that i want to forward multiply ports/port ranges in once. I want to use my VServer only as a IPv4->IPv6 Relay and i dont really want to map every new Port manually.
The Port Mapping should be 1:1, for example: The IPv4 Port 25, will also be the IPv6 Port in every situation. The best solution would be, if every Port (excluding 22) would be forwarded to my IPv6 Adress.
The final configuration should also work as a startup Service.
Perhaps there is a other way to get this done. Feel free for any ideas.
Best regards, Daniel