C
C
Cyril2020-01-31 08:07:23
Python
Cyril, 2020-01-31 08:07:23

Should I do EoIP over IPSec or use a simple EoIP tunnel with a key?

If you combine two Mikrotiks through a tunnel, then which solution will be the most effective - just an EoIP tunnel with an encryption key and default IPSec settings, or create an IPSec and an EoIP tunnel inside it?

What will work faster? EoIP over IPSec will naturally be more reliable, but how will it affect the speed?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
S
Sergey Gornostaev, 2019-05-08
@Gerlits777

Because this design if name == ('Kirill') or ('Maks'):doesn't work the way you think. It checks if the variable nameis equal to the string "Kirill" or the string "Maks" is true. Since a non-empty string is always true, the branch elsewill never be executed. Apparently you need a condition like this if name == 'Kirill' or name == 'Maks':or like thisif name in ('Kirill', 'Maks'):

I
Ivan Yakushenko, 2019-05-08
@kshnkvn

if name is 'Kirill' or name is 'Maks':

N
Nick V, 2019-05-08
@half-life

name = input('Введите ваше имя: ').strip().lower()
if name in ('kirill', 'maks'):
    print(f'Привет {name.capitalize()}')
    print('Готов ввести свой пароль?')
else:
    print('Не нашел вас')

A
Andrey Dugin, 2019-12-11
@adugin

if name.upper() in {'KIRILL', 'MAKS'}:
    ...

G
Gayratbek Sultanov, 2019-05-09
@gayratbeek

It was just necessary to write everything outside the common bracket ;)
if name == ('Kirill' or 'Maks'):

D
Dmitry Tallmange, 2020-01-31
@p00h

Any order: at least EoIP inside IPSec, at least IPSec inside EoIP. There is no performance difference. It will run equally slow .

D
Dmitry Shitskov, 2020-01-31
@Zarom

You must have a good reason to use EoIP - its overhead is quite high.
In most cases, the good old, time-tested ipip (or gre if ipip doesn't cover all needs) over IPSEC will be the best choice.

A
Alexander Karabanov, 2020-02-01
@karabanov

Stretching L2 over multiple places is a bad idea in and of itself. Use either naked IPsec or IP tunnel over IPsec.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question