allowed inface in SNAT and MASQUERADE

This commit is contained in:
Costa Tsaousis (ktsaou) 2015-03-01 23:53:46 +02:00
parent 3ae8bfb1eb
commit 9d844c7785

@ -4041,7 +4041,7 @@ masquerade() {
set_work_function "Masquerade on interface '${f}'"
rule noowner table nat chain POSTROUTING "${@}" inface any outface "${f}" action MASQUERADE ${ports} ${random} || return 1
rule noowner table nat chain POSTROUTING "${@}" outface "${f}" action MASQUERADE ${ports} ${random} || return 1
FIREHOL_NAT=1
FIREHOL_ROUTING=1
@ -4214,7 +4214,7 @@ nat_helper() {
chains=(POSTROUTING)
#possible_chains="POSTROUTING INPUT"
action=snat
overwrite="inface any"
overwrite=""
tos=(${to//,/ })
;;