[Chilli] Assign ip to HS_LANIF interface

Alexandru Gheorghe alghe.global at gmail.com
Tue Nov 4 16:28:48 UTC 2014


On 11/04/2014 06:12 PM, Giovanni Bezicheri wrote:
> The coova chilli init script removes the ip address from HS_LANIF
> interface.
> Anyone experiments any side effects by assigning an ip to the HS_LANIF
> interface (commenting "ifconfig $HS_LANIF 0.0.0.0" line)? Is that a good
> practice?

HS_LANIF interface shouldn't have any ip assigned to it, it's merely
used as an interface to the kernel in order to capture the traffic (tun
driver)

the 0.0.0.0 is a good practice, yes


>> start() {
>>      echo -n $"Starting $prog: "
>>
>>      check_required
>>
>>      /sbin/modprobe tun >/dev/null 2>&1
>>      echo 1 > /proc/sys/net/ipv4/ip_forward
>>
>>      [ -e /dev/net/tun ] || {
>>          (cd /dev; mkdir net; cd net; mknod tun c 10 200)
>>      }
>>
>>      writeconfig
>>      radiusconfig
>>
>>      test ${HS_ADMINTERVAL:-0} -gt 0 && {
>>          (crontab -l 2>&- | grep -v $0
>>          echo "*/$HS_ADMINTERVAL * * * * $0 radconfig") | crontab - 2>&-
>>      }
>>
>>      ifconfig $HS_LANIF 0.0.0.0
>>
>>      daemon $exec -c $CONFIG
>>      retval=$?
>>      echo
>>      [ $retval -eq 0 ] && touch $lockfile
>>      return $retval
>> }
> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli

-- 
; Alexandru Gheorghe
; alghe.global {at} gmail {dot} com
; OpenPGP key ID 0xCAF985D2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.coova.org/pipermail/chilli/attachments/20141104/61615952/attachment.pgp>


More information about the Chilli mailing list