Welcome, Guest. Please login or register.
Did you miss your activation email?
Tuesday 19 November 2024, 08:45:38 am

Login with username, password and session length

Visit the Official Endian Bug tracker  HERE
14258 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Source NAT with different networks
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Source NAT with different networks  (Read 17259 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.078 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com