Re: [LARTC]Routing problem !!!

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 : 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@xxxxxxxxxxxxxx

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux