Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Setting up second wg interface but don’t understand networking that good.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Setting up second wg interface but don’t understand networking that good. (Read 672 times)
Wouterplop
Newbie
Posts: 1
Karma: 0
Setting up second wg interface but don’t understand networking that good.
«
on:
October 24, 2023, 04:47:06 am »
Hello,
I have OPNsense 23.7.6 running and it works as expected.
Using a wireguard vpn connection to connect from a distance to my home network to acces my servers etc works perfect! Have been able to add multiple clients like my iphone ipad, girlfriends phone and everything works.
Now to enhance my knowledge and expand my understanding I wanted to share my nas share to my family but I did not want on the same wg interface so i setup another one and got al the keys etc in the right place but now it wont start the handshake. From my understanding only 1 can be active when configuring the first interface and clients with basic setup and let opnsense make the routing. I like to understand how that work to add that routing manually. I am visual person and tekst only gets me confused unles I did it once.
The following setup is created when wg1 was setup and now I want to understand how to make wg2 interface work.
Currently my setup. This was created with with auto routing and added only 1 extra line to the firewall rules as was instructed from the video.
My guide:
https://youtu.be/b58PpuIsQ3A?si=_wBkoBW84RKpb1P0
VPN: Wireguard setup
Instances: wg1
Tunnel: 10.10.10.1/24
Port: 51820
Peers: Iphone
Allowed ip’s: 10.10.10.10/32
(on the device): Iphone
Interface information:
Adresses: 10.10.10.10/32
DNS: (wireguard ip adress)
Peer information:
Endpoint: (homeipadress):51820
Allowed ip’s: 0.0.0.0/0
VPN: Wireguard setup
Instances: wg2
Tunnel: 10.10.20.1/24
Port: 51820
Peers: Iphone
Allowed ip’s: 10.10.20.11/32
(on the device): Iphone
Interface information:
Adresses: 10.10.20.11/32
DNS: (wireguard ip adress)
Peer information:
Endpoint: (homeipadress):51820
Allowed ip’s: 0.0.0.0/0
If someone has some visual drawings of how the routing goes or a good explanation video I am happy to hear.
Regard,
Wouter
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Setting up second wg interface but don’t understand networking that good.