All of lore.kernel.org
 help / color / mirror / Atom feed
* Are IP ALIASES supported by iptables?
@ 2003-07-29  5:06 HTB
  2003-07-29  5:18 ` Louie Miranda
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: HTB @ 2003-07-29  5:06 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

When i want to active nat using iptable on eth0:0 (aliasing) "error appear"
# /sbin/iptables -A POSTROUTING -j MASQUERADE -t nat -s 192.168.0.0/24 -o eth0:0
Warning: wierd character in interface `eth0:0' (No aliases, :, ! or *).

Are IP ALIASES supported by iptables?



regards

HTB


[-- Attachment #2: Type: text/html, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Are IP ALIASES supported by iptables?
  2003-07-29  5:06 Are IP ALIASES supported by iptables? HTB
@ 2003-07-29  5:18 ` Louie Miranda
  2003-07-29  6:03   ` Louie Miranda
  2003-07-29  5:20 ` Daniel Chemko
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Louie Miranda @ 2003-07-29  5:18 UTC (permalink / raw)
  To: HTB, netfilter

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

Hi, it must be Is your Kernel compiled with IP Aliasing?
Yes, Iptables support ip aliasing.

--
Thank you,
Louie Miranda (louie@axishift.ath.cx)



  ----- Original Message ----- 
  From: HTB 
  To: netfilter@lists.netfilter.org 
  Sent: Tuesday, July 29, 2003 1:06 PM
  Subject: Are IP ALIASES supported by iptables?


  When i want to active nat using iptable on eth0:0 (aliasing) "error appear"
  # /sbin/iptables -A POSTROUTING -j MASQUERADE -t nat -s 192.168.0.0/24 -o eth0:0
  Warning: wierd character in interface `eth0:0' (No aliases, :, ! or *).

  Are IP ALIASES supported by iptables?



  regards

  HTB

[-- Attachment #2: Type: text/html, Size: 1959 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Are IP ALIASES supported by iptables?
  2003-07-29  5:06 Are IP ALIASES supported by iptables? HTB
  2003-07-29  5:18 ` Louie Miranda
@ 2003-07-29  5:20 ` Daniel Chemko
  2003-07-29  6:54 ` Szabo Nandor
  2003-07-29  9:39 ` Sven-Haegar Koch
  3 siblings, 0 replies; 6+ messages in thread
From: Daniel Chemko @ 2003-07-29  5:20 UTC (permalink / raw)
  To: HTB; +Cc: netfilter

nope. IP Aliases are depreciated, baby!

HTB wrote:

> When i want to active nat using iptable on eth0:0 (aliasing) "error 
> appear"
> # /sbin/iptables -A POSTROUTING -j MASQUERADE -t nat -s 192.168.0.0/24 
> -o eth0:0
> Warning: wierd character in interface `eth0:0' (No aliases, :, ! or *).
>  
>
> Are IP ALIASES supported by iptables?
>
>  
>
> regards
>
> HTB
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Are IP ALIASES supported by iptables?
  2003-07-29  5:18 ` Louie Miranda
@ 2003-07-29  6:03   ` Louie Miranda
  0 siblings, 0 replies; 6+ messages in thread
From: Louie Miranda @ 2003-07-29  6:03 UTC (permalink / raw)
  To: HTB, netfilter

Oh, wait i've read it wrong.. sorry..

--
Thank you,
Louie Miranda (louie@axishift.ath.cx)



----- Original Message -----
From: Louie Miranda
To: HTB ; netfilter@lists.netfilter.org
Sent: Tuesday, July 29, 2003 1:18 PM
Subject: Re: Are IP ALIASES supported by iptables?


Hi, it must be Is your Kernel compiled with IP Aliasing?
Yes, Iptables support ip aliasing.

--
Thank you,
Louie Miranda (louie@axishift.ath.cx)



----- Original Message -----
From: HTB
To: netfilter@lists.netfilter.org
Sent: Tuesday, July 29, 2003 1:06 PM
Subject: Are IP ALIASES supported by iptables?


When i want to active nat using iptable on eth0:0 (aliasing) "error appear"
# /sbin/iptables -A POSTROUTING -j MASQUERADE -t nat -s 192.168.0.0/24 -o
eth0:0
Warning: wierd character in interface `eth0:0' (No aliases, :, ! or *).

Are IP ALIASES supported by iptables?

regards
HTB



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Are IP ALIASES supported by iptables?
  2003-07-29  5:06 Are IP ALIASES supported by iptables? HTB
  2003-07-29  5:18 ` Louie Miranda
  2003-07-29  5:20 ` Daniel Chemko
@ 2003-07-29  6:54 ` Szabo Nandor
  2003-07-29  9:39 ` Sven-Haegar Koch
  3 siblings, 0 replies; 6+ messages in thread
From: Szabo Nandor @ 2003-07-29  6:54 UTC (permalink / raw)
  To: netfilter

HTB writes: 

> When i want to active nat using iptable on eth0:0 (aliasing) "error 
> appear"
> # /sbin/iptables -A POSTROUTING -j MASQUERADE -t nat -s 192.168.0.0/24 -o 
> eth0:0
> Warning: wierd character in interface `eth0:0' (No aliases, :, ! or *).

If eth0:0 has FIX IP address, you should try SNAT: 

# iptables -A POSTROUTING -t nat -s 192.168.0.0/24 -j SNAT --to IP_of_eth0:0 

Nandor Szabo 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Are IP ALIASES supported by iptables?
  2003-07-29  5:06 Are IP ALIASES supported by iptables? HTB
                   ` (2 preceding siblings ...)
  2003-07-29  6:54 ` Szabo Nandor
@ 2003-07-29  9:39 ` Sven-Haegar Koch
  3 siblings, 0 replies; 6+ messages in thread
From: Sven-Haegar Koch @ 2003-07-29  9:39 UTC (permalink / raw)
  To: HTB; +Cc: netfilter

On Tue, 29 Jul 2003, HTB wrote:

> When i want to active nat using iptable on eth0:0 (aliasing) "error appear"
> # /sbin/iptables -A POSTROUTING -j MASQUERADE -t nat -s 192.168.0.0/24 -o eth0:0
> Warning: wierd character in interface `eth0:0' (No aliases, :, ! or *).
>
> Are IP ALIASES supported by iptables?

Ip Aliases practically don't exist anymore, they are just one other ip
address on eth0 marked with a compatibility flag for the old ifconfig.
(Use ip/iproute2 and you see what I mean).

So don't use MASQUERADE and eth0:0, but instead use SNAT and the second ip
of eth0 (aka the one on your eth0:0)

c'ya
sven

-- 

The Internet treats censorship as a routing problem, and routes around it.
(John Gilmore on http://www.cygnus.com/~gnu/)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-07-29  9:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-29  5:06 Are IP ALIASES supported by iptables? HTB
2003-07-29  5:18 ` Louie Miranda
2003-07-29  6:03   ` Louie Miranda
2003-07-29  5:20 ` Daniel Chemko
2003-07-29  6:54 ` Szabo Nandor
2003-07-29  9:39 ` Sven-Haegar Koch

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.