0

I have setup an Ubuntu server with multiple user for remote access. The public internet access is thru wifi. I need to block the public internet access for all user except two users, root and admin

Now I could had used the following command sudo iptables -A OUTPUT -m owner --uid-owner user_you_want_to_block -j REJEC This will block all the outgoing traffic for the user which I cannot do, I need allow all the user to use intranet which is thru the eth0

How should i do this

Nisheeth

1 Answers1

0

Could try to shut the card off with a logon script. Something like,

#!/bin/bash sudo iwconfig wlan0 down

This would leave the eth0 card up and running for your intranet use.

amanthethy
  • 1,251