0

I have a service that listens on a TCP port and communicates with a peripheral. I'd like to forward the received packets by the service through UDP to an another computer. I don't need handshake with the second computer, just need the data received by the first one. Is there a way to get that using iptables? I could get this by modifying my service to extract the data and send those as UDP, but I'm asking for a more low level way to do that.

Thanks John

1 Answer 1

2

Is there a way to get that using iptables?

No. iptables is primarily used to filter data (i.e. pass, reject...), can maybe add small modifications to the packets but cannot be used to transform packets between transport protocols. If you need a small application which can do this try socat.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .