On Mon, Jan 21, 2002 at 10:15:02AM +0530, Manish K Arya spoke out thus:
> first set up iptables to block all incomming tcp connections by
> 
> iptables -A INPUT -p tcp --syn -j DROP
> 
> then i want to open ssh for selected machines so i do
> 
> iptables -A INPUT -p tcp --syn -s 192.168.1.0/24 -d 192.168.1.1 --destination-port 
>22 -j ACCEPT
> 
> this should open ssh connections for all PCs on 192.168.1.0/24 n/w to 192.168.1.1


1. What is the order of these two rules? The second one should be at the top.
2. I am assuming that you are putting all these rules on the machine 192.168.1.1 
itself.


- Sandip



-- 
Sandip Bhattacharya
sandipb @ bigfoot.com
http://www.sandipb.net
----------------------------

          ================================================
To un/subscribe, send email to [EMAIL PROTECTED] with 'un/subscribe' in subject 
header
Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
          =================================================

Reply via email to