Home > Uncategorized > Port forwarding under OpenWrt

Port forwarding under OpenWrt

Honesly, I don’t understand /etc/config/firewall config, coz it’s working pretty strange for port forwarding. I have even found a lot of pages reporting bugs in Kamikaze build during port fw. After several hours, I have found command, which works for Kamikaze - just edit /etc/firewall.user and add:

iptables -t nat -A PREROUTING -p tcp --dport 3535 -j DNAT --to-destination 192.168.1.126:80
iptables        -I FORWARD -p tcp --dport 3535 -d 192.168.1.126 -j ACCEPT
Bookmark and Share
Tags:
  1. No comments yet.
  1. No trackbacks yet.
Security Code: