open-sdr / openwifi

open-source IEEE 802.11 WiFi baseband FPGA (chip) design: driver, software
GNU Affero General Public License v3.0
3.89k stars 658 forks source link

Couldn't give internet connexion to the board #351

Open Maxelectronics opened 1 year ago

Maxelectronics commented 1 year ago
  1. Could you send email to xianjun.jiao@ugent.be to introduce your self?

  2. Our image is used directly or you build your own image? directly

  3. What is your own modification? Nothing

  4. Versions: OS, Vivado, openwifi/openwifi-hw repo branch and commit revision : last

  5. Board/hardware type : ADRV9361

  6. WiFi channel number : 44

  7. Steps to reproduce the issue, and the related error message, screenshot, etc

I follow the steps but I can't give internet connexion to my board.

raspi-config --expand-rootfs (Only needed when your SD card > 16GB. Run and reboot) ./openwifi/setup_once.sh (Reboot the board. Only need to run once for new board) cd openwifi ./wgd.sh ./fosdem.sh (Use "./wgd.sh 1" to enable experimental AMPDU aggregation on top of 11n) (Use "./fosdem-11ag.sh" to force 11a/g mode)

and these steps on PC :

sudo sysctl -w net.ipv4.ip_forward=1 sudo iptables -t nat -A POSTROUTING -o NICY -j MASQUERADE sudo ip route add 192.168.13.0/24 via 192.168.10.122 dev ethX

where NICY is the interface whive give internet to my PC and eth0 is the interface corresponding to my ethernet link between PC and board.

I ping PC to sdr0 interface and the inverse and it works I didn't understand.

Thanks in advance,

Maxelectronics commented 1 year ago

I solve the problem I need this instruction and after it works :

sudo iptables -A FORWARD -i NICY -o ethX -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i ethX -o NICY -j ACCEPT