Topic: Redirect Port Wan to Lan Chillispot is runing

Hi,

My problem is that i need redirect the port "555" of WAN to 192.168.x.x:80 of lan when chillispot is running.

I edit the /etc/firewall.user and add:

#accept wan to lan rules
iptables -A forwarding_rule -i $WAN -o $lan -j ACCEPT
#open port 555
iptables -t nat -A prerouting_wan -p tcp --dport 555 -j ACCEPT
iptables -A input_wan -p tcp --dport 555 -j ACCEPT
#redirect port wan to lan
iptables -t nat -A prerouting_wan -p tcp --dport 555 -j DNAT --to 192.168.100.50:80
iptables -A forwarding_wan -p tcp --dport 80 -d 192.168.100.50 -j ACCEPT

When the chillispot is disabled the rule works fine, but when active the chillispot the rule dont

Re: Redirect Port Wan to Lan Chillispot is runing

try this

iptables -t nat -A prerouting_rule -i $WAN -p tcp --dport 555 -j DNAT --to 192.168.x.x:80
iptables -A forwarding_rule -i $WAN -p tcp --dport 80 -d 192.168.x.x -j ACCEPT