Answer the question
In order to leave comments, you need to log in
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
Because this design if name == ('Kirill') or ('Maks'):
doesn't work the way you think. It checks if the variable name
is equal to the string "Kirill" or the string "Maks" is true. Since a non-empty string is always true, the branch else
will never be executed. Apparently you need a condition like this if name == 'Kirill' or name == 'Maks':
or like thisif name in ('Kirill', 'Maks'):
name = input('Введите ваше имя: ').strip().lower()
if name in ('kirill', 'maks'):
print(f'Привет {name.capitalize()}')
print('Готов ввести свой пароль?')
else:
print('Не нашел вас')
It was just necessary to write everything outside the common bracket ;)
if name == ('Kirill' or 'Maks'):
Any order: at least EoIP inside IPSec, at least IPSec inside EoIP. There is no performance difference. It will run equally slow .
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.
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 questionAsk a Question
731 491 924 answers to any question