REDIRECT to DNAT
Maybe im complete newbie, but setting up
{
"description": "Forward SSH to srv",
"filter": [
{
"in": "WAN",
"service": { "proto": "tcp", "port": 22202 },
"action": "accept",
"conn-limit": { "count": 3, "interval": 20 }
}
],
"dnat": [
{
"in": "WAN",
"dest": "192.168.1.202",
"service": { "proto": "tcp", "port": 22202 },
"to-port": "22"
}
]
}
Generates REDIRECT command for iptables not DNAT
-A PREROUTING -d 192.168.1.202/32 -p tcp -m tcp --dport 22202 -j REDIRECT --to-ports 22
I think it should generate
-A PREROUTING -p tcp --dport 22202 -j DNAT --to-destination 192.168.1.202:22
maybe i dont quite understand your documentation. But i have not found solution to this