Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Christos Panagiotakis <chrismfz@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Masquerading problem - question
Date: Sun, 8 Jan 2006 08:21:52 +0200	[thread overview]
Message-ID: <dac71d7b0601072221j8a15c80g@mail.gmail.com> (raw)

Hello people. This is my first post, please be nice with me :-)

I have a little network with 3 computers. 2 workstations, 1 server.
the network is 10.166.0.0
server 10.166.0.1
1 workstation 10.166.0.2 and a new one the third 10.166.0.3
server has 2 interfaces. the one is connected with another network
( 10.165.0.0) wirelessly. from the "main" server they assigned me with
2 internet static ips (for 10.166.0.1 and 10.166.0.2). But when I took
the third one (10.166.0.3) I wanted to connect it with internet.
I did echo 1 > /proc/sys/net/ipv4/ip_dynaddr
and the problematic one:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
thats good! it worked! But the problem is that both 10.166.0.2
and 10.166.0.3 having internet with the server's ip address...
I just want 10.166.0.3 to share the same static ip address.
I dont know what exactly to do to make only 10.166.0.3 to "share"/masq
the same ip with the server. And now I have both 10.166.0.2 and 10.166.0.3
with the same ip, yeap its working but I need the second static ip to 10.166.0.2
and I dont know what to do...

Christos Panagiotakis

ps: forgive me for my awful english I hope to understand me


             reply	other threads:[~2006-01-08  6:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-08  6:21 Christos Panagiotakis [this message]
2006-01-08 11:24 ` Masquerading problem - question Georgi Alexandrov

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=dac71d7b0601072221j8a15c80g@mail.gmail.com \
    --to=chrismfz@gmail.com \
    --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