Hi
i am search a solution for masquera all ip of my network.
I have 1 Linux server with Shorewall 3.2.1.
with:
eth1 192.168.11.254
eth1:1 192.168.1.253
192.168.2.0 192.168.1.254 255.255.255.0 UG 0 0 0 eth1
192.168.18.0 192.168.11.253 255.255.255.0 UG 10 0 0 eth1
no problemes, 192.168.1 and 192.168.11 can ping 192.168.18.X
But my problems that 192.168.18.0 know a another network in 192.168.2.0
not based on my network.
I want create a new IP: 192.168.3.0/24, on 192.168.18.0 router put a route
192.168.3.0/24 to 192.168.1.253
and on my linux router put a masq:
192.168.3.1 = 192.168.2.1
192.168.3.2 = 192.168.2.2
<..>
and when a user in 192.168.18 want access to 192.168.2, he put 192.168.3
and when a user of 192.168.2 want access to 192.168.18,my linux router
change automatiquely 192.168.2.X in 192.168.3.X for the 192.168.18 can
answer.
It''s possible ?
It''s in /etc/shorewall/masq ?
Than ks for your help
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Network Operation Center wrote:> Hi > > i am search a solution for masquera all ip of my network. > > I have 1 Linux server with Shorewall 3.2.1. > with: > eth1 192.168.11.254 > eth1:1 192.168.1.253 > > 192.168.2.0 192.168.1.254 255.255.255.0 UG 0 0 0 eth1 > 192.168.18.0 192.168.11.253 255.255.255.0 UG 10 0 0 eth1 > > no problemes, 192.168.1 and 192.168.11 can ping 192.168.18.X > > But my problems that 192.168.18.0 know a another network in 192.168.2.0 > not based on my network. > > I want create a new IP: 192.168.3.0/24, on 192.168.18.0 router put a route > 192.168.3.0/24 to 192.168.1.253 > > and on my linux router put a masq: > > 192.168.3.1 = 192.168.2.1 > 192.168.3.2 = 192.168.2.2 > <..> > > and when a user in 192.168.18 want access to 192.168.2, he put 192.168.3 > and when a user of 192.168.2 want access to 192.168.18,my linux router > change automatiquely 192.168.2.X in 192.168.3.X for the 192.168.18 can > answer. > > It''s possible ? > It''s in /etc/shorewall/masq ?See http://www.shorewall.net/netmap.html -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Hi
thanks for your answer, but me, i don''t have two firewall !
Only one and i want use the same interface
Tom Eastep a écrit :
Network Operation Center wrote:
Hi
i am search a solution for masquera all ip of my network.
I have 1 Linux server with Shorewall 3.2.1.
with:
eth1 192.168.11.254
eth1:1 192.168.1.253
192.168.2.0 192.168.1.254 255.255.255.0 UG 0 0 0 eth1
192.168.18.0 192.168.11.253 255.255.255.0 UG 10 0 0 eth1
no problemes, 192.168.1 and 192.168.11 can ping 192.168.18.X
But my problems that 192.168.18.0 know a another network in 192.168.2.0
not based on my network.
I want create a new IP: 192.168.3.0/24, on 192.168.18.0 router put a route
192.168.3.0/24 to 192.168.1.253
and on my linux router put a masq:
192.168.3.1 = 192.168.2.1
192.168.3.2 = 192.168.2.2
<..>
and when a user in 192.168.18 want access to 192.168.2, he put 192.168.3
and when a user of 192.168.2 want access to 192.168.18,my linux router
change automatiquely 192.168.2.X in 192.168.3.X for the 192.168.18 can
answer.
It''s possible ?
It''s in /etc/shorewall/masq ?
See http://www.shorewall.net/netmap.html
-Tom
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Network Operation Center wrote:> Hi > > thanks for your answer, but me, i don''t have two firewall ! > Only one and i want use the same interfaceYou have two routers. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Yes, but only one linux ! the second are a Cisco ... if i put only: SNAT 192.168.2.0/24 eth1 192.168.3.0/24 DNAT 192.168.3.0/24 eth1 192.168.2.0/24 that''s work ? Tom Eastep a écrit : Network Operation Center wrote: Hi thanks for your answer, but me, i don''t have two firewall ! Only one and i want use the same interface You have two routers. -Tom ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Network Operation Center wrote:> Yes, but only one linux ! the second are a Cisco ... > > if i put only: > > SNAT 192.168.2.0/24 eth1 192.168.3.0/24 > DNAT 192.168.3.0/24 eth1 192.168.2.0/24 > > that''s work ?No. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
ok, no other solution ? i can map ip per ip ? Tom Eastep a écrit : Network Operation Center wrote: Yes, but only one linux ! the second are a Cisco ... if i put only: SNAT 192.168.2.0/24 eth1 192.168.3.0/24 DNAT 192.168.3.0/24 eth1 192.168.2.0/24 that''s work ? No. -Tom ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Network Operation Center wrote:> ok, no other solution ? i can map ip per ip ?Did you read the last section of http://www.shorewall.net/netmap.html? As I mention in that section, I think that it can be done with a combination of NETMAP and policy routing but I haven''t tried to sit down a work out how to do it exactly. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Tom Eastep wrote:> Network Operation Center wrote: >> ok, no other solution ? i can map ip per ip ? > > Did you read the last section of http://www.shorewall.net/netmap.html? > > As I mention in that section, I think that it can be done with a combination > of NETMAP and policy routing but I haven''t tried to sit down a work out how > to do it exactly.I would start with: /etc/shorewall/netmap: SNAT 192.168.2.0/24 eth1 192.168.3.0/24 DNAT 192.168.3.0/24 eth1 192.168.2.0/24 /etc/shorewall/tcrules: 1:P 192.168.2.0/24 192.168.3.0/24 /etc/shorewall/providers: #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS COPY map 1 1 - eth1 192.168.11.253 And be sure that routefiltering is turned off on eth1. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Tom Eastep wrote:> Tom Eastep wrote: >> Network Operation Center wrote: >>> ok, no other solution ? i can map ip per ip ? >> Did you read the last section of http://www.shorewall.net/netmap.html? >> >> As I mention in that section, I think that it can be done with a combination >> of NETMAP and policy routing but I haven''t tried to sit down a work out how >> to do it exactly. > > I would start with: > > /etc/shorewall/netmap: > > SNAT 192.168.2.0/24 eth1 192.168.3.0/24 > DNAT 192.168.3.0/24 eth1 192.168.2.0/24 > > /etc/shorewall/tcrules: > > 1:P 192.168.2.0/24 192.168.3.0/24 > > /etc/shorewall/providers: > > #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS COPY > map 1 1 - eth1 192.168.11.253 > > And be sure that routefiltering is turned off on eth1. >Hmmm -- I just realized that your local 192.168.2.0/24 network is on eth1 -- so the above won''t work. I see no way to do this without also doing network mapping on the Cisco router. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/