Re: deny telnet&ftp except 2 station

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 1 Feb 2003 09:17:12 +0330, 
"zeinali" <zeinali@iomco.com> wrote in message 
<000001c2c9b5$5e967f20$190da8c0@iomco.com>:

> dear sir
> recently i installed redhat 8.0 and i setuped squid but im going to
> deny any telnet and ftp to my linux box except 2 ip address like
> 192.168.13.24 & 192.168.13.25  but i don't know how can i do it with
> IPTABLES 1.26a 
> if possible pls kindly help me


..like 'iptables -A $incoming -p any 192.168.13.24 \
--destination-port 23 -j ACCEPT'

...where "$incoming" is either INPUT or FORWARD etc, chk 
Oskars Andreasson's excellent Iptables Tutorial 1.1.16
http://iptables-tutorial.frozentux.net/chunkyhtml/index.html 

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux