RE: iptables and device aliases

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

 



> Hello:
>          I am new to the list.  I am currently using iptables to
> redirect traffic on eth0 for ports 80 and 443,  to ports 8080 and 8443,
> respectively.  I have request to set up another DNS name for this server
> and to redirect entries coming to port 443 for this new DNS name to port
> 8444.  I think that one way of doing this would be to define a device
> alias, say eth0:1, assign it a new IP address and associate the new DNS
> name with that new IP.  I could then use iptables to redirect traffic on
> eth0:1, port 443 to port 8444.  I was just wondering if iptables
> recognizes/supports device aliases or if there is a better way of
> accomplishing the same thing.

iptables does not recognise the "eth0:1" syntax.  use ip aliases:

	ip address add x.x.x.x dev eth0

and then filter on "-i eth0" and ip address "x.x.x.x"

-j



[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