Различия
Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
abills:docs:other:ipfw_policy_routing:ru [2010/09/24 11:54] asmodeus |
abills:docs:other:ipfw_policy_routing:ru [2015/12/05 17:50] (текущий) |
||
---|---|---|---|
Строка 7: | Строка 7: | ||
options IPFIREWALL_FORWARD | options IPFIREWALL_FORWARD | ||
options IPFIREWALL_NAT | options IPFIREWALL_NAT | ||
+ | |||
+ | **/etc/sysctl.conf** | ||
+ | |||
+ | net.inet.ip.fw.one_pass=0 | ||
+ | |||
Скрипт запуска: | Скрипт запуска: | ||
Строка 26: | Строка 31: | ||
done; | done; | ||
| | ||
- | ${IPFW} 60015 add fwd ${ISP_IP} ip from ${EXT_IP} to any | ||
${IPFW} 60010 nat tablearg ip from table\(34\) to any | ${IPFW} 60010 nat tablearg ip from table\(34\) to any | ||
+ | ${IPFW} 60015 add fwd ${ISP_IP} ip from ${EXT_IP} to any | ||
${IPFW} 60020 nat tablearg ip from any to table\(33\) | ${IPFW} 60020 nat tablearg ip from any to table\(33\) |