From: Aleksandar Milivojevic <amilivojevic@pbl.ca>
To: John Black <black@arbbs.net>
Cc: netfilter@lists.netfilter.org
Subject: Re: ip alias
Date: Tue, 28 Sep 2004 00:57:23 -0500 [thread overview]
Message-ID: <1096351043.4158fd43638a8@webmail2> (raw)
In-Reply-To: <002a01c4a509$74f94b40$936ffea9@alpha>
Quoting John Black <black@arbbs.net>
Date: Mon, 27 Sep 2004 22:15:50
> I'm tryint to setup ip alias with iptables on fedora core 2.
>
> Is this right? For some reason it will not let me out?
>
> ifconfig eth0:0 192.168.1.23 netmask 255.255.255.0
> iptables -t nat -A PREROUTING -d 192.168.1.23 -i eth0 \
> -j DNAT --to-destination 161.31.31.23
Not quite sure what are you trying to do with above. You don't need iptables to
set up an alias. The ifconfig or ip commands will suffice.
What do you want to achieve with iptables command? What it will do is that all
packets addressed for 192.168.1.23 that arrive into box (not generated on the
box) on interface eth0 will be sent to 161.31.31.23 (with that IP address as
destination). Is that what you wanted to do?
--
Aleksandar Milivojevic <amilivojevic@pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
next prev parent reply other threads:[~2004-09-28 5:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-28 3:15 ip alias John Black
[not found] ` <Pine.NEB.4.60.0409280439060.15502@sdf.lonestar.org>
2004-09-28 4:44 ` John Black
2004-09-28 14:27 ` Jose Maria Lopez
2004-09-28 5:57 ` Aleksandar Milivojevic [this message]
2004-09-28 11:58 ` John Black
2004-09-28 13:56 ` Aleksandar Milivojevic
[not found] <41596898.178.36a5.6993354@arbbs.net>
2004-09-28 15:17 ` Aleksandar Milivojevic
[not found] <20040928051024.692C0BE3@sterenborg.info>
2004-09-28 12:04 ` John Black
2004-09-28 13:51 ` Jason Opperisano
2004-09-28 14:27 ` Jose Maria Lopez
-- strict thread matches above, loose matches on Subject: below --
2000-12-28 0:33 IP_ALIAS ruschein
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=1096351043.4158fd43638a8@webmail2 \
--to=amilivojevic@pbl.ca \
--cc=black@arbbs.net \
--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 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.