Re: ip addr add 1.1.1.1/24 brd + dev eth3 scope link tablemy_table

Linux Advanced Routing and Traffic Control

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

 



Jacob,

Could you use the following instead:

# iptables -t nat -A PREROUTING -i eth3 -d 1.1.1.1/24 -j DNAT \
> --to-destination ip.ad.dr.es

It circumvents the problem you are trying to avoid, I think.

-Martin

 : I want to  do something like this:
 : 
 : ip addr add 1.1.1.1/24 brd + dev eth3 scope link  table my_table
 : 
 : so that
 : 1. Direct route  1.1.1.1/24 should go to table my_table.
 : 2. Address 1.1.1.1 should be recognizes as a local only for packets received on dev eth3.
 : 
 : Any suggestions ?
 : Thanks
 : - Jacob
 : 
 : 
 : 
 : 
 : 
 : _______________________________________________
 : LARTC mailing list / LARTC@mailman.ds9a.nl
 : http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 : 

-- 
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/

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