OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • Vpn site to site Opnsense - Ubuntu
« previous next »
  • Print
Pages: [1]

Author Topic: Vpn site to site Opnsense - Ubuntu  (Read 68 times)

sandman

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
  • Certified Lamer :)
    • View Profile
Vpn site to site Opnsense - Ubuntu
« on: February 23, 2021, 11:04:18 am »
Sorry if this post is already solved by a FAQ, if so, drop it.

I am trying to set up a site to site vpn between two networks using opnsense and Ubuntu linux as edges of the connection.
The documentation is clear so the opensense side is ready, but what shall i do now on the ubuntu side to connect to the opnsense to estabilish the vpn ?
May i create a config file through opnsense web interface, load it into the linux box and run openvpn with the configuration file switch ?

Thank you very much for your attention.
Logged

Gauss23

  • Hero Member
  • *****
  • Posts: 709
  • Karma: 36
    • View Profile
    • BackendMedia
Re: Vpn site to site Opnsense - Ubuntu
« Reply #1 on: February 23, 2021, 01:12:00 pm »
VPN: OpenVPN: Client Export
is not what you want?
Logged
„The S in IoT stands for Security!“ :)

System 1: ESXi, i3-9100F (2 Cores), 4GB RAM, 4x NIC
System 2: ESXi, Xeon E3-1220 V2 (2 Cores), 4GB RAM, 4x NIC
System 3: KVM, Xeon Skylake (2 Cores), 4GB RAM, 2x NIC
System 4: KVM, AMD EPYC 7702P (2 Cores), 8GB RAM, 1x NIC (Datacenter VPN Hub)

pmhausen

  • Sr. Member
  • ****
  • Posts: 297
  • Karma: 24
    • View Profile
Re: Vpn site to site Opnsense - Ubuntu
« Reply #2 on: February 23, 2021, 01:13:51 pm »
For site to site the client config will hardly do.

But why don't you copy the config file from your OPNsense and reverse the roles before you put it onto your Ubuntu box?
Logged
APU4D4, 4GB RAM, 128 GB SSD, OPNsense 21.1
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Gauss23

  • Hero Member
  • *****
  • Posts: 709
  • Karma: 36
    • View Profile
    • BackendMedia
Re: Vpn site to site Opnsense - Ubuntu
« Reply #3 on: February 23, 2021, 01:20:29 pm »
Quote from: pmhausen on February 23, 2021, 01:13:51 pm
For site to site the client config will hardly do.

But why don't you copy the config file from your OPNsense and reverse the roles before you put it onto your Ubuntu box?

Yes, you're right :).
Logged
„The S in IoT stands for Security!“ :)

System 1: ESXi, i3-9100F (2 Cores), 4GB RAM, 4x NIC
System 2: ESXi, Xeon E3-1220 V2 (2 Cores), 4GB RAM, 4x NIC
System 3: KVM, Xeon Skylake (2 Cores), 4GB RAM, 2x NIC
System 4: KVM, AMD EPYC 7702P (2 Cores), 8GB RAM, 1x NIC (Datacenter VPN Hub)

sandman

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
  • Certified Lamer :)
    • View Profile
Re: Vpn site to site Opnsense - Ubuntu
« Reply #4 on: February 23, 2021, 04:22:52 pm »
Quote from: pmhausen on February 23, 2021, 01:13:51 pm
For site to site the client config will hardly do.

But why don't you copy the config file from your OPNsense and reverse the roles before you put it onto your Ubuntu box?

First of all, thank you all for answering me so quickly, I really appreciate.

I already discarded the client config as it didn't solve my issue or i am not enough smart to use it in the right way :).
I agree, using a reverse config file is the key, but my new problem is my lack of knowledge about Opnsense and its filesystem tree, where should i search for ithe config file ?

Again thank you in advance for your patience.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • Vpn site to site Opnsense - Ubuntu
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2021 All rights reserved
  • SMF 2.0.17 | SMF © 2019, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2