Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Pedro Drimel Neto" <pedrodrimel@uol.com.br>
To: netfilter@lists.netfilter.org
Subject: NTH
Date: Thu, 30 Mar 2006 14:34:29 -0300	[thread overview]
Message-ID: <000501c65420$333e10b0$2f00a8c0@TRINTASETE> (raw)

Hi all,

I'm using the nth module for each connection it change of IP.
The scenario is:
--------------              -------------
| Server with | ------ > |    Server    |
|      NTH     |               |   Master    |
--------------              -------------
So, the users connect to "Server with NTH" and the .bashrc of the user has a 
ssh to "Server Master".
On "Server with NTH" has an interface, eth0, with 2 logics, eth0:0 and 
eth0:1
eth0: 10.0.0.2
eth0:0 10.0.0.3
eth0:1: 10.0.0.4
Above are the rules on "Server with NTH"
iptables -t nat -A POSTROUTING -o eth0 -d "Server Master" -m nth --counter 
7 --every 3 --packet 0 -j SNAT --to-source 10.0.0.2
iptables -t nat -A POSTROUTING -o eth0 -d "Server Master" -m nth --counter 
7 --every 3 --packet 1 -j SNAT --to-source 10.0.0.3
iptables -t nat -A POSTROUTING -o eth0 -d "Server Master" -m nth --counter 
7 --every 3 --packet 2 -j SNAT --to-source 10.0.0.4

So, at each connection to "Server Master" the IP is changed.
As NTH support only packet 0, 1 and 2 and I need to more IPs to be changed, 
if I add more a interface does it work ?
Thanks a lot.

Regards. 



             reply	other threads:[~2006-03-30 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-30 17:34 Pedro Drimel Neto [this message]
2006-03-31 10:58 ` NTH Stephan Scholz

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='000501c65420$333e10b0$2f00a8c0@TRINTASETE' \
    --to=pedrodrimel@uol.com.br \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox