V
V
vais2016-08-29 12:12:41
Computer networks
vais, 2016-08-29 12:12:41

How to open sites using two different connections?

Hey!
We have working laptops.
Laptops are connected to two networks at the same time.
Lan - an internal network of an organization with limited access to the Internet, with internal sites. Mainly used for RDP desktop connection.
WI-FI - Used to access the external Internet.
The current scheme of work looks like this:
1. Turn on the laptop.
2. Turn off WI-FI
3. Connect to a remote machine using a cable.
4. Turn on WI-FI
5. Surf the Internet
If you need to go to the organization's local website
1. Turn off WI-FI
2. Go to the site.
Question.
How to make automatic redirection of traffic / requests on port 80?
those
If the user wants to go to an internal site, then the traffic is redirected to the LAN (there are a limited number of internal sites).
If to toster.ru, then the traffic goes through WI-FI.
It is desirable to solve this on the laptop itself.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Smithson, 2016-08-29
@vais

This can be done by routing.
With two caveats - to register permanent routes, you need admin rights and, in principle, the user himself can screw up something in the routes.
The idea is - on the LAN you write a static ip address and the complete absence of a default router.
On wifi address and default router distributes dhcp on the access point.
If there is one ip network in lan, then everything has already been decided - traffic will go to this ip network through lan, to the rest - through wifi.
If there is more than one network, then write routes with your hands

route add 192.168.2.0 mask 255.255.255.0 10.1.1.10 -p

where 192.168.2.0 is the network to go to via lan, 10.1.1.10 is the router on the lan network (on the same subnet as your laptop), and -p is the command to remember the route even after a reboot.
And so for each lan-subnet.
Well, the router in lan needs to be organized.

S
sazhyk, 2016-08-29
@sazhyk

Here is my similar question. Suddenly, metrics will help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question