Skip to content

Commit

Permalink
Acccept metadata ip so packets aren't snatted
Browse files Browse the repository at this point in the history
 * fixes bug 968453

Change-Id: I12a7967bb711fe5fd9a7ebc2473209833d33f546
  • Loading branch information
pubyun authored and vishvananda committed Mar 30, 2012
1 parent ada63db commit 6ecb3c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nova/network/linux_net.py
Expand Up @@ -441,6 +441,10 @@ def init_host(ip_range=None):

add_snat_rule(ip_range)

iptables_manager.ipv4['nat'].add_rule('POSTROUTING',
'-s %s -d %s/32 -j ACCEPT' %
(ip_range, FLAGS.metadata_host))

iptables_manager.ipv4['nat'].add_rule('POSTROUTING',
'-s %s -d %s -j ACCEPT' %
(ip_range, FLAGS.dmz_cidr))
Expand Down

0 comments on commit 6ecb3c2

Please sign in to comment.