This is very useful if you want to block internet access to your kids or particular users
First you need to edit the network interfaces file using the following comamnd
sudo vi /etc/network/interfaces
or
sudo gedit /etc/network/interfaces
Now you need to add the simple iptables rule to the interfaces file when the internet connection starts up
Simply add this under auto wlan0 or auto eth0 in the interfaces file
pre-up iptables -A OUTPUT -p tcp -m owner --uid-owner username -j DROP
save and exit the file.
Now you need to type in the terminal with the following command
sudo iptables -A OUTPUT -p tcp -m owner --uid-owner username -j DROP
and switch users to the username you blocked and try to access the internet.
How to Disable internet access for particular user in Ubuntu
Related Posts:
Howto Upgrade Pidgin into 2.5.8 versionThe solution is upgrade the Pidgin into 2.5.8 version. Via terminal console The steps: 1. Open the terminal, then copy-paste these commands and pr… Read More
How to enable a disabled account in finch i1. Open Action Menu (Alt+A) and open Accounts window in finch. 2. Select the account to enable using the arrow keys. 3. Press SPACEBAR and the [X] … Read More
Install Adobe PDF Reader with Plug-in for Mozilla Firefox in ubuntuAdobe Acrobat was the first software to support Adobe Systems’ Portable Document Format (PDF). It is a family of software, some commercial and some fr… Read More
Howto Mount and Unmout ISO images without burning them in ubuntuSome times you want to use iSO images without burning them.If you don’t want to waste your CD’s/DVD’s here is the simple possible solutions using thes… Read More
Howto Install More Than 4Gb Memory in 32 bit Ubuntu - How to Install PAE ( Physical Address Extension)If You Install More than 4 GB Memory in your 32bit ubuntu Machine It will not access the memory beyond 4GB.The x86 architecture presently uses only 36… Read More
0 comments:
Post a Comment