⬆️ ⬇️

Setting up WiMax Internet and distributing it to others via Wi-Fi in openSUSE 12.1

Introduction



During the first installation of any Linux distribution, there are almost always problems with getting the Internet and distributing it to other users if the Internet is not connected via ethernet. This often pushes newbies away from exploring and using Linux. In search of a full HOWTO on this topic for opensuse and did not find. The method of trial and error turned out this method.



WiMax Internet connection



There is no driver for WiMax modem in standard DVD. The method is suitable for devices based on the Samsung CMC-730 chip. The following devices are currently supported:

It is recommended to download the RPM in advance from here - software.opensuse.org , selecting i586 - for the 32-bit version of openSUSE 12.1, x86_64 - for the 64-bit version of the OS, throw it onto a USB flash drive for future use in a freshly installed OS. After installing openSUSE, copy the file from the USB flash drive to the user's home directory.

In the future we will consider:

1. User home directory - / home / user /

2. WiMax Modem Driver File - madwimax.rpm

3. wlan0 - Wi-Fi connection

4. wimax0 - WiMax connection

Install in the terminal using zypper package manager

sudo zypper in /home/user/madwimax.rpm



In most cases, the installation does not normally register DNS'y, we will enter them, at the same time we will put the console text editor Nano, so that later we could fix the configuration files we need

sudo zypper in nano

sudo nano /etc/resolv.conf




See if we have lines in the file with nameserver, if not, add (out of habit I use the openDNS server)

nameserver 208.67.222.222

nameserver 208.67.220.220




Save by pressing CTRL + X and confirming overwriting.

Now you can connect a WiMax-modem and enjoy the Internet.



Wi-Fi setup for Internet distribution



Installing Required Packages


Install the required configuration packages using zypper

sudo zypper in hostapd dhcp-server yast2-dhcp-server



Setup of connection and DHCP server


Check for the required interfaces: wlan0 and wimax0

/sbin/ifconfig



Everything is in place, go ahead. Go to Yast, select Network Settings. If you use Network Manager, then disable it and go to manage with ifup on the Global Options tab. We turn off the Network Manager for the reason that it is still not friendly with the madwimax driver and does not show the connection. Go to the Overview tab, edit our Wi-Fi connection. Enter our settings:

IP adress - 192.168.0.1

Subnet mask - 255.255.255.0




Click Next, further settings will be left unchanged.

Now in Yast we open the DHCP Server, as the interface on which the server will distribute IP, we select wlan0 by turning on the checkbox for opening the firewall for DCHP, then in Global settings we enter:

Primary Name Server IP - 208.67.222.222

Secondary Name Server IP - 208.67.220.220

Default Gateway (Router) - 192.168.0.1

Dynamic DHCP :

Network - 192.168.0.0

Netmask - 255.255.255.0

Netmask bits - 24

First IP Adress - 192.168.0.2

Last IP Adress - 192.168.0.100




Further we include start at loading, we save everything.



Configure SuSEFirewall


Open the console and open the firewall settings file

sudo nano /etc/sysconfig/SuSEfirewall2



We do not delete anything, suddenly in the future we want to finish something for ourselves. Find the lines and enter the following parameters

#

FW_DEV_INT="wlan0"

#

FW_ROUTE="yes"

#

FW_MASQUERADE="yes"

#,

FW_MASQ_NETS="192.168.0.0/24"




Save and restart firewall

sudo /etc/init.d/SuSEfirewall2_setup restart



Soft AP setup


Copy the original configuration file and open a new one for editing.

sudo mv /etc/hostapd.conf /etc/hostapdbkp.conf

sudo nano /etc/hostapd.conf


We will write the following to the file, replacing MYAP and MYPASS with the name of your network and the password to it, respectively

# Wi-Fi

interface=wlan0

#

driver=nl80211

# ,

ssid=MYAP

#

country_code=RU

# (b, g, n)

hw_mode=g

# Wi-Fi. , 1 11

channel=9

#

logger_syslog=-1

logger_syslog_level=3

logger_stdout=-1

logger_stdout_level=2

# (SSID)

ignore_broadcast_ssid=0

#

auth_algs=1

wpa=2

wpa_key_mgmt=WPA-PSK

wpa_passphrase=MYPASS

rsn_pairwise=CCMP




Save the file. Everything is ready to launch our access point.

')

The final step. Launch access point


sudo /usr/sbin/hostapd /etc/hostapd.conf



We connect to our network another device and check the availability of the Internet.

If there is no Internet, then we check the parameters received by the device, they should be as follows:

IP- - 192.168.0.* // 2 100

- 255.255.255.0

- 192.168.0.1

DNS- 1 - 208.67.222.222

DNS- 2 - 208.67.220.220




If something from the list is missing, then we return to the point in the article where we set it up and check the correctness of the actions performed.

Source: https://habr.com/ru/post/134409/



All Articles