Would this be enough or will it go wrong somewhere, because my wan ip's are dhcp i'd need something like a reverse masquerade:
Or should i make an active script which gets wan_ipaddr from nvram and fills it into the rule instead of localhost.
Or maybe the actual solution is something different? I thought about using this for incoming icmp 5, 8, 13, 15, 17, 30. Maybe other stuff too if it works well, to keep the internal network completely nonvisible from the isp's 10.x.x.x network my router is connected to.
It's hard to test this because i can't have myself pinged from the isp network, and iptables counters are still at zero.
Code:
iptables -t nat -A PREROUTING -p icmp -i ! br0 -d 192.168.0.0/16 --icmp-type echo-request -j DNAT --to 127.0.0.1
Or maybe the actual solution is something different? I thought about using this for incoming icmp 5, 8, 13, 15, 17, 30. Maybe other stuff too if it works well, to keep the internal network completely nonvisible from the isp's 10.x.x.x network my router is connected to.
It's hard to test this because i can't have myself pinged from the isp network, and iptables counters are still at zero.