| To: | lartc@mailman.ds9a.nl |
|---|---|
| Subject: | [LARTC] Re: Routing Question |
| From: | Christian Benvenuti <christian.benvenuti@libero.it> |
| Date: | Sat, 07 Apr 2007 00:29:50 +0200 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | lartc-list@securepoint.com |
| Delivered-to: | lartc@outpost.ds9a.nl |
| 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 & 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> |
| Sender: | lartc-bounces@mailman.ds9a.nl |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Fw: [LARTC] Routing Question, Fernando Blankleder |
|---|---|
| Next by Date: | Re: [LARTC] Re: Routing Question, Fernando Blankleder |
| Previous by Thread: | [LARTC] Re: tc / MARK question, Christian Benvenuti |
| Next by Thread: | Re: [LARTC] Re: Routing Question, Fernando Blankleder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |