Re: Are IP ALIASES supported by iptables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/)


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux