Optional prefixes: [g]oogle, [m]ap  
[w]ikipedia, [snopes]  

home » howto » install ipcop firewall » huawei e220 3g usb modem

Huawei E220 3G USB Modem

Table of Contents

Warning

These are my own personal notes, they relate to a UK Vodafone install, you would need to alter instructions for your location and telco.


top

Introduction

Following a failure of our Internet connection, I hastily cobbled together a new proxy server using my 3G modem. The reason I did not simply add the modem to our existing IPCop solution, was because IPCop currently only supports a single Red/WAN interface. The IPCop FAQs specifically warn against attempting multiple interfaces.

There were many instructions on the Internet, but in reality it proved to be quite straightforward. I followed these instructions, varying them slightly for Vodafone:

This was tested on IPCOP version 1.4.18, older versions may not work.


top

Configure Kernel modules

When building your IPCOP, you need to set the IPCOP to use a network adaptor for the Green Interface and a Modem to use as the Red Interface.

From the command prompt logged on as root on the IPCOP you need to edit the /etc/modules.conf file.

# nano /etc/modules.conf

Add the following lines at the bottom:

alias char-major-188 usbserial
options usbserial vendor=0x12d1 product=0x1003 maxSize=4096

Then save the file and access (Press CTRL + O and press enter then press CTRL + X).


top

Web Console - Modem

Log onto the web console and choose the Network menu and Modems. Change INIT to:

AT+CGDCONT=16,"IP","internet"


top

Web Console - Dial-up

Now select Dial-Up.

Interface = "Modem on USB0"
Enter Number = "*99#"
Username = internet
Password = internet
Authentication method = PAP
DNS = Automatic
Profile name = Vodafone

Press Save.


top

Test

Connect your 3G modem into the IPCOP box and reboot.

You should now be able to connect to the net using your 3G dongle.


top

References


top

Comments

Name*
Email*
Subject*
Comment*
Please enter the number before 3*
* Required fields

3G on Ipcop by Colin Rautenbach on Mon Sep 7 08:27:01 2009:

Hey all i followed the steps word for word and when i restart my IPCOP Firewall it just doesnt boot Help Please as i have followed your steps muliple times and still no luck please guys help would be greatly appreciated or any guidance Thanky you and god bless

Modem address speed by Carl Gratty on Thu Sep 17 18:02:42 2009:

Hi m8 nice post it worked 1st time. How did you get round it connecting at 200kb instead of the 7.2mb? Im sure its to do with the Modem baud rate setting in IPCOP but they are on a dropdown list and i havent found a way of tweeking the connection speed. ta Carl

Does not boot by Chris Roberts on Fri Jan 15 16:58:58 2010:

Yes, I also have found that on occasion it will not boot. I can only imagine that there is a bug in the hardware driver module. Generally rebooting does work. Obviously for me this was not an issue as it was only a temporary installation.

+1 on carl's post by mike on Tue Apr 6 20:16:06 2010:

I have a huawei umg181 modem, and with a few modifications changed the product code to 0x1414 and my init string is different, I am able to connect to the internet through my home network a few seconds after plugging the usb dongle in, however as Carl mentioned, i'm unable to break through 250kb/s download speed. It's just not useable this way, and I too think that the baud rate is likely the issue too much of a coincidence that the highest option in the pulldown is approx 200kb. Anyone know what file the gui is editing? maybe it can be manually edited with nano


Share

top