neutron/neutron/tests
Cedric Brandily 1d776bc16c Allow to request metadata proxy only with redirection
metadata service should be requested on 169.254.169.254:80 and router
namespace iptables rules redirect the request to the metadata-ns-proxy
on 127.0.0.1:$metadata_port. But currently the metadata-ns-proxy can be
requested directly on $router-ip:$metadata_port.

To avoid such behavior, this change marks packets redirection in mangle
table (PREROUTING), redirects (PREROUTING) them in nat table, accepts
them in filter table (INPUT) using the mark. Packets send to the
metadata proxy port without mark (so directly) are dropped. The
mark can be configured through the new option metadata_access_mark.

Remark: redirected packets are not local packets (in general), so
setting metadata proxy server host to 127.0.0.1 will disallow direct
queries but so redirected queries.

DocImpact
Partial-Bug: #1187102
Change-Id: I6a9bb12c8bf68c6fcf4e4060f8dfe44a309a41da
2015-01-30 09:34:49 +00:00
..
api Switch to using abc in the retargetable client 2015-01-20 02:23:48 +00:00
common Update L3 agent drivers singletons to look at new agent 2014-12-21 16:35:20 +02:00
contrib Merge "Add functional tests for IptablesManager using tcp/udp" 2015-01-26 22:38:58 +00:00
etc drop unused test rootwrap filter file 2015-01-20 18:09:39 +01:00
functional Merge "dhcp: move dnsmasq version check to sanity_check" 2015-01-27 17:25:07 +00:00
unit Allow to request metadata proxy only with redirection 2015-01-30 09:34:49 +00:00
var Allow combined certificate/key files for SSL 2014-04-13 09:22:23 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py Migrate to oslo.concurrency 2015-01-15 21:01:06 +01:00
fake_notifier.py Pass serializer to oslo.messaging Notifier 2014-06-20 14:58:28 +02:00
post_mortem_debug.py Cleanup recent generalization in post mortem debugger 2014-12-04 15:28:11 +01:00
sub_base.py Add support for retargetable functional api testing 2015-01-06 02:37:59 +00:00
tools.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00