вот мои правила, после их запуска машина начинает тормозить,чего с ней?
ppp0 выход в инет и мне выдают ip=192.168.7.11, а потом через nat
после запуска правил, mc дождаться не возмоно, ппосто зависает...
////////////
#!/usr/sh
inet_ip="192.168.7.11"
local_net="192.168.1.0/24"
fwcmd='/sbin/ipfw -q'
${fwcmd} -f flush
${fwcmd} add deny tcp from ${inet_ip} to any 137-139 via ppp0
${fwcmd} add deny udp from ${inet_ip} to any 137-139 via ppp0
${fwcmd} add allow ip from any to any via lo0
${fwcmd} add allow ip from any to any via rl0
${fwcmd} add deny ip from ${local_net} to any via ppp0
${fwcmd} add divert natd ip from any to any via ppp0
${fwcmd} add allow ip from ${inet_ip} to ${local_net}
${fwcmd} add allow tcp from any to any via ppp0 established
${fwcmd} add allow tcp from any to ${inet_ip} 20,21 setup via ppp0
${fwcmd} add allow tcp from any to ${inet_ip} 25 setup via ppp0
${fwcmd} add allow tcp from any to ${inet_ip} 22 setup via ppp0
${fwcmd} add allow tcp from any to ${inet_ip} 80 setup via ppp0
${fwcmd} add allow ip from ${inet_ip} to any via ppp0
${fwcmd} add allow icmp from any to any icmptype 0,3,8,11
${fwcmd} add allow udp from any to any 53
${fwcmd} add allow udp from any 53 to any