Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
[SOLVED] OpenVPN tunnel with Synology SRM
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] OpenVPN tunnel with Synology SRM (Read 4633 times)
BiTRiP
Newbie
Posts: 30
Karma: 5
[SOLVED] OpenVPN tunnel with Synology SRM
«
on:
March 23, 2019, 12:28:19 pm »
Hello,
I'm trying to get a OpenVPN tunnel working with static ip's and routing but I don't get it working properly.
My situation:
OPNsense LAN Network = 192.168.2.0/24
Synology Remote Network = 192.168.10.0/24
Tunnel network = 192.168.6.0/24
I do get a connection working but the Synology SRM is always getting 192.168.6.6 with 6.5 as gateway while the OPNSense has 6.1 and thinks 6.2 is the remote. Obviously the 6.5 does not exist, neither does 6.2.
I just want to have OPNSense as always be 6.1 and the Synology always get 6.2 so I can setup static routing.
Already tried client specific overrides with username as Common Name and adding
ifconfig-push 192.168.6.2 192.168.6.1;
but it does not help.
What can I do? Had anyone a OpenVPN tunnel working with a Synology SRM and static IP's?
Many thanks in advance.
«
Last Edit: April 05, 2019, 04:12:11 pm by BiTRiP
»
Logged
BiTRiP
Newbie
Posts: 30
Karma: 5
Re: OpenVPN tunnel with Synology SRM
«
Reply #1 on:
March 23, 2019, 09:55:49 pm »
Meanwhile the Synology SRM gets 192.168.6.2 by enabling Topology option.
This changes it from default net30 to subnet.
Routing between the two is what is left.
«
Last Edit: March 23, 2019, 09:57:54 pm by BiTRiP
»
Logged
BiTRiP
Newbie
Posts: 30
Karma: 5
Re: OpenVPN tunnel with Synology SRM
«
Reply #2 on:
March 24, 2019, 03:49:50 pm »
Site A Site B
192.168.2.0/24 ⁞ ⁞ 192.168.10.0/24
┌──────────┐ ⁞ ⁞ ┌──────────┐
│ OPNsense •-----►( Internet )◄-----• Synology │
│ (OpenVPN │ ⁞ ⁞ │ router │
│ server) │ └─•────────┘
└────────•─┘ ⁞ ⁞ | 192.168.10.1
192.168.2.1 | | (192.168.6.2)
(192.168.6.1) | ⁞ ⁞ |
| |
┌────────────┐ | ⁞ ⁞ |
│ Station A1 •--┤ |
└────────────┘ | ⁞ ⁞ |
| | ┌────────────┐
┌────────────┐ | ⁞ ⁞ ├--• Station B1 │
│ Station A2 •--┤ | └────────────┘
└────────────┘ | ⁞ ⁞ |
| | ┌────────────┐
| ⁞ ⁞ ├--• Station B2 │
| | └────────────┘
| ⁞ VPN network ⁞ |
├~~~~~~~~~~~~~~~~~~~~~~~~~~~~┤
⁞ 192.168.6.0/24 ⁞
⁞ ⁞
(c) Cduv for this diagram
«
Last Edit: March 24, 2019, 03:54:25 pm by BiTRiP
»
Logged
BiTRiP
Newbie
Posts: 30
Karma: 5
Re: OpenVPN tunnel with Synology SRM
«
Reply #3 on:
March 24, 2019, 03:49:58 pm »
I can't get routing properly working.
Site B can ping everything behind OPNSense server (192.168.2.0/24) but Site A can't ping anything behind Synology router (192.168.10.0/24).
Site A LAN can ping 192.168.6.2 which is the OpenVPN IP of Synology router.
Even OPNSense router can't ping side B LAN.
Any suggestions? It looks i tried them all 😉
«
Last Edit: March 24, 2019, 03:55:28 pm by BiTRiP
»
Logged
BiTRiP
Newbie
Posts: 30
Karma: 5
Re: OpenVPN tunnel with Synology SRM
«
Reply #4 on:
April 05, 2019, 04:11:35 pm »
Solved by using an "iroute 192.168.10.0 255.255.255.0" in client specific overrides!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
[SOLVED] OpenVPN tunnel with Synology SRM