EFW Support

Support => General Support => Topic started by: mmiat on Friday 14 March 2014, 10:14:14 pm



Title: Source NAT with different networks
Post by: mmiat on Friday 14 March 2014, 10:14:14 pm
Hi
I've to configure a source NAT
source: 192.168.10.0/24
destination: 10.128.0.0/12
I've only /29 private network to map

so when I configure it Endian said to me that source and destination network must have same range.

How can I do? thanks


Title: Re: Source NAT with different networks
Post by: dda on Saturday 15 March 2014, 12:58:36 am
Two private ranges... isn't there a better way to do that through zones or something???


Title: Re: Source NAT with different networks
Post by: cbergia on Tuesday 07 June 2016, 04:24:26 am
Have the same need


Title: Re: Source NAT with different networks
Post by: mmiat on Tuesday 07 June 2016, 04:44:24 am
I solved with editing /var/efw/snat/config:
Code:
on,,192.168.10.0/24,10.128.0.0/12,,,NETMAP,DESCRIPTION,,10.143.144.112/29
and reboot
or create a script to launch after boot with this command:
Code:
iptables -t nat -I SOURCENAT 1 -j NETMAP -p all -s 192.168.10.0/24 -d 10.128.0.0/12 --to 10.143.144.112/29