All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrea Rossato <mailing_list@istitutocolli.org>
To: netfilter@lists.netfilter.org
Subject: Re: Modifying Source Ip on input/prerouting
Date: Wed, 11 Dec 2002 16:02:07 +0100	[thread overview]
Message-ID: <3DF7536F.9050002@istitutocolli.org> (raw)
In-Reply-To: <20021211135812.GA8394@nath.rubis.org>

Stephane Jourdois wrote:
> I would need to be able to modify the source ip on input GRE paquets.
> This is because I'm trying to setup a pptp tunnel, via a router that
> doesn't NAT correctly the GRE.
> The client receives GRE, but replies with it's own local ip, then my
> server cannot receive the answers... If I could just change the source
> ip on those paquets, that would be perfect...

i don't know if I've got your problem correctly, also because I don't 
know pptp too much (so, shut up, you'll say...;)

if you want to match gre packets and change their source address (not 
the source addr. of encapsulated packets) you should be able with
iptables -A POSTROUTING -t nat -p gre -j SNAT --to-source 
new-grepacket-source-addr
this will match all outgoing (from the client) traffic using gre protocol.

but is this what you need?
where are the tunnel end points? the router has two tunnels connecting 
the server and the client? the tunnel is between the router and the server?

Instead, if you want to change source address of encasplulated packets, 
that would be interesting...




  reply	other threads:[~2002-12-11 15:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 13:58 Modifying Source Ip on input/prerouting Stephane Jourdois
2002-12-11 15:02 ` Andrea Rossato [this message]
2002-12-11 15:38   ` Stephane Jourdois
2002-12-11 16:34     ` Andrea Rossato

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=3DF7536F.9050002@istitutocolli.org \
    --to=mailing_list@istitutocolli.org \
    --cc=netfilter@lists.netfilter.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.