I am trying to configure the forwarding of all traffic (udp, tcp) from an internet IP address to a specific LAN IP address behind my DD-WRT v23 SP2 router. As the router runs a cut down version of Linux I have been trying the IPTABLES command without success. I have tried the following command:
iptables -I FORWARD -p tcp -s 220.127.116.11 -d 192.168.0.5 -j logaccept
iptables -I FORWARD -p udp -s 18.104.22.168 -d 192.168.0.5 -j logaccept
The INPUT chain is configured to accept all, from anywhere, to anywhere. However the router's log shows the packets as being 'DROPPED'.
Any ideas where I am going wrong?? Is it because I am not specifying a port, or do I need to amend another chain?? I have asked this on the official DD-WRT forum with limited success