LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to block internet only for one client pc (https://www.linuxquestions.org/questions/linux-networking-3/how-to-block-internet-only-for-one-client-pc-148314/)

santoshdj123 02-20-2004 01:58 AM

how to block internet only for one client pc
 
I have two nics to my linux router. I am using NATing.
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE
where
(eth0 = global ip)
(eth1 = private ip)
which iptables command will prevent my one client pc to connect to internet. Can u give me iptables command to block net for that pc (take for e.g 192.68.1.5)

linuxxed 02-20-2004 06:51 AM

on the OUTPUT table.


All times are GMT -5. The time now is 08:06 PM.