iptables and device aliases - Updated

[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.  Another option would be to use the second
physical interface (eth1) on the box, if device aliases is not
supported.

  I forgot to include the current rules, they follow:

# Generated by iptables-save v1.2.8 on Mon Apr 12 14:40:56 2004
*nat
:PREROUTING ACCEPT [2:436]
:POSTROUTING ACCEPT [2:138]
:OUTPUT ACCEPT [2:138]
-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination
10.16.6.24:8080
-A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j DNAT
--to-destination 10.16.6.24:8443
COMMIT
# Completed on Mon Apr 12 14:40:56 2004

Thanks very much,
Dave


[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