LARTC
[Top] [All Lists]

Re: [LARTC] Re: Routing Question

To: <lartc@mailman.ds9a.nl>
Subject: Re: [LARTC] Re: Routing Question
From: "Fernando Blankleder" <fernandoblankleder@gmail.com>
Date: Mon, 9 Apr 2007 13:25:25 -0300
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=EwNNP6EwG46vrndpKr/AhOmnzx25dgH/P8EoCyXZbhPfrNjsO1f1D2JlNEMSYZp2wSEjhklnBfY+OJBSIkrphvaAOedf83yx1w0/7/W3pBiMUBAQp9J4J7EhAQrvzwz1g9Vk62G/wTb4WLAGTmhRwUyIk5Ncl4sdlVCYJKREKto=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=QaJ4iivBsWYssR8bnAc3ZtvJoD+xRPhuAv+412hVf5NsFNTn+y+hkdCEQf8y8YnuDlkPyIg8XFVCa07datTIArf5Ca733eTkQYwGKkz8imIl+AUawZ3uEKJZirMNMT9FFwxPr8cIXHTCEzYxjeDai4YpICTMfzHMQaRFmwQYe18=
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <1175898590.8051.10.camel@benve-laptop>
Sender: lartc-bounces@mailman.ds9a.nl
Hi, my setup is :


192.168.80.0/24 ---- > ( eth1:192.168.80.254 ) Linux ipsec Router (ppp0/ipsec0) ----> [ internet ] <-----Sonicwall (192.168.1.1) <----- 192.168.1.0/24


When a pc in 192.168.80.0/24 pings anything on 192.168.1.0/24 it works
When Linux Ipsec Router pings anything on 192.168.1.0/24 it doesnt works, ping packet goes trough default route because packet originates on eth1

some time ago i made a script using a 2nd route table but i cant find it or remember





----- Original Message ----- From: "Christian Benvenuti" <christian.benvenuti@libero.it>
To: <lartc@mailman.ds9a.nl>
Sent: Friday, April 06, 2007 7:29 PM
Subject: [LARTC] Re: Routing Question


Hi Fernando,

Hi, Somebody can help me , i have a linux gateway running ipsec, so if
i ping a host on a remote ipsec network from gateway packet goes out
with external ip address of gateway , is there a way that packets going
from gateway to a remote network be sourced from internal gateway ip ?

Thanks in advance
Fernando

I do not know what your setup and exact needs are, but have you
tried the "src" option of the "ip route" command?

Example:

ip route add dev eth1 192.168.1.0/24 src 10.0.1.1
                                    ^^^^^^^^^^^^

The routing code uses the primary IP address of the outgoing
interface, unless you explicitly configure the preferred
source address (as in the example above).

Regards
/Christian
[http://benve.info]


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>