From owner-freebsd-questions Thu Mar 21 2: 5:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web20609.mail.yahoo.com (web20609.mail.yahoo.com [216.136.226.167]) by hub.freebsd.org (Postfix) with SMTP id 15ECF37B400 for ; Thu, 21 Mar 2002 02:05:47 -0800 (PST) Message-ID: <20020321100546.96134.qmail@web20609.mail.yahoo.com> Received: from [203.130.197.145] by web20609.mail.yahoo.com via HTTP; Thu, 21 Mar 2002 02:05:46 PST Date: Thu, 21 Mar 2002 02:05:46 -0800 (PST) From: agusri dodi Subject: Firewall rule for IRC To: marcs@draenor.org Cc: freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am using Natd to connect my LAN to Internet.Web and FTP work well but my client can not use IRC services here is the content of my configuration file RC.CONF : gateway_enable="YES" natd_enable="YES" natd_interface="fxp0" natd_flags="-f /etc/natd.conf" firewall_enable="NO" THE CONTENT OF RC.lOCAL FILE : echo 'Starting Firewall' /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via fxp0 # My Local Network (my netwrok interface (INTEL) /sbin/ipfw add allow ip from 192.168.0.0:255.255.255.0 to any via fxp0 #Allow INDENT /sbin/ipfw add allow log tcp from any to any 194 in recv fxp0 setup #Allow IRC /sbin/ipfw add allow log tcp from any to any 113 in recv fxp0 setup #Deny X /sbin/ipfw add 00300 deny log tcp from any to any 6000 in recv fxp0 # DNS of my ISP /sbin/ipfw add allow tcp from 202.134.0.155 to any in recv fxp0 /sbin/ipfw add allow tcp from 202.134.2.5 to any in recv fxp0 /sbin/ipfw add allow udp from 202.134.0.155 to any in recv fxp0 /sbin/ipfw add allow udp from 202.134.2.5 to any in recv fxp0 /sbin/ipfw add pass all from any to any echo 'Starting Natd ' natd -n fxp0 -f /etc/natd.conf echo 'Starting Boa ' boa THE CONTENT OF NATD.CONF FILE : interface fxp0 use_sockets yes same_ports yes What should I do ? Is there any setting for IRC client ? thank for reply __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message