All of lore.kernel.org
 help / color / mirror / Atom feed
* About using -i with MASQUERADE
@ 2016-01-22 11:53 Fabio Pedretti
  2016-01-22 14:07 ` Bastian Bittorf
  2016-01-29 10:10 ` Vigneswaran R
  0 siblings, 2 replies; 6+ messages in thread
From: Fabio Pedretti @ 2016-01-22 11:53 UTC (permalink / raw)
  To: netfilter

Hi, I would like to do the following:
-t nat -A POSTROUTING -i eth3 -j MASQUERADE

but I get this error:
iptables v1.4.21: Can't use -i with POSTROUTING

So I am plannig to use:
-t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE

However I find the latter, working solution less smarter than the
first, non working. For example I should add rules for every network
coming from that interface that may also change in the future.

Is there a reason why -i is forbidden?
Is there a better solution than using -s?

Thanks.

-- 
ing. Pedretti Fabio
Responsabile U.O.C. "Reti e Sistemi"
http://www.unibs.it/organizzazione/amministrazione-centrale/servizio-servizi-ict/uoc-reti-e-sistemi
Università degli Studi di Brescia
Via Valotti, 9 - 25121 Brescia
E-mail: fabio.pedretti@unibs.it

-- 
Informativa sulla Privacy: http://www.unibs.it/node/8155

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-29 21:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22 11:53 About using -i with MASQUERADE Fabio Pedretti
2016-01-22 14:07 ` Bastian Bittorf
2016-01-29 10:10 ` Vigneswaran R
2016-01-29 11:26   ` Mart Frauenlob
2016-01-29 11:34     ` Vigneswaran R
2016-01-29 21:25     ` Pascal Hambourg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.