All of lore.kernel.org
 help / color / mirror / Atom feed
From: 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: Mon, 14 Apr 2008 17:44:35 +0200	[thread overview]
Message-ID: <20080414154435.40330@gmx.net> (raw)
In-Reply-To: <alpine.LNX.1.10.0804140921290.9651@fbirervta.pbzchgretzou.qr>

> >>>Hi developers,
> >>>
> >>>I encountered difficulties during integrating a new target in mangle
> >>>table (iptables-1.4.0 (from www.netfilter.org), kernel-2.6.23 (from
> >>>www.kernel.org)). 
> >>>I have a master from iptables-1.2.9 and kernel-2.6.3. But there were
> too
> >>>many differences and changes be made.
> >>>The idea behind to add the target is, that a user who has a fix-ip
> entry
> >>>in his network settings can be handled from a gateway, for which the
> new
> >>>targets should be implemented. for example:
> >>>
> >>># iptables -t mangle -I PREROUTING -i eth2 -s 192.168.0.168 -j SADDR
> >>>--to-source 10.0.19.2
> >>
> >>This looks pretty much like RAWNAT, as posted in 
> >>http://marc.info/?l=netfilter-devel&m=120024054521550&w=2 .
> >>
> >Excuse me, but I didn?t get the solution for the RAWNAT issue.
> >Maybe it refers to that I'm not so familiar with the netfilter stuff.
> >
> >Is it possible to realize my issue, or do I have problems with the
> >conntrack?
> 
> Could you describe the target a bit closer? I did not quite get what you 
> mean by "user who has a fixed IP address can be handled(?) from [by?] a 
> gateway". Because your code (SADDR) does seem to only change the source 
> address, I guessed it is equivalent to RAWSNAT.
> 
> 
> 
> >Where can I find the source code for the RAWNAT target.
> 
> It is in a git repository at 
> http://dev.computergmbh.de/gitweb.cgi?p=xtables-addons (there is also 
> the git:// URL for cloning), and http://tinyurl.com/4qoylk would give 
> you a snapshot in tar format.


yes, i think it is equivalent to RAWSNAT and RAWDNAT. I'll try to solve the problem with the RAWNAT target. Thank you very much.

"user who has a fixed IP address can be handled(?) from [by?] a gateway"
Sorry for the imprecise information. The issue is that I have a gateway (normal pc with 2 NICs, LAN1=WAN, LAN2=internal NET) where users can get an access to the internet. The gateway has a self made user management implemented. All the users in the internal net are handled with IPs 
gateway:10.0.2.1<->user-dhcp-lease:10.0.2.2, gateway:10.0.3.1<->user-dhcp-lease:10.0.3.2,...  and so on. 
If a user has an fix-ip entry in his notebook, actually it's not possible to communicate with. For this issue I need a feature which i call ip-plug'n'play. Somewhere in the raw or mangle table I would like to change the source/destination address for the internal user management of the gateway. hope, it's a bit clearer now.
-- 
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-14 15:44 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 [this message]
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
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=20080414154435.40330@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.