[LARTC] Fordwaring public IP with ip route !! I'm mising something

Linux Advanced Routing and Traffic Control

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

 



Hi again


> >
> >
+-----------------+
> >                         eth0 ----------------- |
|
> >                                                           |        LINUX
| ---------------- eth1
> >                         eth2 ----------------- |
|
> >                                                           |        SUPER
| ---------------- eth4
> >                         eth3 ----------------- |
|
> >                                                           |
ROUTER    |
> >
+----------------+
> >
> >
 Internet Connections:
     eth0: 200.1.1.2 (200.1.1.0/24)              200.1.1.1 in the main
router
     eth2: 200.2.1.2 (200.2.1.0/24)              200.2.1.1 in the main
router
     eth3: 200.3.1.2 (200.3.1.0/24)              200.3.1.1 in the main
router
     from 3 diferent carriers
        eth1 is a privet SNAT

Can I forward some public IP to eth4? I did some thing like this but with no
luck.

ip aliasing for eth4 = 200.1.1.3; 200.2.1.3; 200.3.1.3 on the linux router,
at the end of eth4 is a hub conected to 3 PC, one for each public class. PC1
is 200.1.1.4. PC2 is 200.2.1.4 and PC3 is 200.1.1.5.

What I aded in the routes where

PC1:
ip rule to 200.1.1.4 table 4
(sould I use 200.1.1.4/32 ??)
ip route add 200.1.1.4 via 200.1.1.3 via eth4 table 4        (sould I use
200.1.1.4/32 ??)

Well this work in one whay: all can access PC1, But PC1 can not access
internet. Ping to main router 200.1.1.1 does not work. I have ip_forward=1,
but I think I need to activate something more to do this, is that right?
What other porcs should I review the settings?

Or another thing I tried is creating a second rule
ip rule from 200.1.1.4 table 14
ip route add default via 200.1.1.1 dev eth0 table 14
But did not work. !!!

All review all archive in the mailling list tried with some examples I found
using "global" and "nexthop" options but with no luck.

Well I now out of ideas ... and looking for some advise.

Thanks Krepper Guillermo.









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