Article Title: how to build a mobile WAP gateway in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
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 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 for bearerbox to listen to HTTP management commands. It can be set to any port above 1023 admin-port = 13333 # specify whether to enable SSL admin-port-ssl = false # the password of the HTTP management command admin-password = yourpasswd # Request Kannel status password. If no password is set, no password is required.
Status-password = rose123 # reject connections from this ip address admin-deny-IP = "123.123.123.123" # allow connections from these ip addresses. you can use the wildcard admin-allow-ip = "*. *. *. * "# port used for wapbox connection. If not, then, Kannel cannot process the WAP transmission wapbox-port = 13002 # reject the connection box-deny-ip = "123.123.123.123" # Allow these IP addresses to connect to the WAP unit, you can use the wildcard box-allow-ip = "*. *. *. * "# reject UDP packets from this IP address udp-deny-ip =" 123.123.123.123 "# allow UDP packets from this IP address. you can use the wildcard udp-allow-ip = "*. *. *. * "# if this parameter is set, Kannel will listen to the wap udp packet from Port 9200 to Port 9208 of the specified IP address.
# If no specific limitation is required, you can use only one asterisk wdp-interface-name = "*" # log file-file = "kannel. log "# log level #0 scheduling #1 information #2 warning #3 error #4 fatal problem log-level = 1 # WAPBOX group configuration information # required variable group = wapbox # run bearerbox bearerbox-host = localhost # timer verification frequency timer-freq = 1 # log file = "wap. log "# log level #0 scheduling #1 information #2 warning #3 error #4 fatal problem log-level = 1
[1] [2] Next page