Wifi card as RED network interface

NethServer Version: 7.5
Module: network

Hi

sorry, google translate :slight_smile:

I’m doing a nethserver 7.5 network now.
The question would be whether I could do a RED network by getting the internet on WIFI.
How do I set up a WIFI card?
What do I need to write to / var / lib / nethserver / db / networks?

If you have answers, I would be appreciated.

I used this mini howto on my raspberry:

Here are more details about configuring wifi:

https://wiki.centos.org/HowTos/Laptops/WpaSupplicant

2 Likes

OFF-TOPIC: Funny: was looking for this :grinning:

2 Likes

Hi,

This has succeeded.
I put a wifi card in a DELL T20 server.

I’m going to figure out if she can help someone else:

/ Etc / sysconfig / wpa_supplicant

-# Use the flag “-i” before each of your interfaces, like so:
-# INTERFACES = “- ieth1 -iwlp3s2”
INTERFACES = “- iwlp3s2”

-# Use the flag “-D” before each driver, like so:
-# DRIVERS = “- Dwext”
DRIVERS = “”

-# Other arguments
-# -u Enable the D-Bus interface (required for use with NetworkManager)
-# -f Log to /var/log/wpa_supplicant.log
-# -P Write pid file to /var/run/wpa_supplicant.pid
-# required to return proper codes by init scripts (for example, double “start” at $
-# -B to daemonize that has to be used together with -P is already in wpa $
OTHER_ARGS = “- P /var/run/wpa_supplicant.pid”

/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface = / var / run / wpa_supplicant
wheel = ctrl_interface_group

network = {
SSID = “ssid”
psk = “password”
}

commands:

wpa_supplicant -iwlp3s2 -c /etc/sysconfig/wpa_supplicant.conf
systemctl start wpa_supplicant
systemctl enable wpa_supplicant
wpa_cli status

result:
Selected interface ‘wlp3s2’
BSSID = 28: 3b: 82: 82: 9b: b9
freq = 2427
ssid = DWR921
id = 0
station mode =
pairwise_cipher = CCMP
group_cipher = TKIP
key_mgmt = WPA2-PSK
wpa_state = COMPLETED
ip_address = 192.168.88.51
p2p_device_address = c0: 4a: 00: 66: 53: cc
address = c0: 4a: 00: 66: 53: cc
uuid = d7d7d734-0522-5419-8382-7dada9b41365

2 Likes

I am asking for help in configuring. I tried it as described but it does not work. I am asking for a detailed description of the configuration.

Hello,

what network card? I was a TP-LINK TL881WND.
I have set it up as described.
Send your “wpa_supplicant” settings.

I have TP link TL - WN422g

wlp0s26u1u2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500

plik /etc/sysconfig/wpa_supplicant
INTERFACES="-iwlp0s26u1u2"

[root@lab4 ~]# vim /etc/sysconfig/wpa_supplicant

[root@lab4 ~]# vim /etc/wpa_supplicant/wpa_supplicant.conf

[root@lab4 ~]# wpa_supplicant -iwlp0s26u1u2 -c /etc/sysconfig/wpa_supplicant.conf
Successfully initialized wpa_supplicant
Failed to open config file ‘/etc/sysconfig/wpa_supplicant.conf’, error: No such file or directory
Failed to read or parse configuration ‘/etc/sysconfig/wpa_supplicant.conf’.
[root@lab4 ~]# wpa_supplicant -iwlp0s26u1u2 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
Line 3: unknown global field ‘network ={’.
Line 3: Invalid configuration line ‘network ={’.
Line 4: unknown global field ‘SSID=“LG K10”’.
Line 4: Invalid configuration line ‘SSID=“LG K10”’.
Line 5: unknown global field ‘psk=“123456”’.
Line 5: Invalid configuration line ‘psk=“123456”’.
Line 6: unknown global field ‘}’.
Line 6: Invalid configuration line ‘}’.
Failed to read or parse configuration ‘/etc/wpa_supplicant/wpa_supplicant.conf’.

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network ={
SSID=“LG K10”
psk=“123456”
}

I have WPA2 PSK

vim /etc/sysconfig/network-scripts/ifcfg-wlp0s26u1u2

BOOTPROTO=dhcp
NM_CONTROLLED=no
ONBOOT=yes
PEERDNS=no
PERSISTENT_DHCLIENT=y
TYPE=Ethernet
USERCTL=no

tomorrow I’ll download the original config file from the server and compare it.

/etc/sysconfog/wpa_supplicant:

# Use the flag "-i" before each of your interfaces, like so:
#  INTERFACES="-ieth1 -iwlp3s2"
INTERFACES="-iwlp3s2"

# Use the flag "-D" before each driver, like so:
#  DRIVERS="-Dwext"
DRIVERS="Dwext"

# Other arguments
#   -u   Enable the D-Bus interface (required for use with NetworkManager)
#   -f   Log to /var/log/wpa_supplicant.log
#   -P   Write pid file to /var/run/wpa_supplicant.pid
#        required to return proper codes by init scripts (e.g. double "start" action)
#        -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
OTHER_ARGS="-P /var/run/wpa_supplicant.pid"

/etc/wpa_supplicant/wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
   ssid="DWR921"
   psk="1239123900"
}

it was the right setting for me