Date: Wed, 19 Dec 2001 04:44:40 +0800 From: slack@suntop-cn.com To: freebsd-security@FreeBSD.ORG Subject: about ipfw Message-ID: <3C201B38.28785.6DBD8F@localhost>
next in thread | raw e-mail | index | archive | help
1. can ipfw do a TCP keep-state ?
2. how keep-state combine with "via interface" ?
3. this ipfw rules don't work: why ?
ipfw add pass all any to any via lo
ipfw add pass all any to any via ${iif}
ipfw add divert natd all from any to any via ${oif}
# Allow TCP through if setup succeeded
ipfw add check-state
${fwcmd} add deny tcp from any to any established
# Allow IP fragments to pass through
${fwcmd} add deny all from any to any via ${oif} frag
# Allow icmp 0 3 8 11 pass
${fwcmd} add pass icmp from any to any via ${oif} icmptypes 0,3,8,11
# Reject&Log all setup of incoming connections from the outside
${fwcmd} add deny log tcp from any to any in via ${oif} setup
# Allow setup of any other TCP connection
${fwcmd} add pass tcp from any to any out via ${oif} setup keep-state
# Allow DNS queries out in the world
${fwcmd} add pass udp from ${oip} to any 53 out via ${oif} keep-state
# Allow NTP queries out in the world
${fwcmd} add pass udp from ${oip} to any 123 out via ${oif} keep-state
${fwcmd} add deny log all from any to any
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C201B38.28785.6DBD8F>
