Welcome, Guest. Please login or register.
Did you miss your activation email?
Friday 06 December 2024, 09:00:44 am

Login with username, password and session length

Visit the official Endian Community Mailinglist  HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Source NAT with different networks
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Source NAT with different networks  (Read 18875 times)
mmiat
Sr. Member
****
Offline Offline

Gender: Male
Posts: 236


WWW
« 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
Logged

---------------------
IT Consultant
www.fsw.it
Hardware & Software
dda
Sr. Member
****
Offline Offline

Posts: 227


« Reply #1 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???
Logged
cbergia
Jr. Member
*
Offline Offline

Posts: 1


« Reply #2 on: Tuesday 07 June 2016, 04:24:26 am »

Have the same need
Logged
mmiat
Sr. Member
****
Offline Offline

Gender: Male
Posts: 236


WWW
« Reply #3 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

Logged

---------------------
IT Consultant
www.fsw.it
Hardware & Software
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.094 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com