LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-20-2004, 01:58 AM   #1
santoshdj123
LQ Newbie
 
Registered: Aug 2003
Location: mumbai
Posts: 2

Rep: Reputation: 0
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)
 
Old 02-20-2004, 06:51 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
on the OUTPUT table.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Block internet access for windows machines Jeeves Linux - Security 5 08-26-2005 03:54 PM
block internet from 1 pc on local network bgriesi Linux - Networking 4 01-23-2005 12:44 PM
how to block internet only for one client pc phil.d.g Linux - Networking 5 12-09-2004 03:18 PM
Pls. Help -- How to block a client by iptables? swmok Linux - Security 2 09-08-2004 02:14 PM
SQUID:How can I block my LAN clients accessing Internet mwj Linux - Networking 1 10-27-2003 04:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration