I want to configure a fixed route for a destination that has many IP addresses.

Asked 2 months ago, Updated 2 months ago, 1 views

■Routing questions.

For some reason, only watching videos that are burdensome to the network
I'd like to do it via a USB external LAN adapter.

The next (next hop) after the USB external LAN adapter is the home router.
You have PPP connections on the router to the provider.

Here are some possible routing:
route-add XXX.XXX.XXX.XXX mask 255.255.255.255 192.168.11.1 metric 1 if 37

However, major video sites such as YouTube do load balancing, and the IP changes every time (even while viewing the video), so
It is not possible to specify all IPs.

How can I route fixed video sites?

I would like to use the following image.
route-add www.youtube.com mask 255.255.255.255 192.168.11.1 metric 1 if 37

network

2022-09-30 13:57

3 Answers

Idea-level, but if you create an environment like this, you may be able to do it.

  • Normal site access is communicated via an HTTP proxy server over a network interface with IP1.
  • Access to a specific site matches the exception conditions of the proxy configuration, so communication is made through a network interface with IP2 instead of through an HTTP proxy server.
  • <li> Even if there are a plurality of IP addresses of the "specific site", the Web browser determines the condition by "host name", so even if the IP address changes dynamically, the condition determination operates as expected.

    If the HTTP proxy server is in the IP1 network, it does not need to be on its own host.
    In any case, the usual access is via proxy, so I think it's a creepy configuration.(It would be nice if you could set up "only use a proxy for a specific site."but)

    I think there are several HTTP proxy servers that run on Windows, but I have never used them before, so I don't have any recommendations for this.(squid is the norm? In the case of squid, it seems that the parameter for setting the communication IP with the outside is tcp_outgoing_address)


    2022-09-30 13:57

I haven't tried it, but if you can make the browser executable (exe) and the rest separate, why don't you add rules for sending Windows firewalls to limit the local addresses you can use for each executable path?


2022-09-30 13:57

There are hacks like this on Linux, but you can run a dedicated browser that runs YouTube under this library.If you want to browse YouTube and other sites in one browser, it's different from what you're looking for.

I can't do this because I heard you are using Windows.You might want to configure NAT to run the operating system on which the YouTube player runs on the virtual machine and to use a specific NIC on the host machine for the virtual network to which the virtual machine is connected.(Unconfirmed)


2022-09-30 13:57

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.