Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
[SOLVED] Wireguard + Captive Portal
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Wireguard + Captive Portal (Read 5139 times)
astuckey
Newbie
Posts: 31
Karma: 1
[SOLVED] Wireguard + Captive Portal
«
on:
May 19, 2021, 10:20:25 am »
Hi all,
Just wondering if anyone has tried Wireguard with the Captive Portal?
My attempts to get it to work have ended in misery so far, essentially once the WG tunnel is set up, all packets can get through without needing to use the Captive Portal.
I have a feeling this might be due to the Captive Portal only being able to see the individual wgX interfaces. The Firewall section only seems to have an effect on the parent "WireGuard" interface that doesn't get listed in the Interfaces section (a general frustration with the WG plugin, FW rules on the individual WG interfaces wg0, wg1 etc don't have an affect).
Kind Regards,
Adam
«
Last Edit: July 15, 2021, 07:58:19 pm by astuckey
»
Logged
Obeng
Newbie
Posts: 8
Karma: 2
Re: Wireguard + Captive Portal
«
Reply #1 on:
June 18, 2021, 07:19:21 pm »
I wrote a short article about how to go about it
https://obengafrane-oa.medium.com/wireguard-peer-authentication-a-captive-portal-approach-c464e4be8675
Logged
astuckey
Newbie
Posts: 31
Karma: 1
Re: [SOLVED] Wireguard + Captive Portal
«
Reply #2 on:
July 15, 2021, 08:00:36 pm »
Thank you very much Obeng for putting that together, it is working like a dream now.
The issue I had was having the "generic" WireGuard interface with an allow all rule, a WG tutorial I read mentioned that the rules only work on this generic interface, not the individually assigned interface per WG tunnel.
Once I swapped the rules over everything worked.
Thanks again for your help.
Logged
Obeng
Newbie
Posts: 8
Karma: 2
Re: [SOLVED] Wireguard + Captive Portal
«
Reply #3 on:
July 28, 2021, 10:12:25 am »
You are welcome
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
[SOLVED] Wireguard + Captive Portal