openwrt ipsec client for Kerio Control Server

На Kerio Control Server открываем порты 500, 4500, 1701

Создаём новый интерфейс (например, с именем “ipsec”) с типом L2TP и здесь же на вкладке Firewall отмечаем его в зону “WAN”. В свойствах интерфейса luci указываем
PAP/CHAP username – это будет %CLIENT_USERNAME_LOGIN_ON_KERIO_SERVER%
и PAP/CHAP password – %CLIENT_PASSWORD_ON_KERIO_SERVER%
(подставьте свои значения, естественно)
/etc/ipsec.conf

/etc/ipsec.secrets

/etc/xl2tpd/xl2tpd.conf

/etc/ppp/options.l2tpd.client

chmod 600 /etc/ipsec.secrets
chmod 600 /etc/ppp/options.l2tpd.client
/etc/init.d/ipsec restart
/etc/init.d/xl2tpd restart

Для ipsec-туннеля до Kerio Control

(kerio id – control, client id – rasa):


opkg install strongswan-mod-openssl
/etc/strongswan.d/charon/gmp.conf – load=no
/etc/ipsec.secrets остаётся как выше, с ключом PSK
/etc/ipsec.conf:

/etc/strongswan.conf

В /etc/config/firewall добавляем

В /etc/firewall.user добавляем

и включаем автозагрузку: /etc/init.d/ipsec enable

Җавап калдыру



All fields are required. Your email address will not be published.

Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert