andrewp » 28 фев 2009, 22:19
#!/bin/sh
ipfw='/sbin/ipfw -q'
ournet='192.168.1.0/24'
uprefix='192.168.1'
ifout='tun0'
ifuser='rl1'
${ipfw} flush
${ipfw} add 100 check-state
${ipfw} add 200 deny icmp from any to any in icmptype 5,9,13,14,15,16,17
${ipfw} add 300 allow ip from any to any via lo
${ipfw} add 310 allow tcp from me to any keep-state via ${ifout}
${ipfw} add 320 allow icmp from any to any
${ipfw} add 330 allow udp from me to any domain keep-state
${ipfw} add 340 allow udp from any to me domain
${ipfw} add 350 allow ip from me to any
${ipfw} add 400 allow tcp from any to me http,https,ssh,1776,110
${ipfw} add 410 allow tcp from not ${ournet} to me smtp
${ipfw} add 420 allow all from any to me via ${ifout}
${ipfw} add divert 8868 tcp from any to any via ${ifout}
#${ipfw} add 65535 deny ip from any to any
надо прописать жестко dc++, почту.