Change schedule via URL with VPN

nydegger

n3wb
Joined
Feb 2, 2016
Messages
25
Reaction score
0
Geofence does not work all the time, so I have been trying to get this to work with tasker.

Leave Home WIFI>Connect to Open VPN Connect>Change Schedule
Enter WIFI?dis-connect Open VPN Connect>Change Schedule

It works successfully when connected via home wifi and without Open VPN Connect
http://192.168.1.142:11995/admin?schedule=X&user=X&pw=X
From BI Log:
10/26/2018 11:59:30 AM admin 192.168.1.107: Login
0 10/26/2018 11:59:30 AM App Current schedule: X
10 10/26/2018 12:00:32 PM admin 192.168.1.107: Logout, 1:02

When I am connected via Open VPN connect, it doesn’t seem to connect as “admin” to change the schedule, I get a log-in prompt.
From BI Log:
10/26/2018 11:58:53 AM Server Connected: 172.19.13.2

I do have the web server properties set correctly:

Any suggestions?
 

Attachments

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,905
Reaction score
21,279
Geofence does not work all the time, so I have been trying to get this to work with tasker.

Leave Home WIFI>Connect to Open VPN Connect>Change Schedule
Enter WIFI?dis-connect Open VPN Connect>Change Schedule

It works successfully when connected via home wifi and without Open VPN Connect
http://192.168.1.142:11995/admin?schedule=X&user=X&pw=X
From BI Log:
10/26/2018 11:59:30 AM admin 192.168.1.107: Login
0 10/26/2018 11:59:30 AM App Current schedule: X
10 10/26/2018 12:00:32 PM admin 192.168.1.107: Logout, 1:02

When I am connected via Open VPN connect, it doesn’t seem to connect as “admin” to change the schedule, I get a log-in prompt.
From BI Log:
10/26/2018 11:58:53 AM Server Connected: 172.19.13.2

I do have the web server properties set correctly:

Any suggestions?
does it work if you dont limit the ip addresses?
 

nydegger

n3wb
Joined
Feb 2, 2016
Messages
25
Reaction score
0
No, still does not work with no ip's in the "limit IP" field.
If the ^192.168.1.* is not in there I also get the login box when attempting the URL while connected locally with WIFI and a 192.168.1.* address.
I added the VPN (^172.19.13.*) address thinking it would also allow the admin credentials.

From the help file:
^68.22.1.* allow a range of IP addresses AND skip authentication with admin access (use carefully)
 

nydegger

n3wb
Joined
Feb 2, 2016
Messages
25
Reaction score
0
This is the Log-In Box I get, and no matter what valid credentials I use to login, it does not.
 

Attachments

nydegger

n3wb
Joined
Feb 2, 2016
Messages
25
Reaction score
0
The only way I can get this to work is to have the BI PC connected to Open VPN also. The BI PC will pull an IP of 172.* subnet, then make sure Listen/Bind to one selected LAN IP Only is not checked on the Web Server Tab.
Then the URL to change the schedule works when the phone is connected to Open VPN or not connected to Open VPN.
It seems the "admin" credentials in the URL can't pass across subnets.
I have sent Ken an email.
 
Top