Skip to content

NAT64: IPv4 Ping Response Timeout #9846

Answered by maxminard
maxminard asked this question in Q&A
Discussion options

You must be logged in to vote

Forgot to post the solution, but what fixed our issue was to add iptable masquerade configs. In our case, the wifi router was receiving and sending out the request, but it didn't know where to send the response since the openthread ipv4 source address 192.168.255.254 wasn't advertised to it. Masquerading this source address will just use the outgoing interface address (wlan0), so the router knew where to send the response.
iptables -t nat -A PREROUTING -i wpan0 -j MARK --set-mark 0x1001
iptables -t nat -A POSTROUTING -m mark --mark 0x1001 -j MASQUERADE
or
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@maxminard
Comment options

Answer selected by maxminard
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants