Skip to content

[Bug]: No client access with Wireguard tunnel activated #1868

@jayzebra

Description

@jayzebra

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Issue reporting checklist

Operating System

Raspberry Pi OS (64-bit) Lite Bookworm

Installation method

Pre-built image

Onboard wireless chipset or external adapter?

Onboard wireless chipset

Hardware

Raspberry Pi 3 Model B

RaspAP version

Latest

Other software or services running with RaspAP?

No other software

Contact details (optional)

No response

Bug description

After booting RaspAP from a clean install, I configured hostap.
Everything seems to be working well and the clients could access internet.
After, I configured Wireguard by uploading the configuration and ensuring the wireguard was on (green icon). However, no client could access the internet or any internal client.
After ssh I noticed no firewall rules were configured. Even after trying to activate the option " Apply iptables rules to the selected interface " it seemed to have no effect and it always defaults to "wlan0" even if I select another one.
I also tried a fresh install and activating this option when submitting the wireguard config.

After doing an ssh and running the Postup rules from networking/defaults.json, all the clients could correctly access the net via wireguard.
(iptables -A FORWARD -i wlan0 -o wg0 -j ACCEPT; iptables -A FORWARD -i wg0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT; iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE)

Q: Could be that Postup rules are not being executed?

Steps to reproduce

1 - Fresh Install
2 - Configure hostap (optional) and connect clients
3 - Upload wireguard config and start wireguard (if necessary)
4 - Confirm no access to the web via vpn with the wireless client
5 - connect via ssh to RaspAP
6 - type in the console the Postup rules and confirm client access

Screenshots

No response

Additional context

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions