OpenWrt Forum Archive

Topic: Redirect Port Wan to Lan Chillispot is runing

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

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´s work .... What is the problem?????? What i need??
I need a help!!!  Thanks!!!

not sure if it helps much... but the fallowing rules always worked for me even w/ chillispot running on WhiteRussian RC4

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

Dear All,

I have openwrt router with coova chilli running on pure Access point mode but when coova chilli connected with Mesh network (which works on three different interfaces i.e AP interface for client,MP interface for internal communication and LAN interface) the access point does not redirect to login page and it does not broadcast the coova ip (192.168.182.1) on Wifi to the laptop
Can any one help me with the issues

Thanks in advance
Maxe

The discussion might have continued from here.