Topic: installation CentOS not redirect welcome login page

Hi everbody!
I have many questions... and need some help.
i have the following scenario: I have a Server (CentOS) with 2 network cards.
The two network cards are connected to the same switch.
eth0 192.168.210.1/16 Internal lan of access points
eth1  192.168.0.9/16 External lan and internet

My chilli.conf is:
net 192.168.210.0/16
dynip 192.168.210.0/16
dns1 192.168.0.2
radiusserver1 127.0.0.1
radiusserver2 127.0.0.1
radiussecret thesecret
dhcpif eth0
uamserver https://192.168.210.1/cgi-bin/hotspotlogin.php
uamsecret uamsecretkey
uamlisten 192.168.210.1
uamport 3990
uamallowed 192.168.210.1,192.168.0.2


When i connect to the wifi network, i get the dynamic ip of the chilli but when i go to browse internet not redirect to login page and i can navigate
without ask any user and password.

Sorry about my english and thanks

Re: installation CentOS not redirect welcome login page

hotspotlogin.php??  why not use the perl script hotspotlogin.cgi??

Re: installation CentOS not redirect welcome login page

1、enable ip forward
2、run firewall.iptable script before start  chilli

Re: installation CentOS not redirect welcome login page

Thanks, but still no work ...
Now i can not navigate, error dns
I can access to the login page if i put the direction in navigator.
I log in but nothing. I can't resolve dns.

Any other help? Thanks

Re: installation CentOS not redirect welcome login page

Solved, the problem was with firewall rules. Thanks

Re: installation CentOS not redirect welcome login page

Sorry, i have the same problem, but i can't resolve it. What was the problem with the firewall rules ?
Thanks ....

Re: installation CentOS not redirect welcome login page

I have the same problem.

I have a ath0 and eth0... when I connect with ath0 from another computer, i get the a DHCP from Chilli but it does not redirect me to the login page. When I try to force it to http://192.168.182.1/ and then log in. I am able to authenticate but I still am not able to browse the internet.

The box/server can ping outside connection
I used apt-get install for freeradius and freeradius-mysql  and chillispot
I used svn for madwifi

please help  quibski@gmail.com

Re: installation CentOS not redirect welcome login page

Am in cent OS router can browse without being directed to the login page. whenever i apply the firewall.iptables script the router even stops working.

eth0 192.168.21.43 external internet
eth1 192.168.182.1 internal lan

Currently my router works fine with the following /etc/sysconfig/iptables firewall rules.

# Generated by iptables-save v1.3.5 on Fri May 22 06:11:36 2009
*nat
:PREROUTING ACCEPT [4616:519611]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [1:73]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Fri May 22 06:11:36 2009
# Generated by iptables-save v1.3.5 on Fri May 22 06:11:36 2009
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [824:94907]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A INPUT -i eth1 -j ACCEPT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT
# Completed on Fri May 22 06:11:36 2009

Any suggestions on how to manipulate the rules to suit chilli would be appreciated. Thanks

Re: installation CentOS not redirect welcome login page

Here is the saved iptables rules after applying firewall.iptables from chillispot docs


# Generated by iptables-save v1.3.5 on Sat May 23 05:12:41 2009
*mangle
:PREROUTING ACCEPT [1536:156906]
:INPUT ACCEPT [663:77454]
:FORWARD ACCEPT [83:9382]
:OUTPUT ACCEPT [206:30088]
:POSTROUTING ACCEPT [210:30358]
COMMIT
# Completed on Sat May 23 05:12:41 2009
# Generated by iptables-save v1.3.5 on Sat May 23 05:12:41 2009
*filter
:INPUT DROP [18:5514]
:FORWARD ACCEPT [4:270]
:OUTPUT ACCEPT [206:30088]
:RH-Firewall-1-INPUT - [0:0]
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -i eth0 -p tcp -m tcp --dport 22 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A RH-Firewall-1-INPUT -i eth1 -p tcp -m tcp --dport 22 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
#-A RH-Firewall-1-INPUT -i eth0 -j REJECT --reject-with icmp-port-unreachable
#-A RH-Firewall-1-INPUT -i eth1 -j DROP
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 80 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 443 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 3990 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A FORWARD -i eth1 -j DROP
-A FORWARD -o eth1 -j DROP
COMMIT
# Completed on Sat May 23 05:12:41 2009
# Generated by iptables-save v1.3.5 on Sat May 23 05:12:41 2009
*nat
:PREROUTING ACCEPT [5768:594546]
:POSTROUTING ACCEPT [2:72]
:OUTPUT ACCEPT [18:1081]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Sat May 23 05:12:41 2009

Am Just not that good with iptables maybe this will help shade some light on why the router does not work after applying this rules and chillispot redirect does not work too. Also need to ssh from the internal interface.
Thanks

Re: installation CentOS not redirect welcome login page

Opps sorry i had modified the above rules while trying to troubleshoot. Here is the original rules from the docs folder.

# Generated by iptables-save v1.3.5 on Sat May 23 05:12:41 2009
*mangle
:PREROUTING ACCEPT [1536:156906]
:INPUT ACCEPT [663:77454]
:FORWARD ACCEPT [83:9382]
:OUTPUT ACCEPT [206:30088]
:POSTROUTING ACCEPT [210:30358]
COMMIT
# Completed on Sat May 23 05:12:41 2009
# Generated by iptables-save v1.3.5 on Sat May 23 05:12:41 2009
*filter
:INPUT DROP [18:5514]
:FORWARD ACCEPT [4:270]
:OUTPUT ACCEPT [206:30088]
:RH-Firewall-1-INPUT - [0:0]
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -i eth0 -p tcp -m tcp --dport 22 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A RH-Firewall-1-INPUT -i eth0 -j REJECT --reject-with icmp-port-unreachable
-A RH-Firewall-1-INPUT -i eth1 -j DROP
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 80 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 443 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 3990 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A FORWARD -i eth1 -j DROP
-A FORWARD -o eth1 -j DROP
COMMIT
# Completed on Sat May 23 05:12:41 2009
# Generated by iptables-save v1.3.5 on Sat May 23 05:12:41 2009
*nat
:PREROUTING ACCEPT [5768:594546]
:POSTROUTING ACCEPT [2:72]
:OUTPUT ACCEPT [18:1081]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Sat May 23 05:12:41 2009

Re: installation CentOS not redirect welcome login page

wow....nice post.....
sales tracking software

Re: installation CentOS not redirect welcome login page

Hi all,

I have same problem with litogeno and I don't know how to fix it.

After running the firewall scripts coming with chilli, nothing happened when surfing. no login page, no error message in browser.

Can anybody show her/his experience on chilli+CentOS?

Thanks in advance.