I
I
IpedikI2019-08-19 10:56:56
linux
IpedikI, 2019-08-19 10:56:56

Replacement in iptables?

It is necessary to replace "AAA(random number)AAA" with "AAAA(desired number)AAA" in iptables, is it possible to implement? And if so, how? as a string, as I know, you can only drop it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
krosh, 2019-08-19
@krosh

iptables-save > tmp.save
sed -i 's/AAA(рандомное число)AAA/AAAA(нужное число)AAA/g' tmp.save
iptables-restore < tmp.save

Y
y0u, 2018-01-20
@PHPjedi

https://jsfiddle.net/y0u/50833bmm/
Bootstrap 4 has a class dropdown-menu-rightthat needs to be added to the dropdown-menu.
In your case this is not enough. You now have the following menu structure:

<nav class="navbar">
    ...
    <div class="navbar-collapse">
        <ul class="navbar ml-auto">
            <li>...</li>
        </ul>
        <div class="user-actions">
            <div class="dropdown">
                ...
            </div>
        </div>
    </div>
</nav>

And it should be:
<nav class="navbar">
    ...
    <div class="navbar-collapse">
        <ul class="navbar mr-auto">
            <li>...</li>
        </ul>
        <ul class="navbar mr-auto user-actions">
            <li class="dropdown">
                ...
            </li>
        </ul>
    </div>
</nav>

You don't have to use the UL listing, but you do need to use the .navbar-nav.
.navbar-nav for a full-height and lightweight navigation (including support for dropdowns).
— https://getbootstrap.com/docs/4.0/components/navba...

D
Danil Razumkov, 2018-01-20
@razumkov2015

You can see the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question