Python Forum
Is it possible to trun local internet access off programmatically?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to trun local internet access off programmatically?
#1
Is there a way to enable or disable local internet access programmatically ?
Reply
#2
ifconfig eth0 down?

On Windows, there's netsh: https://stackoverflow.com/a/86611
Reply
#3
Quote:ifconfig eth0 down?
gives me something to investigate, thanks
Reply
#4
systemctl stop NetworkManager.service 
?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#5
On modern Linux system we should all use systemd :-)
You'll find also packages on Pypi to control systemd.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Check network WITHOUT use internet ATARI_LIVE 1 2,193 Oct-28-2020, 07:59 PM
Last Post: Larz60+
  error opening port from local to internet looney99 3 2,774 Oct-16-2020, 02:01 PM
Last Post: BeanieW

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020