Iptables-extention #3512
-
Hi, My team is running rtpengine, which relies on both a kernel-module and an iptables-extention. I'm wondering if there is any option for adding iptables-extentions through bootstrap-containers, so we can avoid building custom ami? https://github.com/sipwise/rtpengine/tree/master/iptables-extension Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @Dakuon, thanks for asking. This does look a little tricky, but it depends on how You can use a custom directory that contains iptables extensions by setting the If this is something that needs to run based on other activity, you could maybe have this environment variable set with in the container that runs If that doesn't work, then you are probably right that it could require building a custom ami. |
Beta Was this translation helpful? Give feedback.
Hi @Dakuon, thanks for asking. This does look a little tricky, but it depends on how
iptables
is used. I'm not familiar with rtpengine, but hopefully some of this makes sense and you can tell if any of it will work or not.You can use a custom directory that contains iptables extensions by setting the
XTABLES_LIBDIR
environment variable. The trick here is that environment variable - and the directory it points to - needs to be present any timeiptables
is invoked. So if you need to do a one time policy setup or something like that, it could be possible to do this in a bootstrap container to set up the environment. Then whatever runs later already has the policies it needs.If this is some…