Build a mobile WAP gateway on Linux

Source: Internet
Author: User
Create a mobile WAP gateway on Linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. I checked a lot of information and finally was able to build a WAP gateway on Linux! After the establishment, you can use your own WAP gateway to browse wireless network content! Try to discard the gateway parameters provided by China Mobile and use the diy wap Gateway. It's cool!

I. System Requirements
Libxml2 library 2.2.5 or later is required. This XML library is required to install and compile the gateway.

Run the following command to check whether the libxml2 library has been installed:
# Rpm-qa | grep libxml2

2. Establish a WAP Gateway
The prices of many commercial WAP gateways are staggering! It is not for personal use at all. However, a WAP Gateway named Kannel is completely free! Kannel is an open-source WAP Gateway project. After installation, you can also customize gateway parameters. Build your own personalized WAP Gateway!

1. Download and install
Currently the latest stable version of Kannel version is 1.4.0, can be downloaded in the http://www.kannel.org. Install the SDK after the download:

# Tar xzvf gateway-1.4.0.tar.gz
# Mv gateway-1.4.0/usr/local/kannel
# Cd/usr/local/kannel
#./Configure -- enable-start-stop-daemon
# Make
# Make bindir =/usr/local/bin install

2. Configure the Gateway
# Vi gw/wapkannel. conf

# Kannle wap sample configuration document
# Created by Nanu
# Http://nanu.8866.org
# This is a required variable core
Group = core
# Port number used by bearerbox to listen for HTTP management commands. Can be set to any port above 1023
Admin-port = 13333
# Specify whether to enable SSL
Admin-port-ssl = false
# HTTP management command Password
Admin-password = yourpasswd
# Request the password in the Kannel status. If no password is set, no password is required.
Status-password = rose123
# Rejecting connections from this IP address
Admin-deny-ip = "123.123.123.123"
# Allow connections from these IP addresses and use wildcards
Admin-allow-ip = "*.*.*.*"
# The port used for wapbox connection. If no value is set, the Kannel cannot process WAP transmission.
Wapbox-port = 13002
# Rejecting connections from this IP address
Box-deny-ip = "123.123.123.123"
# Allow connections of these IP addresses to WAP units. Wildcards can be used.
Box-allow-ip = "*.*.*.*"
# Reject UDP packets from this IP address
Udp-deny-ip = "123.123.123.123"
# Allow UDP data packets from this IP address. Wildcards can be used.
Udp-allow-ip = "*.*.*.*"
# If this parameter is set, Kannel listens to wap udp packets from Port 9200 to port 9208 of the specified IP address.
# If you do not need a specific limitation, you can use only one Asterisk
Wdp-interface-name = "*"
# Log files
Log-file = "kannel. log"
# Log Level
#0 Scheduling
#1 Information
#2 warning
#3 errors
#4 fatal problems
Log-level = 1
# WAPBOX group configuration information
# Required variables
Group = wapbox
# Bearerbox computer
Bearerbox-host = localhost
# Timer verification frequency
Timer-freq = 1
# Log files
Log-file = "wap. log"
# Log Level
#0 Scheduling
#1 Information
#2 warning
#3 errors
#4 fatal problems
Log-level = 1

3. Start the Gateway
Bearerbox must be started before wapbox can be started. Bearerbox is the basic part of the gateway, so it must be started first.

Start bearerbox:
./Bearerbox-v 1/usr/local/kannel/gw/wapkannel. conf

Start wapbox:
./Wapbox-v 1/usr/local/kannel/gw/wapkannel. conf

3. Manage the gateway through HTTP
Available commands:
Http: // localhost: 13333/shutdown? Password = yourpasswd (disable the gateway)
Http: // localhost: 13333/status? Password = yourpasswd (obtain the Gateway status)
Http: // localhost: 13333/resume? Password = yourpasswd (continue running the gateway)

Note:
13333: port specified for admin-port in the configuration file
Password: password specified for admin-password in the configuration file

4. Use a mobile phone or simulator that supports WAP for testing
1. Make sure that the corresponding WAP port is enabled for Linux IPTABLES or other firewalls;

2. Modify the WAP Gateway parameter in your mobile phone or mobile phone simulator to the IP address of the Linux operating system;

3. Access a WML page-Based WAP site. If the site can be accessed, the access is successful.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.