Kannel PlaySMS configarations - kannel

I have already configured Kannel and can send and receive message throw web-browser, and trying to install PlaySMS and configuring PlaySMS but now cannot send or receive message from PlaySMS interface, and PS not writing any logs. In my Apache`s logs I see that:
"GET /playsms/index.php?app=menu&inc=send_sms&op=sendsmstopv&message=Hi+u+there%2C+good+morning%21%21&errid=46 HTTP/1.0" 200 2843 "$
If somebody has experiens to work with connecting Kannel+PlaySMS pls provide me some information.

Have you setup Kannel as a gateway in PlaySMS?
Setup Kannel as a gateway:
Login as admin to PlaySMS
Click Gateway > Manage KAnnel
Enter your username (playsms) and the IP address of the server with Kannel installed. If Kannel is installed on the same server as PlaySMS enter "localhost"
Enter the Send SMS port (from your kannel.conf file in the section called "smsbox" where it says "sendsms-port")
Enter playSMS web URL (probably http://localhost/playsms)
Make sure you have an entry in your kannel.conf for playsms to connect, something like this should work:
group = sendsms-user
username = playsms
password = playsms
user-deny-ip = "*.*.*.*"
user-allow-ip = "<<see note below>>"
Please note that you should either enter the IP address of the server that PlaySMS is installed on under "user-allow-ip" OR enter "localhost" as the IP if the server is the same for both playSMS and Kannel.
Don't forget to stop and start kannel to reload the configuration file.

You need to get kannel to store it in the mysql db that playsms is using - look into the smsbox program to see how sms is handled
the bearerbox has a client smsbox connected to it, and that smsbox is handling the distribution of the sms and also wether or not to make reply

Related

Problem installing SSL Certificade in Go Lang with Echo framework (Client sent an HTTP request to an HTTPS server.)

I have build a Go server using Echo framework, i get TLS certificades and a domain name, but when i try a request i get the message "Client sent an HTTP request to an HTTPS server." and when i try acces the server from the IP address of the EC2 using the port 443, it says that the connection is not secure:
And when i change the server to the port 80 to acces through the domain name, i get the following error:
I'm starting the server using the StartTLS func
e.Logger.Fatal(e.StartTLS(":80", "/etc/letsencrypt/live/anltcsprod.enrtt.com/fullchain.pem", "/etc/letsencrypt/live/anltcsprod.enrtt.com/privkey.pem"))
Is it something wrong with my domain or certificade?
Port 80, by default, communicates over HTTP. 443 is reserved for HTTPS traffic. Assuming nothing else is wrong, you should be able to simply change your e.StartTLS() to this:
e.Logger.Fatal(e.StartTLS(":443", "/etc/letsencrypt/live/anltcsprod.enrtt.com/fullchain.pem", "/etc/letsencrypt/live/anltcsprod.enrtt.com/privkey.pem"))
For example localhost:4000
Instead use https://localhost:4000

Vsftp passive mode configuration on ec2 instance

I'm trying to configure a vsftp server on one of my ec2 instances but when I try to connect via a ftp client in passive mode I receive the error message "Server sent passive reply with unroutable address. Passive mode failed."
I have added to my vsftpd.conf file the following lines
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
port_enable=YES
pasv_address=xxx.xxx.xxx.xxx
and I have configured ports 20,21 and 1024-1048 in my security group.
What am I missing?
I find the solution to the problem...
If the instance has and ipv6 address associated vsftpd(bug? desired behaviour? who knows...) will always return 0.0.0.0 as remote address.
You can avoid this behaviour setting this parameters:
listen=YES
listen_ipv6=NO

IRC Protocol - Registration to Server with Password

I'm trying to write a Python IRC script. It is not connecting to my UnrealIRCD server, so I tried it with TELNET:
telnet xx.xx.xx.xx 6667
Trying xx.xx.xx.xx...
Connected to xx.xx.xx.xx.
Escape character is '^]'.
PASS MYSERVERPASS
NICK MYNICKNAME
PING :7EF7F35D
USER MyUserName 8 * :MY REALNAME
After this connection, it doesn't accept the registration and times out. When I try to connect via telnet to an EFnet server, for instance, this process works fine.
So, does anyone have an idea what is wrong with the registration process?
Other clients and Eggdrop Bots can connect to the server with no problem. So I don't understand why these simple protocol commands are not working.
I assume this message was sent by the server:
PING :7EF7F35D
You have to reply to it, with this message:
PONG :7EF7F35D
(change the payload of the PONG to match the one in the PING)
This is probably required by the server to avoid attacks.

Possible to Send Email from Exchange Account via Mac Terminal?

I would like to send an email from my Exchange email account via Mac Terminal. Is this possible, and if so, how would I go about doing so? I'm running OS X 10.10.5 and have my email set up on Microsoft Outlook 2011 for Mac. Thanks for the help!
Assuming you don't want to send email from your Outlook client for whatever reason, you'll need your user and pass in base64 handy to cut/past into the terminal. Go here for an example: How to test SMTP Auth using telnet
This comes with caveats. This is not SSL, so you're using SMTPS or StartTLS you'll need to do this all via OpenSSL s_client like this: Test SSL SMTP from command line
I've used these in the past and they work. If it doesn't work, you'll need to find out what SMTP connection strings are allowed. For clients I always ran SMTP Client Submission which listens on 587 and required STARTTLS prior to Auth. SMTPS on 465 was disabled...Lemme know if this works.
-Chase

Kannel and receive SMS from other SMPP to my system

I'm using kannel SMPP (kannel.org) and for me need more information how to receive SMS messages from other SMPP server.
I know, for me need to add to kannel config this:
group = sms-service
keyword =
keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://website/sms.php?sender=%p&text=%a"
I need to add user for SMS pull'ing, but found only this example:
group = sendsms-user
username = ***************
password = hard2guess
concatenation= true
max-messages = 10000
But here is for sending SMS user, not for pull'ing.
Can somebody tell me more about how to create account for other SMPP server and receive SMS messages from other SMPP server?
If you have SMPP account adding SMPP information is easy all you need is add a new SMPP group
Sample SMPP Configuration (Transceiver Mode)
group = smsc
smsc = smpp
system-type=
smsc-username = user
smsc-password = pass
host = x.x.x.x
port = 10000
transceiver-mode = true
my-number = 123456
interface-version = 34
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
enquire-link-interval = 60
reconnect-delay = 60
log-file = "/var/log/kannel/smsc.log"
log-level = 1
I hope thi shelps
Thanks
:)
It sounds like you want to allow a client to connect to you on SMPP and send messages via your system. If this is correct then you need to be a SMPP SMSC and currently your kannel is only acting as an ESME .
To get Kannel to act as a SMSC you need to install a version of SMPP which will act as a SMSC and allow clients to connect to send a message. Because Kannel doesn't have this built in you can try installing the open source software called OpenSMPPBox
OpenSMPPBox is included in the Addons folder of the latest Kannel development release (version 1.5.0). You'll need to install this via SVN to get the code and then compile this on your machine to get OpenSMPPBox up and running. You have to also download the latest version of kannel's source code in order to compile OpenSMPPBox.
Once you have installed OpenSMPPBox it connects to Kannel's Bearerbox and operates as a way to allow clients to connect to you on SMPP and then route messages straight to Kannel. When it is running you can set a username and password for a client and give them your server IP to connect.
There's a Manual for OpenSMPPBox which will help with the installation and configuration.
one very important thing that you might need to verify from your SMPP provider is the version they are running on. If the version is lower than 3.4, then you will be required to switch off the transceiver-mode by commenting it out from your kannel.conf file. Failure to do this will result into an endless loop of Kannel trying to connect to the SMPP without any success.
Best of luck.

Resources