Networking Forums

Networking Forums > Computer Networking > Linux Networking > Route breaks firewall's local access

Reply
Thread Tools Display Modes

Route breaks firewall's local access

 
 
AcCeSsDeNiEd
Guest
Posts: n/a

 
      08-31-2004, 02:58 AM
I have 2 gateways/systems setup:

Gateway A:
eth0= 10.10.1.1
eth1= 10.30.1.15

Gateway B:
eth0=10.30.1.1

I have set up a static route that says if the 10.10.1.0 network wants to reach the
10.30.1.0 network, use the 10.30.1.1 gateway. This works, both the network's users
(10.10.1<->10.30.1) can reach each other.

However, this breaks Gateway A's local access to the 10.30.1.0 network.
I suppose it's because locally on A, the packets get routed via 10.30.1.1.
When it reaches B, B detects that it's a local IP (10.30.1.15) and sends it back directly to
10.30.1.15
(as opposed to 10.30.1.1).

I hope I've explained properly.

Any ideas/help?

How can I tell A not to use 10.30.1.1 if wants to locally access 10.30.1.0?

Thanks.



To e-mail, remove the obvious
 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      08-31-2004, 07:44 AM
AcCeSsDeNiEd wrote:
> I have 2 gateways/systems setup:
>
> Gateway A:
> eth0= 10.10.1.1
> eth1= 10.30.1.15
>
> Gateway B:
> eth0=10.30.1.1
>
> I have set up a static route that says if the 10.10.1.0 network wants to reach the
> 10.30.1.0 network, use the 10.30.1.1 gateway. This works, both the network's users
> (10.10.1<->10.30.1) can reach each other.
>
> However, this breaks Gateway A's local access to the 10.30.1.0 network.
> I suppose it's because locally on A, the packets get routed via 10.30.1.1.
> When it reaches B, B detects that it's a local IP (10.30.1.15) and sends it back directly to
> 10.30.1.15
> (as opposed to 10.30.1.1).
>
> I hope I've explained properly.
>
> Any ideas/help?
>


Post the results of:

ifconfig
route -n

from both routers (A and B). Do not edit the listings.

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
Francesc Guasch
Guest
Posts: n/a

 
      08-31-2004, 08:01 AM
AcCeSsDeNiEd <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>. ..
> I have 2 gateways/systems setup:
>
> Gateway A:
> eth0= 10.10.1.1
> eth1= 10.30.1.15
>
> Gateway B:
> eth0=10.30.1.1
>


How are connected both gateways to each other ?
I think you should have:

----10.10.1.1 [ GW A ] 192.168.1.1 ------ 192.168.1.2 [ GW B ] 10.30.1.1 -------
 
Reply With Quote
 
pcfixer
Guest
Posts: n/a

 
      08-31-2004, 01:44 PM

"AcCeSsDeNiEd" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have 2 gateways/systems setup:
>
> Gateway A:
> eth0= 10.10.1.1
> eth1= 10.30.1.15
>
> Gateway B:
> eth0=10.30.1.1
>
> I have set up a static route that says if the 10.10.1.0 network wants to

reach the
> 10.30.1.0 network, use the 10.30.1.1 gateway. This works, both the

network's users
> (10.10.1<->10.30.1) can reach each other.
>
> However, this breaks Gateway A's local access to the 10.30.1.0 network.
> I suppose it's because locally on A, the packets get routed via 10.30.1.1.
> When it reaches B, B detects that it's a local IP (10.30.1.15) and sends

it back directly to
> 10.30.1.15
> (as opposed to 10.30.1.1).
>
> I hope I've explained properly.
>
> Any ideas/help?
>
> How can I tell A not to use 10.30.1.1 if wants to locally access

10.30.1.0?
>
> Thanks.
>
>
>
> To e-mail, remove the obvious


I'm not sure exactly how you have things setup, but it sounds like to me
that you don't even really need gateway B. Your Gateway A is on both
networks simultaneously, therefore routing between the two can be handled on
that single machine. I'm thinking you should try removing the static route
you setup that links the two and put in a static route that tells any
traffic bound for the 10.30.1.0 network to use 10.30.1.15, which is the IP
of Gateway A's NIC on that network. Gateway by itself should be able to
talk on both network without any fancy routing because it has NICs on both.
But for other PC's on the 10.10.1.0 network, Gateway A needs to tell
connections to 10.30.1.x coming from them to go out through its 10.30.1.15
NIC.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Route local traffic via Iptables Jacob Linux Networking 3 08-07-2006 10:20 PM
route command and non-local gateways StivH Linux Networking 14 01-17-2006 03:03 PM
linux 2.6.15 breaks route to outside world? whatdoineed2do@yahoo.co.uk Linux Networking 5 01-12-2006 08:46 PM
VPN client adds wrong route to local route table snowdog_2112 Windows Networking 7 11-01-2005 02:05 PM
route issue? machine is accessible but cannot access outside local network Eric Smith Linux Networking 1 09-09-2003 03:57 PM



1 2 3 4 5 6 7 8 9 10 11