Skip to contentSkip to conversation

iptables and device aliases

DISCUSSION Dave Warchol 1 participant 1 message Aug 18, 2004

lore
Share & tools
lore
#0 lore raw

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.

Thanks very much,
Dave