<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1157111&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Coovachilli : problème de redirection]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1157111</link>
		<description><![CDATA[Les sujets les plus récents dans Coovachilli : problème de redirection.]]></description>
		<lastBuildDate>Mon, 04 Feb 2013 13:01:28 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Coovachilli : problème de redirection]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12461061#p12461061</link>
			<description><![CDATA[<p>Bonjour ramaC,</p><p>Je constate que dans ton /etc/init.d/chilli, tu as</p><div class="codebox"><pre><code>START_CHILLI=0</code></pre></div><p>Si tu n&#039;as pas encore essayé, change le paramètre en :</p><div class="codebox"><pre><code>START_CHILLI=1</code></pre></div><p>En espérant que ça puisse t&#039;aider.</p>]]></description>
			<author><![CDATA[dummy@example.com (dwarf72)]]></author>
			<pubDate>Mon, 04 Feb 2013 13:01:28 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12461061#p12461061</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Coovachilli : problème de redirection]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12129311#p12129311</link>
			<description><![CDATA[<p>personne pour m&#039;aider????:(</p>]]></description>
			<author><![CDATA[dummy@example.com (ramaC)]]></author>
			<pubDate>Tue, 08 Jan 2013 10:07:44 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12129311#p12129311</guid>
		</item>
		<item>
			<title><![CDATA[Coovachilli : problème de redirection]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12084171#p12084171</link>
			<description><![CDATA[<p>Bonjour! <br />Je travaille sur un projet de portail captif avec CoovaChilli,<br />mon système: Ubuntu server 10.04 LTS<br />j&#039;ai suivi le tutoriel: <a href="http://doc.ubuntu-fr.org/coovachilli">http://doc.ubuntu-fr.org/coovachilli</a><br />j&#039;ai un probleme de redirection; la page d&#039;authnetificaion ne s&#039;affiche pas, et je sais pas comment resoudre,</p><p>voici mon /etc/chilli/config:</p><div class="codebox"><pre class="vscroll"><code># -*- mode: shell-script; -*-
#
#   Coova-Chilli Default Configurations.
#   To customize, copy this file to /etc/chilli/config
#   and edit to your liking. This is included in shell scripts
#   that configure chilli and related programs before file &#039;config&#039;.


###
#   Local Network Configurations
#

# HS_WANIF=eth0            # WAN Interface toward the Internet
HS_LANIF=eth1              # Subscriber Interface for client devices
HS_NETWORK=192.168.10.0    # HotSpot Network (must include HS_UAMLISTEN)
HS_NETMASK=255.255.255.0   # HotSpot Network Netmask
HS_UAMLISTEN=192.168.10.1          # HotSpot IP Address (on subscriber network)
HS_UAMPORT=3990            # HotSpot UAM Port (on subscriber network)
HS_UAMUIPORT=4990          # HotSpot UAM &quot;UI&quot; Port (on subscriber network, for embedded portal)

# HS_DYNIP=
# HS_DYNIP_MASK=255.255.255.0
# HS_STATIP=
# HS_STATIP_MASK=255.255.255.0
# HS_DNS_DOMAIN=

# OpenDNS Servers

HS_DNS1=192.168.1.1
HS_DNS2=8.8.8.8

###
#   HotSpot settings for simple Captive Portal
#
HS_NASID=nas01
HS_RADIUS=127.0.0.1
HS_RADIUS2=127.0.0.1
HS_UAMALLOW=www.coova.org,www.google.com,192.168.10.0/24,192.168.1.1,8.8.8.8
HS_RADSECRET=ncri    # Set to be your RADIUS shared secret
HS_RADSECRET=ncri    # Set to be your RADIUS shared secret
HS_UAMSECRET=ncri     # Set to be your UAM secret
HS_UAMALIASNAME=chilli

#  Configure RADIUS proxy support (for 802.1x + captive portal support)
# HS_RADPROXY=on
# HS_RADPROXY_LISTEN=127.0.0.1
# HS_RADPROXY_CLIENT=127.0.0.1
# HS_RADPROXY_PORT=1645
# HS_RADPROXY_SECRET=$HS_RADSECRET
#  Example OpenWrt /etc/config/wireless entry for hostapd
#    option encryption wpa2
#    option server $HS_RADPROXY_LISTEN
#    option port $HS_RADPROXY_PORT
#    option key $HS_RADPROXY_SECRET


#   To alternatively use a HTTP URL for AAA instead of RADIUS:
# HS_UAMAAAURL=http://my-site/script.php

#   Put entire domains in the walled-garden with DNS inspection

#   The server to be used in combination with HS_UAMFORMAT to
#   create the final chilli &#039;uamserver&#039; url configuration.

HS_UAMSERVER=$HS_NETWORK

#   Use HS_UAMFORMAT to define the actual captive portal url.
#   Shell variable replacement takes place when evaluated, so here
#   HS_UAMSERVER is escaped and later replaced by the pre-defined
#   HS_UAMSERVER to form the actual &quot;--uamserver&quot; option in chilli.

HS_UAMFORMAT=https://\$HS_UAMSERVER/uam/index.html

#   Same principal goes for HS_UAMHOMEPAGE.

HS_UAMHOMEPAGE=http://\$HS_UAMLISTEN:\$HS_UAMPORT/www/coova.html

#   This option will be configured to be the WISPr LoginURL as well
#   as provide &quot;uamService&quot; to the ChilliController. The UAM Service is
#   described in: http://www.coova.org/CoovaChilli/UAMService
#

HS_UAMSERVICE=https://192.168.10.1/cgi-bin/hotspotlogin.cgi

###
#   Firewall issues
#
# Uncomment the following to add ports to the allowed local ports list
# The up.sh script will allow these local ports to be used, while the default
# is to block all unwanted traffic to the tun/tap.
#
#HS_TCP_PORTS=&quot;80 443&quot;

###
#   Standard configurations
#
HS_MODE=hotspot
HS_TYPE=chillispot
# HS_RADAUTH=1812
# HS_RADACCT=1813


HS_ADMUSR=chillispot
HS_ADMPWD=chillispot


###
#   Post-Auth proxy settings
#
# HS_POSTAUTH_PROXY=&lt;host or ip&gt;
# HS_POSTAUTH_PROXYPORT=&lt;port&gt;

#   Directory specifying where internal web pages can be served
#   by chilli with url /www/&lt;file name&gt;. Only extentions like .html
#   .jpg, .gif, .png, .js are allowed. See below for using .chi as a
#   CGI extension.
HS_WWWDIR=/etc/chilli/www
#   Using this option assumes &#039;haserl&#039; is installed per-default
#   but, and CGI type program can ran from wwwsh to process requests
#   to chilli with url /www/filename.chi
HS_WWWBIN=/etc/chilli/wwwsh

#   Some configurations used in certain user interfaces
#
HS_PROVIDER=Coova
HS_PROVIDER_LINK=http://www.coova.org/


###
#   WISPr RADIUS Attribute support
#

HS_LOC_NAME=&quot;My HotSpot&quot;           # WISPr Location Name and used in portal

#   WISPr settings (to form a proper WISPr-Location-Id)
# HS_LOC_NETWORK=&quot;My Network&quot;      # Network name
# HS_LOC_AC=408                    # Phone area code
# HS_LOC_CC=1                      # Phone country code
# HS_LOC_ISOCC=BF                  # ISO Country code</code></pre></div><br /><p>et /etc/init.d/chilli:</p><div class="codebox"><pre class="vscroll"><code>#! /bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/chilli
NAME=chilli
DESC=chilli

START_CHILLI=0

if [ -f /etc/default/chilli ] ; then
   . /etc/default/chilli
fi

if [ &quot;$START_CHILLI&quot; != &quot;1&quot; ] ; then
   echo &quot;Chilli default off. Look at /etc/default/chilli&quot;
   exit 0
fi

test -f $DAEMON || exit 0
. /etc/chilli/functions

MULTI=$(ls /etc/chilli/*/chilli.conf 2&gt;/dev/null)
[ -z &quot;$DHCPIF&quot; ] &amp;&amp; [ -n &quot;$MULTI&quot; ] &amp;&amp; {
    for c in $MULTI; 
    do
        echo &quot;Found configuration $c&quot;
        DHCPIF=$(basename $(echo $c|sed &#039;s#/chilli.conf##&#039;))
        export DHCPIF

export DHCPIF
        echo &quot;Running DHCPIF=$DHCPIF $0 $*&quot;
        sh $0 $*
    done
    exit
}

if [ -n &quot;$DHCPIF&quot; ]; then
    CONFIG=/etc/chilli/$DHCPIF/chilli.conf
else
    CONFIG=/etc/chilli.conf
fi

[ -f $CONFIG ] || {
    echo &quot;$CONFIG Not found&quot;
    exit 0
}

check_required

RETVAL=0


prog=&quot;chilli&quot;

case &quot;$1&quot; in
  start)
        echo -n &quot;Starting $DESC: &quot;
        /sbin/modprobe tun &gt;/dev/null 2&gt;&amp;1
        echo 1 &gt; /proc/sys/net/ipv4/ip_forward

        writeconfig
        radiusconfig
 test ${HS_ADMINTERVAL:-0} -gt 0 &amp;&amp; {    
            (crontab -l 2&gt;&amp;- | grep -v $0
                echo &quot;*/$HS_ADMINTERVAL * * * * $0 radconfig&quot;
                ) | crontab - 2&gt;&amp;-
        }

        ifconfig $HS_LANIF 0.0.0.0

        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.$HS_LANIF.pid \

           --exec $DAEMON -- -c $CONFIG
        RETVAL=$?
        echo &quot;$NAME.&quot;
        ;;
    
    checkrunning)
        check=`start-stop-daemon --start --exec $DAEMON --test`
        if [ x&quot;$check&quot; != x&quot;$DAEMON already running.&quot; ] ; then
            $0 start
        fi
;;
    
    radconfig)
        [ -e $MAIN_CONF ] || writeconfig
        radiusconfig
        ;;
    
    restart)
        $0 stop
        sleep 1
 $0 start
        RETVAL=$?
        ;;
    
    stop)
        echo -n &quot;Stopping $DESC: &quot;

        crontab -l 2&gt;&amp;- | grep -v $0 | crontab -


 start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.$HS_LANIF.p$
            --exec $DAEMON
        echo &quot;$NAME.&quot;
        ;;
    
    reload)
        echo &quot;Reloading $DESC.&quot;
        start-stop-daemon --stop --signal 1 --quiet --pidfile \
            /var/run/$NAME.$HS_LANIF.pid --exec $DAEMON
        ;;
  condrestart)
        check=`start-stop-daemon --start --exec $DAEMON --test`
        if [ x&quot;$check&quot; != x&quot;$DAEMON already running.&quot; ] ; then
            $0 restart
            RETVAL=$?
        fi
        ;;
    
    status)
 status chilli
        RETVAL=$?
        ;;
    
    *)
        N=/etc/init.d/$NAME
        echo &quot;Usage: $N {start|stop|restart|condrestart|status|reload|radconfig}&quot; &gt;&amp;2
        exit 1
        ;;
esac
exit 0</code></pre></div><br /><br /><p>svp si vous pouvez m&#039;aider, c&#039;est vraiment urgent, <br />merci d&#039;avance</p>]]></description>
			<author><![CDATA[dummy@example.com (ramaC)]]></author>
			<pubDate>Fri, 04 Jan 2013 14:12:15 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12084171#p12084171</guid>
		</item>
	</channel>
</rss>
