>Is there anyway  that I could block IRC totally then give access to a
>specific or specific IP addresses. I did some of X-rated sites a few
>months ago but it applied to the whole network. Has anyone tried this? I

So you want to BLOCK all IRC traffic from all MASQed machines?


>am sure David has tried this, haven't you?

hehe... no, but it would be easy enough..

--
#Specifically allowed IRC IP addresses
/sbin/ipfwadm -I -a allow -W $intif -P tcp -S $192.168.101.200 -D $extip 6667

#Deny ALL other IP addresses for IRC
/sbin/ipfwadm -I -a deny -W $intif -P tcp -S $universe -D $extip 6667

NOTE:   

        - $intif is a script variable to depict the name of your
                internet connection link's name (eth0, ppp0, etc)

        - 192.168.101.200 is one address of a machine that SHOULD have
          IRC access.  For each additional allowed IRC machine, you
          will have to add more IPFWADM allow lines.

        - This rule assumes that your destination server will 
          be listening on port 6667.  You will have to add other
          server ports as you find them.

--David
.----------------------------------------------------------------------------.
|  David A. Ranch - Linux/Networking/PC hardware         [EMAIL PROTECTED]  |
!----                                                                    ----!
`----- For more detailed info, see http://www.ecst.csuchico.edu/~dranch -----'
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to