Ask Your Question
0

How to add additional mangle rules into qrouter ?

asked 2016-10-20 10:35:35 -0500

gunph1ld gravatar image

Hello Folks!

I want to add additional mark rules into my qrouter, like this:

ip netns exec qrouter-4*53-8e37-039e8bab301f iptables -t mangle bla-bla-bla

But my rules are disappearing every time. Where does l3-agent save iptable rules?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-10-21 03:41:16 -0500

gunph1ld gravatar image

Bernd Bausch is right, the rules are coming from /usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py

edit flag offensive delete link more
0

answered 2016-10-20 11:06:37 -0500

In the Neutron database. You could use mysqldump to figure it out, assuming it's a MySQL DB.

edit flag offensive delete link more

Comments

nothing

# grep -Ei 'mangle|mark' neutron.sql 
  `qos_marking` enum('untrusted','trusted') DEFAULT NULL,
gunph1ld gravatar imagegunph1ld ( 2016-10-20 11:25:24 -0500 )edit

well, perhaps it doesn't save the rules verbatim, but derives them from its configuration. If it is so, you will need to set up your own mechanism to add your rules when the server restarts.

Bernd Bausch gravatar imageBernd Bausch ( 2016-10-20 17:20:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2016-10-20 10:35:35 -0500

Seen: 59 times

Last updated: Oct 21 '16