* [LARTC] [LARTC]Routing problem !!!
@ 2003-11-27 1:50 Vaquer0
2003-12-01 7:19 ` Martin A. Brown
2003-12-01 13:25 ` Vaquer0
0 siblings, 2 replies; 3+ messages in thread
From: Vaquer0 @ 2003-11-27 1:50 UTC (permalink / raw)
To: lartc
Can anybody help me ?
This is my configuration:
eth0: 10.0.0.2/16
eth1: 10.0.0.1 (inet gateway)
#ip ru l :
0: from all lookup local
32765: from 10.0.0.2 lookup tabla1
32766: from all lookup main
32767: from all lookup default
#ip r l t tabla1
10.0.0.0/16 dev eth0 scope link src 10.0.0.2
127.0.0.0/8 dev lo scope link
default via 10.0.0.1 dev eth0
#ip r l t main
10.0.0.0/16 dev eth0 scope link
#ip r l t local
broadcast 127.255.255.255 dev lo proto kernel scope link src
127.0.0.1
broadcast 10.0.0.0 dev eth0 proto kernel scope link src 10.0.0.2
local 10.0.0.2 dev eth0 proto kernel scope host src 10.0.0.2
broadcast 10.0.255.255 dev eth0 proto kernel scope link src 10.0.0.2
broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
why can't i connect to inet ??
thanks
--
Vaquer0 <vaquero@bucomsec.net>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] [LARTC]Routing problem !!!
2003-11-27 1:50 [LARTC] [LARTC]Routing problem !!! Vaquer0
@ 2003-12-01 7:19 ` Martin A. Brown
2003-12-01 13:25 ` Vaquer0
1 sibling, 0 replies; 3+ messages in thread
From: Martin A. Brown @ 2003-12-01 7:19 UTC (permalink / raw)
To: lartc
: This is my configuration:
:
:
: eth0: 10.0.0.2/16
: eth1: 10.0.0.1 (inet gateway)
:
: #ip ru l :
:
: 0: from all lookup local
: 32765: from 10.0.0.2 lookup tabla1
: 32766: from all lookup main
: 32767: from all lookup default
:
:
: #ip r l t tabla1
:
:
: 10.0.0.0/16 dev eth0 scope link src 10.0.0.2
: 127.0.0.0/8 dev lo scope link
: default via 10.0.0.1 dev eth0
:
: #ip r l t main
:
: 10.0.0.0/16 dev eth0 scope link
[ local routing table snipped ]
: why can't i connect to inet ??
Probably because your router doesn't have a way to send packets to
10.0.0.1 even if the source address on the outbound packet is 10.0.0.2.
Add one more route to tabla1:
# ip route add 10.0.0.1 dev eth1 table tabla1
# ip route change default via 10.0.0.1 dev eth1 table tabla1
Once you can ping 10.0.0.1 from your policy routing device, then you
should be able to hit the Internet from the same device.
You didn't explain anything about what applications or functions this box
hosts, so there's nothing more to say here.
-Martin
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] [LARTC]Routing problem !!!
2003-11-27 1:50 [LARTC] [LARTC]Routing problem !!! Vaquer0
2003-12-01 7:19 ` Martin A. Brown
@ 2003-12-01 13:25 ` Vaquer0
1 sibling, 0 replies; 3+ messages in thread
From: Vaquer0 @ 2003-12-01 13:25 UTC (permalink / raw)
To: lartc
Martin, as you can see in my last post i have route to 10.0.0.1 in the
main routing table , so i have ping to the gateway but i can't connect
to inet.
: #ip r l t main
> :
> : 10.0.0.0/16 dev eth0 scope link
>
The only way to connect to inet is adding:
ip r a default via 10.0.0.1 t main
If i add the default gw in table main , i can connect to inet but i'd
like to do this in other table.
Can you help me ?
thanks.
On Mon, 2003-12-01 at 08:19, Martin A. Brown wrote:
> : This is my configuration:
> :
> :
> : eth0: 10.0.0.2/16
> : eth1: 10.0.0.1 (inet gateway)
> :
> : #ip ru l :
> :
> : 0: from all lookup local
> : 32765: from 10.0.0.2 lookup tabla1
> : 32766: from all lookup main
> : 32767: from all lookup default
> :
> :
> : #ip r l t tabla1
> :
> :
> : 10.0.0.0/16 dev eth0 scope link src 10.0.0.2
> : 127.0.0.0/8 dev lo scope link
> : default via 10.0.0.1 dev eth0
> :
> : #ip r l t main
> :
> : 10.0.0.0/16 dev eth0 scope link
>
> [ local routing table snipped ]
>
> : why can't i connect to inet ??
>
> Probably because your router doesn't have a way to send packets to
> 10.0.0.1 even if the source address on the outbound packet is 10.0.0.2.
> Add one more route to tabla1:
>
> # ip route add 10.0.0.1 dev eth1 table tabla1
> # ip route change default via 10.0.0.1 dev eth1 table tabla1
>
> Once you can ping 10.0.0.1 from your policy routing device, then you
> should be able to hit the Internet from the same device.
>
> You didn't explain anything about what applications or functions this box
> hosts, so there's nothing more to say here.
>
> -Martin
--
Vaquer0 <vaquero@bucomsec.net>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-12-01 13:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-27 1:50 [LARTC] [LARTC]Routing problem !!! Vaquer0
2003-12-01 7:19 ` Martin A. Brown
2003-12-01 13:25 ` Vaquer0
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.