Maybe you need user-deny-ip & user-allow-ip in sendsms-user group,

user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1;localhost"



On Sun, Jun 14, 2009 at 6:04 PM, Brendan White <[email protected]> wrote:

>  Hi all,
>
>
>
> I have set up a bearerbox, and smsbox.  The bearerbox has an SMSC
> connection that is connecting fine.  Requesting status gives me:
>
>
>
> *****************************************
>
>
>
> Kannel bearerbox version `1.4.1'. Build `Mar 29 2008 11:04:25',
>
>    compiler `4.2.3 (Ubuntu 4.2.3-2ubuntu6)'. System Linux, release
>
>    2.6.22-14-server, version #1 SMP Sun Oct 14 23:34:23 GMT 2007, machine
>
>    i686. Hostname **********, IP
>
>    *********. Libxml version 2.6.31. Using OpenSSL 0.9.8g 19 Oct
>
>    2007. Compiled with MySQL 5.0.51a, using MySQL 5.0.51a. Using native
>
>    malloc.
>
>
>
>    Status: running, uptime 0d 0h 38m 41s
>
>
>
>    WDP: received 0 (0 queued), sent 0 (0 queued)
>
>
>
>    SMS: received 0 (0 queued), sent 0 (0 queued), store size -1
>
>
>
>    SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec
>
>
>
>    DLR: 0 queued, using internal storage
>
>
>
>    Box connections:
>
>        smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 28m 58s)
>
>
>
>    SMSC connections:
>
>        SMPP:*******.net:7004/7004:24391:VMA
> SMPP:*********:7004/7004:24391:VMA (online 2320s, rcvd 0, sent 0, failed 0,
>
>    queued 0 msgs)
>
>
>
> *******************************************
>
>
>
> The smsbox is configured as follows:
>
>
>
> group = smsbox
>
> bearerbox-host = localhost
>
> sendsms-port = 10000
>
> log-file = "/var/log/kannel/smsbox.log
>
>
>
> group = sendsms-user
>
> username = brendan
>
> password = 1234
>
>
>
> When I try send an SMS from the http interface (lynx -dump
> localhost:10000/cgi-bin/sendsms?username=brendan&password=1234&to=27836477319&text=hello)
>
>
>
> I get:
>
>
>
> /etc/kannel$    Authorization failed for sendsms
>
>
>
> I have triple checked the credentials and IP address allows, but to no
> avail.  What other reasons are there for the 403 (authorization failed)?
>
>
>
> Thanks,
>
>
>
> Brendan
>
>
>

Reply via email to