OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • openVPN SOLVED
« previous next »
  • Print
Pages: [1]

Author Topic: openVPN SOLVED  (Read 536 times)

anakein

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
openVPN SOLVED
« on: October 19, 2022, 11:19:50 am »
I have created a vpn server. connect with firewall disabled work fine.

Using the wizard, it creates the firewall rules for me, but they don't work.

If I put pfctl -d in the shell (firewall disabled), the vpn works correctly.

reviewing the logs I detect that the vpn only accesses via ipv6, even though ipv6 is disconnected, or ipv4 is over ipv6 in general settings.

if into vpn server device mode put tun, all vpn client use ipv6 but i want to use ipv4.

is this a bug?, can i connect with ipv4?.

thanks
« Last Edit: October 20, 2022, 12:30:44 am by anakein »
Logged

arnoudvanderschans

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: openVPN bug?
« Reply #1 on: October 19, 2022, 04:15:17 pm »
Hi Anakein,

What are your firewall rules voor your openVPN interface?
You need to put an rule in that says your vpn network (when following the default setup i think it is 10.8.6.*) can look in de destination network, and if you want to let it connect trough your wan you need to give it some more speficied settings.

Logged

anakein

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: openVPN bug?
« Reply #2 on: October 19, 2022, 06:19:34 pm »
i used this example:

https://docs.opnsense.org/manual/how-tos/sslvpn_client.html

i have standard rules for vpn ( following how-to)

but don´t connect.
Logged

anakein

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: openVPN bug?
« Reply #3 on: October 20, 2022, 12:30:21 am »
is fixed.

The problem was that the WAN interface had a dynamic IP. And could not connect, when changing to a fixed ip, everything works perfectly.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • openVPN SOLVED
 

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