
Good day.
In this topic, I want to tell how you can configure the Internet from Freshtel (the only WiMax provider in Kiev) in Linux. Connection to Freshtel is carried out via modem. Alas, none of the modems offered by freshtel is supported by Linux. Therefore, the setting will be through Windows on the virtual machine.
Initial data:
- Host: Ubuntu 10.04
- Guest OS: Windows XP SP3
- VirtualBox with tuned usb forvading
- Modem Seowon SWU-3220A
Caution traffic.
General scheme
Since drivers for Linux do not exist, we will get native support from Windows. Then, connecting to the Internet from a virtual machine, we will create an internal network between the host and the guest OS and share the Internet to the host. Yes, yes, to connect to the Internet, we need to keep the virtual machine running.
')
Configure VirtualBox
For the virtual box to work correctly, you need to make sure that the necessary kernel modules are loaded:
$ lsmod | grep vbox
vboxnetadp 6390 0
vboxnetflt 12740 1
vboxdrv 168721 3 vboxnetadp,vboxnetflt
Open
VirtualBox
, click
File → Settings ,
Network tab. If a network has already been created, leave it; if not, create it.

Editing the network. In the
Adapter IPv4 tab, the
address is assigned to any of the 192.168.0 subnets, the rest is left as is.

In the next tab, disable the DHCP server.

Setting up a Windows virtual machine
This guide assumes that you already have Windows installed and are configured to work with USB. Open the Windows virtual machine settings.
USB tab. We need to add filters for the modem in order not to make it available for Windows manually every time. My modem works in two modes: CD-ROM and, in fact, a modem. through
lsusb
we learn VendorID and ProductID for each of the modes. For
Seowon SWU-3220A, these are
1076:7f40
and
1076:7f00
respectively. Add two filters.

Go to the
Network tab. We leave only one adapter active. We set the
connection type in the
virtual host adapter .

Go to the
Display tab and turn on the remote desktop (
rdesktop ).

Windows Setup
We start the virtual computer with Windows. If USB filters are correctly specified, the modem should normally be defined as a CD-ROM.

Install the driver.

Launch
Freshtel Internet Access and connect to the Internet.

Sign in? Fine. Check the speed of the Internet and proceed to the distribution of the Internet to the host.
Internet distribution
On Windows, two interfaces will be available in
Network Connections . One is the connection with the host, the second is with the Internet. In this case, the connection with the host can be highlighted with an exclamation mark, because there is no DHCP server on the network.

Do not forget how to distribute the Internet in Windows? Right-click on the interface with the Internet →
Properties → the
Advanced tab → put a check.

Automatically another interface will be assigned a 192.168.0.1 IP address.

Everything. On Windows, the setup is complete. Now you need to register
dhclient vboxnet0
from the root in the host so that the interface settings are assigned via DHCP (which is on Windows). Decisive ping, and voila!

Conclusion
The observant reader will notice that we have not used the remote desktop anywhere. And correctly notice.
For convenience, we will run the virtual machine from the console in the background, and use
rdesktop
for management. We start the virtual machine:
VBoxHeadless -s Windows &
, where Windows is the name of the virtual machine. Ampersand at the end of the command means that the process will be launched in the background. To connect to the remote desktop, run
rdesktop localhost:3389
.
Have a good day!