Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
How to add a firewall rule based on a wireguard interface
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to add a firewall rule based on a wireguard interface (Read 818 times)
ns
Newbie
Posts: 4
Karma: 0
How to add a firewall rule based on a wireguard interface
«
on:
October 07, 2022, 10:41:13 am »
The firewall rule interface drop down menu allows to select the different physical interfaces, "IPSec", but does not allow to match on a wireguard interface.
From the shell I can see that there is a wg1 interface, so in theory opnsense could match on it.
My use case: I want to whitelist access to specific ports from the connected VPN (road warrior) clients to other devices opnsense is connected to.
Logged
Patrick M. Hausen
Hero Member
Posts: 6802
Karma: 572
Re: How to add a firewall rule based on a wireguard interface
«
Reply #1 on:
October 07, 2022, 12:09:51 pm »
Go to Interfaces > Assignments and create an e.g. WG1 there. Then you can use the WireGuard interface in rules.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
How to add a firewall rule based on a wireguard interface