bandyt
Hello List,
I am new here and I don't know if this is the right place to ask
my question. And searching the forum does not point me to
an answer.
I have following setup:
- Notebooks (Windows 7 clients in domain)
- Linux OpenVpn server as gateway
All things working well.
I'd like to use the windows service to establish connections. And I want to
connect only when the user is not in the office.
Is there a chance to detect that the network connection is e.g. not 192.168.x.x
and only in this case initiate connection?
I hope anyone has an idea.
Regards
Andreas
bandyt
I don't know if I understand this right.
Ok my test is
I am in the company LAN and start openvpn to connect as I would do it at home.
I have 2 active network adapter
Wireless: This is my network within the company
IPv4-Adresse . . . . . . . . . . : 192.168.2.41(Bevorzugt)
Subnetzmaske . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . : 192.168.2.1
DHCP-Server . . . . . . . . . . . : 192.168.2.56
DNS-Server . . . . . . . . . . . : 192.168.2.56
Primärer WINS-Server. . . . . . . : 192.168.2.56
NetBIOS über TCP/IP . . . . . . . : Aktiviert
OPENVPN TAP: This will be activated when I connect.
TAP-Win32 Adapter V9
IPv4-Adresse . . . . . . . . . . : 192.168.5.6(Bevorzugt)
Subnetzmaske . . . . . . . . . . : 255.255.255.252
DHCP-Server . . . . . . . . . . . : 192.168.5.5
DNS-Server . . . . . . . . . . . : 192.168.2.56
Primärer WINS-Server. . . . . . . : 192.168.2.56
NetBIOS über TCP/IP . . . . . . . : Aktiviert
Will this lead to performance penalty, while the connect is not needed in this case?
Am I wasting ressources on the router?
The goal is to make the openvpn invisible to the user, regardless he or she is
at work or at home.
My idea was:
Openvpn installed as service started automatically, cert in MS Certificate Store.
With this setup the tunnel will always be on.
Is this okay or should I stop the tunnel when the notebook is within office subnet?