LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Restricting USB mount and Internet access on a server (https://www.linuxquestions.org/questions/linux-server-73/restricting-usb-mount-and-internet-access-on-a-server-649286/)

mayank_a 06-14-2008 12:26 PM

Restricting USB mount and Internet access on a server
 
I maintain a Redhat Server for students. I need to restrict students mounting their USB device on the server and restrict internet access, while maintaining intranet access from the server.
Please if you can guide me to some links for steps of the same.

Thanks and Regards
Mayank Agarwal

MS3FGX 06-15-2008 05:18 PM

Well USB certainly shouldn't a problem, as normal users don't even have permission to mount removable devices normally. Unless you are using HAL to do automounting, in which case you can just stop that service.

As for Internet access, would it be enough to remove all DNS servers from the system's configuration, and then address the server you wish them to view by IP? Granted this would still allow Internet access if the IP of the outside server was known.

Alternately, you could just filter access through iptables.

eco 06-16-2008 08:26 AM

Hi,

If you don't want USB access you could just disable it in the BIOS. That's sure to make it tough.

As for the internet, I'd use iptables as MS3FGX sugested.

-eco


All times are GMT -5. The time now is 07:48 AM.