Code to enable / disable internet connection

I need to write code to connect to the Internet on a computer. By default, the Internet should not work.

But after installing my program, the Internet should work.

Of course, computers are connected to my server and usually access the Internet through DHCP right now. But, give me some ideas to do things in such a way that only installing my program provides an Internet connection.

thank

-2
source share
5 answers

I know that you do not want to use it, but the proxy is the right and simple tool to use.

- , //, - .

, , - ?

, vpn . -.

: Squid - , , mysql. mysql "enable", .

!

+1

Zone Alarm - , , " ", , , .

0

, , .

, , , , Internet Explorer - ( ). , - . , -. Chrome, Opera, Firefox .., ...

0

And then it's easy. Buy a router, install it, go to 192.168.1.1, enter your password, then configure it to authenticate based on MAC addresses or require user passwords, whichever closely resembles your current plan :)

0
source

What you are trying to do falls into the 802.1x area. Read this technology and the ability to enable outbound routes after user authentication.

0
source

Source: https://habr.com/ru/post/1773237/


All Articles