Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: how use windows firewall

3 views
Skip to first unread message

Luuk

unread,
Feb 4, 2019, 1:28:27 PM2/4/19
to Lew Pitcher
On 4-2-2019 17:21, Lew Pitcher wrote:
> Joe rock wrote:
>
>>
>> hello,
>>
>> I observed that when I connect a usb android tethering to a
>> windows machine ( that have a ethernet connection functional ) ,
>> the default route change automatically, and windows use the usb
>> route to go on internet.
>> Why happened this?

It has (something) to do with 'metric':
https://en.wikipedia.org/wiki/Metrics_(networking)


>> I'm looking for windows firewall at application level,
>> to set program A to use ethernet , and program B to use usb thetering.
>> I search on google but I didnt found nothing about it.
>>
>> Who know anything more about firewall/routing in windows?
>
> You're more likely to get a relevant answer about Microsoft Windows
> firewalls and routing from a group that addresses that topic than you are
> from a group that addresses networking under Linux.
>
> Redirecting this to comp.os.ms-windows.networking.misc
>

Routing has to do with networking, that's why the basic rules apply to
both linux and windows.

The implementation of that rules, and how to apply those rules, is
another story.

> HTH
>



Mirko

unread,
Feb 25, 2019, 3:00:17 PM2/25/19
to
Il 04/02/2019 19:29, Luuk wrote:
> On 4-2-2019 17:21, Lew Pitcher wrote:
>> Joe rock wrote:
>>
>>>
>>> hello,
>>>
>>> I observed that when I connect a usb android tethering to a
>>>   windows machine ( that have a ethernet connection functional ) ,
>>>   the default route change automatically, and windows use the usb
>>>   route to go on internet.
>>> Why happened this?
>
> It has (something) to do with 'metric':
> https://en.wikipedia.org/wiki/Metrics_(networking)
>

Ok, I understood. The default gateway will go with the lowest metric.

In my case I have:


netstat -rn

https://justpaste.it/2c9m8

Route active:

network address Mask Gateway Interface Metric


0.0.0.0 0.0.0.0 192.168.42.129 192.168.42.165 10
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.10 25


So the metric of gateway 192.168.42.129 is smaller than 192.168.1.1 ,
so the default gateway is set to 192.168.42.129 ( it's the usb tethering).

I'm looking from use 192.168.42.129 as default gateway to go on
internet, and 192.168.1.1 ( the dsl router) to use only 192.168.1.1/24 (
internal lan network).

How may I do it with windows using "route" command from cmd prompt ?

Thank you very much.


Mirko
0 new messages