kolhicin
13-11-2009, 13:05
Аlchemist, FwCMD="/sbin/ipfw"
LanOut="rl0"
LanIn="vr0"
#Vif="tap"
IpOut="192.168.1.130"
IpIn="10.10.0.1"
NetMask="24"
#NetIn="192.168.1.0/24"
NetIn="10.10.0.0/24"
#ViNet="192.168.40.0/24"
#ViPri="10.0.0.0"
${FwCMD} -f flush
${FwCMD} add chek-state
${FwCMD} add allow ip from any to any via lo0
${FwCMD} add allow from any to any
LanOut="rl0"
LanIn="vr0"
#Vif="tap"
IpOut="192.168.1.130"
IpIn="10.10.0.1"
NetMask="24"
#NetIn="192.168.1.0/24"
NetIn="10.10.0.0/24"
#ViNet="192.168.40.0/24"
#ViPri="10.0.0.0"
${FwCMD} -f flush
${FwCMD} add chek-state
${FwCMD} add allow ip from any to any via lo0
${FwCMD} add allow from any to any