Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
WireGuard server - clients connect but no access to local LAN/Internet
« previous
next »
Print
Pages: [
1
]
Author
Topic: WireGuard server - clients connect but no access to local LAN/Internet (Read 2219 times)
dawidku
Newbie
Posts: 6
Karma: 0
WireGuard server - clients connect but no access to local LAN/Internet
«
on:
November 14, 2022, 08:52:25 pm »
I've configured WireGuard server as per road warrior manual.
I have clients connecting to the server, can see them in OPNsense, handshakes etc.
but I am not able to access anything on local firewall network nor browse internet when tunel
is established.
See my firewall rule for WireGuard below, as you can see I tried with IP address as well as WireGuard address
as a source in the rule - no difference.
I checked loads of post all over but no solution works, can anyone advise?
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: WireGuard server - clients connect but no access to local LAN/Internet
«
Reply #1 on:
November 14, 2022, 09:27:51 pm »
Check firewall logs if there is traffic blocked and if your WG allow any rule is hit.
If there is nothin in FW logs, something other is wrong (config?).
Logged
i am not an expert... just trying to help...
chemlud
Hero Member
Posts: 2485
Karma: 112
Re: WireGuard server - clients connect but no access to local LAN/Internet
«
Reply #2 on:
November 14, 2022, 09:31:30 pm »
...e.g. check allowed nets in client config.
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
felix eichhorns premium katzenfutter mit der extraportion energie
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
dawidku
Newbie
Posts: 6
Karma: 0
Re: WireGuard server - clients connect but no access to local LAN/Internet
«
Reply #3 on:
November 14, 2022, 09:44:01 pm »
Only seeing the attached in FW logs on WG interface but still no access to local network...
What does this mean?
Logged
dawidku
Newbie
Posts: 6
Karma: 0
Re: WireGuard server - clients connect but no access to local LAN/Internet
«
Reply #4 on:
November 14, 2022, 09:47:12 pm »
And this is client's config
[Interface]
PrivateKey = jhsfjshjfhd=
Address = 10.0.0.3/32
[Peer]
PublicKey = asjhfjashfhsjk=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = MyPublicIP:51820
PersistentKeepalive = 25
Logged
dawidku
Newbie
Posts: 6
Karma: 0
Re: WireGuard server - clients connect but no access to local LAN/Internet
«
Reply #5 on:
November 15, 2022, 12:04:01 am »
OMG I am so sorry for wasting your time.
I have just realised that allowed network / IP needs to be added to the client configuration.
Added the below and all works, LAN access, Internet access, all good
AllowedIPs = 0.0.0.0/0, 192.168.1.0/24
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: WireGuard server - clients connect but no access to local LAN/Internet
«
Reply #6 on:
November 15, 2022, 06:50:00 am »
I do not completely understand:
In your post allowd IPs is set to any (0.0.0.0/0)... so adding your LAN subnet additionally did the trick?
This is weird, because the LAN subnet is "part" of 0.0.0.0/0 which should work fine so far.
Is there no DNS server set in client config?
Logged
i am not an expert... just trying to help...
dawidku
Newbie
Posts: 6
Karma: 0
Re: WireGuard server - clients connect but no access to local LAN/Internet
«
Reply #7 on:
November 15, 2022, 09:44:16 am »
Yes there is DNS set up in the client config but before adding 192.168.1.0/24 network
I wasn't able to access anything at all on LAN, not even OPNsense web interface.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
WireGuard server - clients connect but no access to local LAN/Internet