All of lore.kernel.org
 help / color / mirror / Atom feed
From: "manuel scheub" <manuprivat@gmx.de>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: AW: Add new target in mangle table
Date: Tue, 15 Apr 2008 11:20:52 +0200	[thread overview]
Message-ID: <20080415092052.107670@gmx.net> (raw)
In-Reply-To: <alpine.LNX.1.10.0804151046120.9651@fbirervta.pbzchgretzou.qr>


-------- Original-Nachricht --------
> Datum: Tue, 15 Apr 2008 10:46:35 +0200 (CEST)
> Von: Jan Engelhardt <jengelh@computergmbh.de>
> An: manuprivat@gmx.de
> CC: netfilter-devel@vger.kernel.org
> Betreff: Re: AW: Add new target in mangle table

> 
> On Tuesday 2008-04-15 10:35, manuprivat@gmx.de wrote:
> >> >> >># iptables -t mangle -I PREROUTING -i eth2 -s 192.168.0.168 -j
> SADDR
> >> >> >>--to-source 10.0.19.2
> >> >> >
> >> >> One question this throws up... how do you know the address is
> >> >> 192.168.0.168?
> >> >
> >> >Actually, I dont know that! It is only an example to show the
> different
> >> >IP-ranges. Excuse my improper representation.
> >> 
> >> The question is more of a technical one-- if you do not know the
> >> source address the client will be using, how can you reliably
> >> mangle the address?
> >
> >I modified the udhcpd from the busybox  - have a look in the attached
> >file.
> >To handle the different cases i wrote a shell script - also attached.
> 
> But if the client uses DHCP, why don't you hand out 10.0.x.x directly?

If the client uses DHCP, i do hand out 10.0.x.x directly! The modified dhcpd listens on all requests, it doesn't matter if it is not a dhcp-request. And for the internal use of the gateway it provides a dhcp-lease, even if the request came from a user with a fix-ip entry.


-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.gmx.net/de/entertainment/games/free

  reply	other threads:[~2008-04-15  9:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080414071710.C0E061802C4D8@sovereign.computergmbh.de>
2008-04-14 10:20 ` AW: Add new target in mangle table Jan Engelhardt
2008-04-14 15:44   ` manuprivat
2008-04-14 16:27 ` Jan Engelhardt
2008-04-14 16:34   ` manuprivat
2008-04-14 16:58     ` Jan Engelhardt
2008-04-15  8:06       ` Manu
2008-04-15  8:10       ` Manu
2008-04-15  8:35       ` manuprivat
2008-04-15  8:46         ` Jan Engelhardt
2008-04-15  9:20           ` manuel scheub [this message]
2008-04-15  9:52             ` Jan Engelhardt
2008-04-15 12:47               ` manuel scheub

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=20080415092052.107670@gmx.net \
    --to=manuprivat@gmx.de \
    --cc=jengelh@computergmbh.de \
    --cc=netfilter-devel@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.