Hi,
We have private network. All connected into a HUB. We also have access to internet thru our Linux machine but I want to limit clients to access the internet.
what I did in my IP Table is to list all clients that I want to have access.
Like this:
IPTABLES -t nat -A POSTROUTING -p ip -s <client ip> -j SNAT --to-source <public ip>
I'd list all clients one by one like that. As I tested it, clients that were not listed is unable to access the internet which is the right one and intended.
Now, I just would like to verify if that is the right way to do that or is there a better way.
I also noticed that clients who have managed to connect to internet, like using messenger (yahoo or msn) and I want to disconnect them, like removing their entry in IP Table, they are not disconnected automatically.
They still can use it even if I already have restarted the firewall and flush the nat table. But, if they exited the messenger thats the time they can not log-in back again. But before they exit, they still can go thru.
What could I be missing there?
Thanks in Advance,
Neil