Subject: Rare project developers
List archive
- From: Edgard da Cunha Pontes <>
- To:
- Subject: Re: [rare-dev] Wireless connection on RARE/freeRtr
- Date: Sun, 25 Sep 2022 11:55:55 -0300
Hi Csaba,
After a few months, I returned to this thread.
The following commands worked.
hwdet-all.sh
[...]
### wireless interface ###
ip link set wlan0 up multicast on promisc on mtu 1500
ethtool -K wlan0 rx off
ethtool -K wlan0 tx off
ethtool -K wlan0 sg off
ethtool -K wlan0 tso off
ethtool -K wlan0 ufo off
ethtool -K wlan0 gso off
ethtool -K wlan0 gro off
ethtool -K wlan0 lro off
ethtool -K wlan0 rxvlan off
ethtool -K wlan0 txvlan off
ethtool -K wlan0 ntuple off
ethtool -K wlan0 rxhash off
ethtool --set-eee wlan0 eee off
/sbin/wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/example.conf
/sbin/dhclient wlan0
ethtool -K wlan0 rx off
ethtool -K wlan0 tx off
ethtool -K wlan0 sg off
ethtool -K wlan0 tso off
ethtool -K wlan0 ufo off
ethtool -K wlan0 gso off
ethtool -K wlan0 gro off
ethtool -K wlan0 lro off
ethtool -K wlan0 rxvlan off
ethtool -K wlan0 txvlan off
ethtool -K wlan0 ntuple off
ethtool -K wlan0 rxhash off
ethtool --set-eee wlan0 eee off
/sbin/wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/example.conf
/sbin/dhclient wlan0
[...]
### wireless connection ###
ip link add veth1a type veth peer name veth0
ip link set veth0 name veth1b
ip link set veth1a up multicast on promisc on mtu 1500
ethtool -K veth1a rx off
ethtool -K veth1a tx off
ethtool -K veth1a sg off
ethtool -K veth1a tso off
ethtool -K veth1a ufo off
ethtool -K veth1a gso off
ethtool -K veth1a gro off
ethtool -K veth1a lro off
ethtool -K veth1a rxvlan off
ethtool -K veth1a txvlan off
ethtool -K veth1a ntuple off
ethtool -K veth1a rxhash off
ethtool --set-eee veth1a eee off
ip link set veth1b up multicast on promisc on mtu 1500
ethtool -K veth1b rx off
ethtool -K veth1b tx off
ethtool -K veth1b sg off
ethtool -K veth1b tso off
ethtool -K veth1b ufo off
ethtool -K veth1b gso off
ethtool -K veth1b gro off
ethtool -K veth1b lro off
ethtool -K veth1b rxvlan off
ethtool -K veth1b txvlan off
ethtool -K veth1b ntuple off
ethtool -K veth1b rxhash off
ethtool --set-eee veth1b eee off
ip link set veth1a up address 00:00:11:11:22:22 mtu 1500
ip link add veth1a type veth peer name veth0
ip link set veth0 name veth1b
ip link set veth1a up multicast on promisc on mtu 1500
ethtool -K veth1a rx off
ethtool -K veth1a tx off
ethtool -K veth1a sg off
ethtool -K veth1a tso off
ethtool -K veth1a ufo off
ethtool -K veth1a gso off
ethtool -K veth1a gro off
ethtool -K veth1a lro off
ethtool -K veth1a rxvlan off
ethtool -K veth1a txvlan off
ethtool -K veth1a ntuple off
ethtool -K veth1a rxhash off
ethtool --set-eee veth1a eee off
ip link set veth1b up multicast on promisc on mtu 1500
ethtool -K veth1b rx off
ethtool -K veth1b tx off
ethtool -K veth1b sg off
ethtool -K veth1b tso off
ethtool -K veth1b ufo off
ethtool -K veth1b gso off
ethtool -K veth1b gro off
ethtool -K veth1b lro off
ethtool -K veth1b rxvlan off
ethtool -K veth1b txvlan off
ethtool -K veth1b ntuple off
ethtool -K veth1b rxhash off
ethtool --set-eee veth1b eee off
ip link set veth1a up address 00:00:11:11:22:22 mtu 1500
[...]
rtr-hw.txt
[...]
proc wifi.sh /rtr/pcap2pcap.bin wlan0 veth1a
proc ifc2.sh /rtr/rawInt.bin veth1b 20004 127.0.0.1 20003 127.0.0.1
int eth2 stat eth 00:00:11:11:22:22 127.0.0.1 20003 127.0.0.1 20004
[...]
proc wifi.sh /rtr/pcap2pcap.bin wlan0 veth1a
proc ifc2.sh /rtr/rawInt.bin veth1b 20004 127.0.0.1 20003 127.0.0.1
int eth2 stat eth 00:00:11:11:22:22 127.0.0.1 20003 127.0.0.1 20004
[...]
rtr-sw.txt
[...]
interface ethernet2
description wifi connection
vrf forwarding inet
no shutdown
no log-link-change
exit
description wifi connection
vrf forwarding inet
no shutdown
no log-link-change
exit
[...]
But... There are still errors in this config that I couldn't understand.
In Debian managed interface
root@optiplex790:~# ping -I wlan0 8.8.8.8 -c 4
PING 8.8.8.8 (8.8.8.8) from 192.168.25.10 wlan0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=20.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=20.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=18.7 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=56 time=18.6 ms
PING 8.8.8.8 (8.8.8.8) from 192.168.25.10 wlan0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=20.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=20.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=18.7 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=56 time=18.6 ms
On RARE/freeRtr even with wlan0 down
freertr#ping 8.8.8.8 source eth2
pinging 8.8.8.8, src="null," vrf=inet, cnt=5, len=64, df=false, tim=1000, gap=0, ttl=255, tos=0, sgt=0, flow=0, fill=0, alrt=-1, sweep=false, multi=false
!!!!!
pinging 8.8.8.8, src="null," vrf=inet, cnt=5, len=64, df=false, tim=1000, gap=0, ttl=255, tos=0, sgt=0, flow=0, fill=0, alrt=-1, sweep=false, multi=false
!!!!!
It was too good to be true. I think I'm forgetting something.
Em seg., 11 de jul. de 2022 às 12:50, mc36 <> escreveu:
hi,
for the wpa supplicant, sure, you can do so! :)
but the veth creation, place them in hwdet-all instead, since they dont need reswapning...
br,
cs
On 7/11/22 16:25, Edgard da Cunha Pontes wrote:
> Hi Csaba! Thanks for answering.
>
> Could I put the veth pair creation and a wireless AP selection on rtr-hw.txt file? Something like that...
>
> [/rtr/rtr-hw.txt]
> proc wpa-supp.sh /sbin/wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
> proc veth-pair.sh /sbin/ip link add veth-a type veth peer name veth-b
> proc veth-setup.sh /sbin/ip link set dev veth-a && /sbin/ip link set dev veth-a up && /sbin/ip link set dev veth-b up
> proc bind-wl.sh /rtr/pcap2pcap.bin wlp2s0 veth-a
> proc ifc2.sh /rtr/rawInt.bin veth-b 20012 127.0.0.1 20011 127.0.0.1
> int eth2 stat eth [MAC-VETH-B] 127.0.0.1 20011 127.0.0.1 20012
>
> Does this make any sense? Or is this a crazy idea and should be avoided?
>
> Em s b., 9 de jul. de 2022 s 02:35, mc36 < <mailto:>> escreveu:
>
> hi,
> after the key exchange, wireless interfaces does not differ from regular n*g interfaces...
> you could give them to freerouter itself via pcapint or a dataplane of your choice, except dpdk...
> btw, i suggest you to use a veth pair and pcap2pcap.bin on the wireless<-->vethXa, and give
> vethXb to the router/dataplane simply because these interfaces could go down or disappear...
> br,
> cs
>
> On 7/8/22 20:28, Edgard da Cunha Pontes wrote:
> > Hi everyone!
> >
> > I have a question about how to use a wireless connection in RARE/freeRtr.
> > I'm testing with a wireless card on a Dell Optiplex 790 PC. On that PC, I installed Debian 11 (SID) and did a "one line" install of RARE/freeRtr on it.
> > I installed Debian 11 (SID) and did a "one line" install of RARE/freeRtr on it. I used wpa_supplicant to select a wireless AP. I even managed to use dhclient in Debian, but I
> > couldn't access that interface in RARE/freeRtr.
> >
> > This test is part of one of the problems we have to solve in the RENaaS project.
>
- Re: [rare-dev] Wireless connection on RARE/freeRtr, Edgard da Cunha Pontes, 09/26/2022
Archive powered by MHonArc 2.6.19.