A
A
Alexey2018-09-04 12:50:12
VPN
Alexey, 2018-09-04 12:50:12

How to provide access to the corporate portal?

Good afternoon! Perhaps someone can help. I’ll make a reservation right away: I’m not an admin, but just a person who “fumbles a little”, and is currently responsible for everything in the company, so I may not know many nuances, don’t kick much. Essence of the question:
There is a server on which the virtual machine of the Bitrix corporate portal is installed. The server is not located in the company's office, so the office and all company branches (shops, warehouses) get access to the server through a VPN tunnel, moreover, the branches work on the server exclusively in the application environment (1c), respectively, the desktop and other delights are not available to them. The question is: is it possible to somehow configure everything in such a way that users of branches drive in the address bar of the browser on the local machine the address of the vpn server and immediately get to the portal?
To understand the scheme: a router with a white ip, local network address 192.168.0.1, all vpn traffic is forwarded to the computer behind it with server 2012r2 on board with address 192.168.0.11, which is running a VPN server with a pool of addresses 192.168. .2.60 Virtual machine address 192.168.0.110
At the moment, if the user, having established a connection to the vpn server, drives in 192.168.2.20 in the address bar, it is brought to the IIS start page. Those. theoretically, I understand that, probably, somehow you can set up a redirect, but I can’t figure out where and how.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Korotenko, 2018-09-08
@firedragon

Do as described here. Pre-test on one of the clients.
How to make redirect 301 in IIS?

F
Fredcapit, 2018-09-13
@Fredcapit

As far as I understand, IIS is running on 192.168.2.20.
In order to file several sites on IIS in the future, you need to give this machine a static address and fasten the address in the DNS, for example, portal.local.
On the machine itself, go to the IIS Control Manager and find the Bitrix site, unless of course it uses IIS.
Otherwise, turn off the default site so that it does not hold port 80 and configure the Bitrix http server to 80.
OR if Bitrix still sits on IIS, then you can reassign the default site binding to some other port, and do Bitrix on 80 and do not specify the domain name of the site, then it will be called default.
OR if the portal is located elsewhere, then Redirect is needed, which may need to be installed additionally as a module.

M
Max Payne, 2015-03-07
@YardalGedal

How difficult is it to view the source code of a page, right?
Jquery:

$(document).ready(function(){
$('#menu').click(function(){
$('#thumb').slideToggle('slow');
});

$('li img').click(function(){
    
    var imgbg = $(this).attr('dir');
    //console.log(imgbg);
    $('#bg').css({backgroundImage: "url("+imgbg+")"});
    
  });
  
  $('#bgimage').click(function(){
  $('#thumb').hide();
  
  });
  
});

CSS:
#mhead{
color:#000;
border: 1px solid #e3e3e3;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
text-align: center; 
font-family: georgia;
}

#container{
width: 400px;
height: 400px;}

ul{
 list-style:none; 
 margin:0; 
 padding:0;
 }

li{
 float:left;
 padding:5px;
 border:solid #666 0;
 cursor: pointer;
 }
 
 
#menu{ cursor:pointer;
position:absolute; 

z-index: 10;
}

#thumb{ 
margin-top: 40px;
width:290px; 
height:285px; 
color:#000; 
box-shadow:0 0 10px #CCC;
 z-index:9999;
 border:solid #CCC 1px;
 overflow:hidden;
 position:absolute; 
 
 display:none;
 }


#bgimage{
position:fixed; 
top:0; left:0;
 width:100%; 
 height:100%; 
 z-index:1;
 }

#bg{background-image:url(images/1.jpg);background-size:100% auto;}

HTML:
<!DOCTYPE HTML>
<html>
<head>
<title>Background image change onclick using jQuery - InfoTuts</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="script.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body id="bg">
<div id="bgimage"></div> 
<div id="mhead"> <h2>Background image change onclick using jQuery - InfoTuts</h2></div>

<div id="menu"><img src="images/bgclick.png"></div>

<div id="thumb">
<ul>
<li><img src="images/1.jpg" width="85" height="82" dir="images/1.jpg"></li>
<li><img src="images/2.jpg" width="85" height="82" dir="images/2.jpg"></li>
<li><img src="images/3.jpg" width="85" height="82" dir="images/3.jpg"></li>
<li><img src="images/4.jpg" width="85" height="82" dir="images/4.jpg"></li>
<li><img src="images/5.jpg" width="85" height="82" dir="images/5.jpg"></li>
<li><img src="images/6.jpg" width="85" height="82" dir="images/6.jpg"></li>
<li><img src="images/7.jpg" width="85" height="82" dir="images/7.jpg"></li>
<li><img src="images/8.jpg" width="85" height="82" dir="images/8.jpg"></li>
<li><img src="images/9.jpg" width="85" height="82" dir="images/9.jpg"></li>
</ul>

</div>


</body>
</html>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question