Public bug reported: Now we just support floating ip for DNET and SNET. But we don't support port mapping . I think we can add a extension param "port" to the floating ip add allowed the same floating ip with different port associate to different local ip.
For example: We have two vm192.168.1.10/192.168.1.11, one for Web server, another for Ftp server. We need to use the same external ip address a.b.c.d to connect this two server with different port. Then we could use: iptables -t nat -A PREROUTING -d a.b.c.d -p tcp --dport 80 -j DNAT --to 192.168.1.10 iptables -t nat -A POSTROUTING -d 192.168.1.10 -p tcp --dport 80 -j SNAT --to 192.168.1.1 iptables -t nat -A PREROUTING -d a.b.c.d -p tcp --dport 21 -j DNAT --to 192.168.1.11 iptables -t nat -A POSTROUTING -d 192.168.1.11 -p tcp --dport 21 -i eth0 -j SNAT --to 192.168.1.1 ** Affects: neutron Importance: Undecided Assignee: Yan Songming (songmingyan) Status: New ** Changed in: neutron Assignee: (unassigned) => Yan Songming (songmingyan) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1684371 Title: port mapping for floating ip Status in neutron: New Bug description: Now we just support floating ip for DNET and SNET. But we don't support port mapping . I think we can add a extension param "port" to the floating ip add allowed the same floating ip with different port associate to different local ip. For example: We have two vm192.168.1.10/192.168.1.11, one for Web server, another for Ftp server. We need to use the same external ip address a.b.c.d to connect this two server with different port. Then we could use: iptables -t nat -A PREROUTING -d a.b.c.d -p tcp --dport 80 -j DNAT --to 192.168.1.10 iptables -t nat -A POSTROUTING -d 192.168.1.10 -p tcp --dport 80 -j SNAT --to 192.168.1.1 iptables -t nat -A PREROUTING -d a.b.c.d -p tcp --dport 21 -j DNAT --to 192.168.1.11 iptables -t nat -A POSTROUTING -d 192.168.1.11 -p tcp --dport 21 -i eth0 -j SNAT --to 192.168.1.1 To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1684371/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp