09-15-2019, 08:20 AM
Hello, I have a problem with port forwarding
I want to forward the connection from public zone port 22 to private zone port 2222 But I don't know why this command doesn't work
I have also activated port forward on sysctl
But the problems I experienced could not be solved by members of the Indonesian Linux forum
I want to forward the connection from public zone port 22 to private zone port 2222 But I don't know why this command doesn't work
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 22 -j DNAT --to 127.0.0.1:2222
I have also activated port forward on sysctl
But the problems I experienced could not be solved by members of the Indonesian Linux forum