Re: Are IP ALIASES supported by iptables?

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

 



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



[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