turn off internet access

LSD

New Member


Messages: 5

How do I turn off access to the internet on FreeBSD?

When I type `ifconfig', the device for the internet is ue0.

So I was thinking of just doing:
# ifconfig ue0 down
to bring it down and the `up' command to bring it back up.

But the ifconfig man page says:
down
Mark an interface ``down''.
When an interface is marked ``down'', the system will not attempt to transmit messages through that interface. If possible, the interface will be reset to disable reception as well. This action does not automatically disable routes using the interface.
Does this mean that some programs could keep connections open?
Is there a better way to shut off access to the internet?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 8,932
Messages: 33,331

oes this mean that some programs could keep connections open?
No, it means your routing tables are left intact.

Is there a better way to shut off access to the internet?
Downing an interface is, from the system's point of view, similar to literally unplugging the cable.
 

Lamia

Aspiring Daemon

Reaction score: 93
Messages: 512

No, it means your routing tables are left intact.


Downing an interface is, from the system's point of view, similar to literally unplugging the cable.
Unplug the cable.
If you restart the PC, the interface will come back online. Alternatively, you can comment out the interface settings - ifconfig_INT, defaultrouter, etc - in rc.conf.
 
Top