Re: Block port 80 allow port 110&25

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

 



On Friday 01 February 2008 01:22, Toto wrote:
> i'm using redhat 9 as pc router and internet access with dsl, i want to
> block port 80 but allow port 110 and 25 in my lan
>
> thanks for your help

Maybe use iptables ???? or google ?

iptables -A INPUT -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -p tcp --dport 110 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j REJECT --reject-with tcp-reset
iptables -A INPUT -p tcp --dport 1:1024 -j DROP 


-- 
lpct@xxxxxxxxxxxxxxxx
http://www.linuxiso.cl

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux