OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Openvpn has been connected successfully, but can not access the LAN
« previous next »
  • Print
Pages: [1]

Author Topic: Openvpn has been connected successfully, but can not access the LAN  (Read 9153 times)

tianmo

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 6
    • View Profile
Openvpn has been connected successfully, but can not access the LAN
« on: February 13, 2017, 07:26:57 pm »
I follow the instructions in how to "Setup SSL VPN Road Warrior" as the link https://docs.opnsense.org/manual/how-tos/sslvpn_client.html to start a openvpn server.
And export a client for ios.then I import the client to my iphone,connect to the server successfully.everything looks fine,BUT I can't access the LAN.I input the LAN address in iphone safari ,but I can not open opnsense login page.
What is wrong?
Any help are Appreciated.
Thank you!
or,my opnsense version is 17.1.1
Logged

perhelion

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: Openvpn has been connected successfully, but can not access the LAN
« Reply #1 on: October 02, 2017, 01:08:36 am »
Tried it again and again with 17.7. Could not make it work at all. Finally just ran OpenVPN wizard. That worked.
Logged

hutiucip

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 50
    • View Profile
Re: Openvpn has been connected successfully, but can not access the LAN
« Reply #2 on: October 02, 2017, 01:40:23 pm »
Quote from: tianmo on February 13, 2017, 07:26:57 pm
I follow the instructions in how to "Setup SSL VPN Road Warrior" as the link https://docs.opnsense.org/manual/how-tos/sslvpn_client.html to start a openvpn server.
And export a client for ios.then I import the client to my iphone,connect to the server successfully.everything looks fine,BUT I can't access the LAN.I input the LAN address in iphone safari ,but I can not open opnsense login page.
What is wrong?
Any help are Appreciated.
Thank you!
or,my opnsense version is 17.1.1

Since it connects, but no data is transferred, it seems like you didn't set-up the "allow" firewall rules for OpenVPN interface: even if you declare the internal network IPs for the VPN clients, a rule is still required for data to be passed to/ from connected VPN clients from/ to OPNsense and other interfaces/ networks.

Check that, and let us know if it worked.
Logged

hutiucip

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 50
    • View Profile
Re: Openvpn has been connected successfully, but can not access the LAN
« Reply #3 on: October 02, 2017, 01:50:29 pm »
Also, maybe this will be of any help:

https://www.kirkg.us/posts/building-an-openvpn-server-with-opnsense/
Logged

Heathy65

  • Newbie
  • *
  • Posts: 36
  • Karma: 2
    • View Profile
Re: Openvpn has been connected successfully, but can not access the LAN
« Reply #4 on: November 05, 2017, 11:14:57 pm »
I had exactly the same issue, having followed the same guide.  I saw the reference to the OpenVPN wizard in this post (must admit, I didn't even notice there was a wizard) and tried that, to create a 2nd OpenVPN server alongside the one I have and it's working now.

My problem was the firewall rules, I'm put them in but not quite correctly although I'm not sure why the didn't work.

I decided to change the source on the OPENVPN tab of the firewall rules to not be the actual network (10.10.0.0/24 in the example) but to replace it with the network name (OpenVPN net), this didn't work for some reason.
Logged

hutiucip

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 50
    • View Profile
Re: Openvpn has been connected successfully, but can not access the LAN
« Reply #5 on: November 06, 2017, 10:26:09 am »
Quote
I decided to change the source on the OPENVPN tab of the firewall rules to not be the actual network (10.10.0.0/24 in the example) but to replace it with the network name (OpenVPN net), this didn't work for some reason.

This is true, it doesn't work if you put OpneVPN Net in the rule, it might be a bug or something, but it works with the network CIDR notation/ name.

Regarding rules, I never had connectivity problems once I paid a fair amount of attention to them.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Openvpn has been connected successfully, but can not access the LAN
 

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