Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Transition to iwd from wpa_supplicant for EAP/PEAP/PWD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dartleader
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2019
Posts: 119

PostPosted: Fri Jan 19, 2024 3:50 pm    Post subject: Transition to iwd from wpa_supplicant for EAP/PEAP/PWD Reply with quote

Hey everyone,

I'm transitioning over to iwd after using wpa_supplicant for years and so far I'm impressed.

However, I'm struggling to connect to my university's network. I am able to connect using wpa_supplicant and my phone, but cannot connect with iwd.

The following information works fine in wpa_supplicant:

Code:
 network={
   ssid="SCHOOLNETWORK"
   key_mgmt=WPA-EAP
   eap=PEAP
   identity="username@schooldomain.ca"
   password="password"
}


However, when I read the documentation for iwd at https://iwd.wiki.kernel.org/networkconfigurationsettings and in the iwd.network manpage, I think I need more information, specifically the Phase2-Method. I was never provided a certificate, so that's not it. How would I determine what PEAP method my school network uses?

I also suspect I might want to be using EAP-PWD? I notice it doesn't require a certificate, only a username and password.

I've been playing around in my config file for a while and all I get whenever I try and connect to the network is "Not configured".

Thanks!

Here are two different config files I have tried to use:
Code:
[Security]
EAP-Method=PWD
EAP-Identity=username@schooldomain.ca



Code:
[Security]
EAP-Identity=username@schooldomain.ca
EAP-Method = PEAP

EAP-PEAP-ServerDomainMask=*.schooldomain.ca
EAP-PEAP-Phase2-Identity=username





Output of emerge --info iwd

Code:
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/hardened, gcc-12, glibc-2.38-r9, 6.6.10-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.10-x86_64-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.38
KiB Mem:    15733868 total,  13640784 free
KiB Swap:   33554424 total,  33554424 free
Head commit of repository gentoo: 4fad0489edd2d1f13ce30da1c8ad8eefa9e438c1

Timestamp of repository haskell: Tue, 16 Jan 2024 02:07:04 +0000
Head commit of repository haskell: e6e4d7d8ddf47e6415a15de4b83625c519da1cdb

Head commit of repository librewolf: 2e7225f295e1c6fda913be45be6111ba26149a39

Timestamp of repository pentoo: Thu, 18 Jan 2024 18:03:10 +0000
Head commit of repository pentoo: e0b9c7c8eb2c0ce65241bc14af24dabf5ea53896

Timestamp of repository steam-overlay: Wed, 17 Jan 2024 23:18:13 +0000
Head commit of repository steam-overlay: 1b2ecf815a1503215214a4a8fd21c09610c46991

Timestamp of repository wayland-desktop: Sun, 14 Jan 2024 19:33:43 +0000
Head commit of repository wayland-desktop: d6b611cd1ab184c3c67475d3db2c983b3e459dc8

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r1::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230825::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             16.0.6::gentoo, 17.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://gitweb.gentoo.org/repo/gentoo.git
    priority: -1000
    volatile: False

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

pentoo
    location: /var/db/repos/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

test_repo
    location: /var/db/repos/test_repo
    masters: gentoo
    volatile: False

wayland-desktop
    location: /var/db/repos/wayland-desktop
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
    masters: gentoo
    volatile: False

Installed sets: @school
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=znver2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 16 --load 14.4"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=znver2 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver2 -O2 -pipe"
GENTOO_MIRRORS="https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.mirrors.tera-byte.com/"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/zsh"
USE="acl alsa amd64 bluetooth bzip2 cet cli crypt dri elogind fortran gdbm hardened iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre pic pie pipewire readline seccomp split-usr ssl ssp test-rust unicode wayland xattr xtpax zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="wacom libinput" KERNEL="linux" L10N="en-CA" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

net-wireless/iwd-2.8-r2::gentoo was built with the following:
USE="client monitor standalone -ofono (-selinux) -systemd -wired" ABI_X86="(64)" CPU_FLAGS_X86="aes ssse3"
CFLAGS="-march=znver2 -O2 -pipe -fsigned-char"
Back to top
View user's profile Send private message
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 291

PostPosted: Sun Jan 21, 2024 8:35 am    Post subject: Reply with quote

is it an option to use networkmanager or connman? it may fill a lot of neccessary values for you
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 324
Location: Naarm/Melbourne, Australia

PostPosted: Sun Jan 21, 2024 8:50 pm    Post subject: Reply with quote

jpsollie wrote:
is it an option to use networkmanager or connman? it may fill a lot of neccessary values for you

The forum guidelines state:

Quote:
If someone is posting about a problem they are experiencing, don't simply tell them they are using the wrong program and recommend they try your recommendation.

The OP states they are transitioning to using iwd, and are seeking help for a specific aspect of that, not that that they are looking for options for wifi connection management in general.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3347
Location: Rasi, Finland

PostPosted: Sun Jan 21, 2024 9:17 pm    Post subject: Reply with quote

flexibeast wrote:
The OP states they are transitioning to using iwd, and are seeking help for a specific aspect of that, not that that they are looking for options for wifi connection management in general.
I think what jpsollie was after for was that those other programs would create a possible working configuration for iwd because they use iwd under the hood (with correct flags).

I think I've used this tactic by using NetworkManager to create a working wpa_supplicant configuration.
But now looking at it, it looks like NetworkManager controls wpa_supplicant via dbus, so I guess that's the case with iwd too.
I guess it was different back then.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum