How to change source port in MASQUERADE mode?
hno at marasystems.com
Fri Sep 30 13:58:26 CEST 2005
On Fri, 30 Sep 2005, Richard Liu wrote:
> I want change tuple source port in MASQUERADE module.
--to-ports option to MASQUERADE (or SNAT if not dynamic IP assignment).
> But I want to the src port be changed in some conditions like this.
> src:GA:50000+1000 src:SA:1000
> dst:DA:23 dst:DA:23
Then you simply need rules matching your conditions.
More information about the netfilter-devel