Mailing List Archive

problem getting wifi card to route to internet
Hi. This is not strictly a gentoo problem, but I would like advise
from people on how to get my wifi card to see the internet.

On my new box I have the following card:
00:14.3 Network controller: Intel Corporation Wireless-AC 9560
[Jefferson Peak] (rev 10)
Subsystem: Intel Corporation Wireless-AC 9560 [Jefferson Peak]
Kernel driver in use: iwlwifi

Now, I wanted to serve other computers with this device and so emerged
hostapd. Then after some configuration fooling around with
/etc/hostap/hostapd.conf, I got things to the point where the card
comes up and is seen by other devices.

I set the device up on its own network at 192.168.3.1 by using the
following unit file:

[Unit]
Description=Network Connectivity for %i
Documentation=man:ip
Before=network.target
Wants=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/network@%i
ExecStart=/bin/ip link set dev %i up
ExecStart=/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev %i
ExecStart=-/bin/bash -c "test -n ${gateway} && /bin/ip route add default via ${gateway}"
ExecStart=-/bin/bash -c "test -f /etc/conf.d/postup@%i.sh&&/bin/bash -c /etc/conf.d/postup@%i.sh"
ExecStop=/bin/ip addr flush dev %i
ExecStop=/bin/ip link set dev %i down
ExecStop=-/bin/bash -c "test -f /etc/conf.d/postdown@%i.sh&&/bin/bash -c /etc/conf.d/postdown@%i.sh"

[Install]
WantedBy=multi-user.target

and the following in /etc/conf.d/network@wlan0
address=192.168.3.1
netmask=24
broadcast=192.168.3.255

and also added the following route
route add -net 192.168.3.0 netmask 255.255.255.0 dev eno1
but still I cannot get packets out to the internet. I can ping
the device from my console, but that is it.

I am not sure whether I am missing something in my hostapd.conf or
somewhere else.

Thanks in advance for any suggestions.


--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici wb2una
covici@ccs.covici.com
Re: problem getting wifi card to route to internet [ In reply to ]
On Saturday, July 25, 2020, John Covici <covici@ccs.covici.com> wrote:

> Hi. This is not strictly a gentoo problem, but I would like advise
> from people on how to get my wifi card to see the internet.
>
> On my new box I have the following card:
> 00:14.3 Network controller: Intel Corporation Wireless-AC 9560
> [Jefferson Peak] (rev 10)
> Subsystem: Intel Corporation Wireless-AC 9560 [Jefferson Peak]
> Kernel driver in use: iwlwifi
>
> Now, I wanted to serve other computers with this device
>

Have you set the default route and enabled ip forwarding?

Also you don’t need to add a route for connected interfaces
Re: problem getting wifi card to route to internet [ In reply to ]
On Sat, 25 Jul 2020 05:31:32 -0400,
Adam Carter wrote:
>
> [1 <text/plain; UTF-8 (quoted-printable)>]
> On Saturday, July 25, 2020, John Covici <covici@ccs.covici.com> wrote:
>
> > Hi. This is not strictly a gentoo problem, but I would like advise
> > from people on how to get my wifi card to see the internet.
> >
> > On my new box I have the following card:
> > 00:14.3 Network controller: Intel Corporation Wireless-AC 9560
> > [Jefferson Peak] (rev 10)
> > Subsystem: Intel Corporation Wireless-AC 9560 [Jefferson Peak]
> > Kernel driver in use: iwlwifi
> >
> > Now, I wanted to serve other computers with this device
> >
>
> Have you set the default route and enabled ip forwarding?
>
> Also you don?t need to add a route for connected interfaces
Thanks for your quick response. Packet forwarding is enabled and I am
using shorewall to have normal firewall settings.


--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici wb2una
covici@ccs.covici.com
Re: problem getting wifi card to route to internet [ In reply to ]
> > Have you set the default route and enabled ip forwarding?
> >
> > Also you don’t need to add a route for connected interfaces
> Thanks for your quick response. Packet forwarding is enabled and I am
> using shorewall to have normal firewall settings.
>

Ok so can the WLAN clients ping the internet facing interface of your new
linux/wlan/internet router? If not, do they get a DHCP IP address? Do they
have a default route?
Re: problem getting wifi card to route to internet [ In reply to ]
I wil have to check, I ran into some other problems with wlan0 and
will get back when I have straightened that out.

Thanks.


On Sun, 26 Jul 2020 23:17:24 -0400,
Adam Carter wrote:
>
> [1 <text/plain; UTF-8 (quoted-printable)>]
> > > Have you set the default route and enabled ip forwarding?
> > >
> > > Also you don?t need to add a route for connected interfaces
> > Thanks for your quick response. Packet forwarding is enabled and I am
> > using shorewall to have normal firewall settings.
> >
>
> Ok so can the WLAN clients ping the internet facing interface of your new
> linux/wlan/internet router? If not, do they get a DHCP IP address? Do they
> have a default route?
> [2 <text/html; UTF-8 (quoted-printable)>]

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici wb2una
covici@ccs.covici.com