All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Suresh" <super772002@yahoo.com>
To: lartc@vger.kernel.org
Subject: [LARTC] policy-based routing-help
Date: Fri, 29 Mar 2002 13:35:51 +0000	[thread overview]
Message-ID: <marc-lartc-101740809913873@msgid-missing> (raw)

Hello All,

I have a linux box with advanced routing enabled.

I have two NIC one connected to LAN and another connected to two different
ISPs router.
Even in LAN interface i have two ip address that get packet from two
different network.

LAN1 has ip address in 172.16.1.0/32 and LAN2 has ipaddress in 172.16.5.0/32
so i asigned 172.16.1.1 and aliase as 172.16.5.1 in linux box LAN interface
and in internet interface 10.3.3.5 and aliase as 192.1.157.34.

I want LAN1 users go through 10.3.3.5 and LAN2 user go through 192.1.157.34

I set default gw as 10.3.3.6 in eth1.

and policy route as
echo 200 suresh >> /etc/iproute2/rt_tables
ip rule add from 172.16.1.0/32 table suresh
ip rule ls
0:      from all lookup local
32765:  from 172.16.1.0/32 lookup suresh
32766:  from all lookup main
32767:  from all lookup default

ip route add default via 192.1.157.35 dev eth1 table suresh
ip route flush cache

My problem i can communicate from LAN2 but i can not communicate from LAN1
where i set policy routing.

Do i need some more configuration in Advanced routing and
Should i need to use iptables for masquerading

Thanks
Suresh



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

             reply	other threads:[~2002-03-29 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-29 13:35 Suresh [this message]
2002-03-29 13:35 ` [LARTC] policy-based routing-help Suresh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-101740809913873@msgid-missing \
    --to=super772002@yahoo.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.