Yes, you just need to setup subinterfaces and NAT (or port forwarding). For example (where eth1 is the router's WAN interface)-

ifconfig eth1:1 x.x.x.11 netmask 255.255.255.0
ifconfig eth1:2 x.x.x.12 netmask 255.255.255.0
ifconfig eth1:3 x.x.x.13 netmask 255.255.255.0
ifconfig eth1:4 x.x.x.14 netmask 255.255.255.0

iptables -t nat -A prerouting_wan -d x.x.x.11 -j DNAT --to 192.168.1.11
iptables        -A forwarding_wan -d 192.168.1.11 -j ACCEPT
iptables -t nat -A prerouting_wan -d x.x.x.12 -j DNAT --to 192.168.1.12
iptables        -A forwarding_wan -d 192.168.1.12 -j ACCEPT

multiplewanip (last edited 2008-05-18 00:58:46 by localhost)