Closed phantomcraft closed 3 years ago
With redirect in TCP, is easy:
iptables -t nat -A PREROUTING -i subnet0 -p tcp --syn -j DNAT --to-destination 127.0.0.1:60080
But how can I do the same redirection with TPROXY? How can I do the same with UDP?
You can refer to these examples:
Thanks.
With redirect in TCP, is easy:
iptables -t nat -A PREROUTING -i subnet0 -p tcp --syn -j DNAT --to-destination 127.0.0.1:60080
But how can I do the same redirection with TPROXY? How can I do the same with UDP?