Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Georgi Alexandrov <georgi.alexandrov@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: Masquerading problem - question
Date: Sun, 08 Jan 2006 13:24:22 +0200	[thread overview]
Message-ID: <43C0F666.20902@gmail.com> (raw)
In-Reply-To: <dac71d7b0601072221j8a15c80g@mail.gmail.com>

Christos Panagiotakis wrote:

>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
>
>
>  
>
iptables -t nat -A POSTROUTING -s 10.166.0.3 -o eth0 -j SNAT --to 
$the_ip_address_wanted

That's if I understood you correct.


regards,
Georgi Alexandrov


      reply	other threads:[~2006-01-08 11:24 UTC|newest]

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

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=43C0F666.20902@gmail.com \
    --to=georgi.alexandrov@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