169 похожих чатов

I have two network interfaces, each connected to a different

ISP.
There's an app that should prefer the first ISP only.
What's the easiest solution?

For example, is there any app which provides a SOCKS5 on a port, and routes requests to the desired interface by checking it's name or it's ISP?

I use Linux.

4 ответов

15 просмотров

did you try iptables?

required-optional Автор вопроса
dog Ass
did you try iptables?

I didn't think about it, yeah, it's the solution! Thanks.

required optional
I didn't think about it, yeah, it's the solution! ...

sounds good, if possible, do share how you managed to setup the rules

required-optional Автор вопроса
dog Ass
sounds good, if possible, do share how you managed...

I will. I should learn a bit more about it, before using it. I'm unsure about what keywords to look for. The preferred ISP, maybe actually accessible through different interfaces. Sometimes, through USB, sometimes Wi-Fi. In a script, I should detect it by a cURLing some free ISP check website, and then modify the iptables, based to the cURL result.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Добрый день! Скажите пожалуйста, а какие программы вы бы рекомендовали написать для того, чтобы научиться управлять памятью? Можно написать динамический массив, можно связный ...
Филипп
7
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
Ребят в СИ можно реализовать ООП?
Николай
33
https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_h_common.erl#L174 https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_olp.erl#L76 15 лет назад...
Maksim Lapshin
20
Карта сайта