Horje
disable public internet access linux Code Example
disable public internet access linux
GW="$(sudo /sbin/route -n | awk '$1=="0.0.0.0" {print $2; exit}')"
sudo /sbin/route del default gw "$GW"
echo "$GW" >~/my_tmp_file

The last line saves the value in a file for later use when you want to restart the network:
sudo /sbin/route add default gw "$(cat ~/my_tmp_file)"




Shell

Related
vtex cli install Code Example vtex cli install Code Example
anaconda powershell list environment Code Example anaconda powershell list environment Code Example
brownie test coverage Code Example brownie test coverage Code Example
mac cleanup github Code Example mac cleanup github Code Example
powershell cheats Code Example powershell cheats Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8