LINUX.ORG.RU

История изменений

Исправление DiMoN, (текущая версия) :

У меня, например, при указании в конфиге proto tcp - работает как клиент.
Укажите явно proto tcp-server и proto tcp-client соответственно на сервере и клиенте.

Из man openvpn:

For  TCP operation, one peer must use --proto tcp-server and the
other must use --proto tcp-client.  A  peer  started  with  tcp-
server  will  wait  indefinitely  for an incoming connection.  A
peer started with tcp-client will attempt  to  connect,  and  if
that  fails, will sleep for 5 seconds (adjustable via the --con‐
nect-retry option) and try again infinite or  up  to  N  retries
(adjustable  via  the  --connect-retry-max  option).   Both  TCP
client and server will simulate  a  SIGUSR1  restart  signal  if
either side resets the connection.

Исправление DiMoN, :

У меня, например, при указании в конфиге proto tcp - работает как клиент.
Укажите явно proto tcp-server и proto tcp-client соответственно на сервере и клиенте.

Из man openvpn:

For TCP operation, one peer must use --proto tcp-server and the other must use --proto  tcp-client.   A
peer  started  with  tcp-server will wait indefinitely for an incoming connection.  A peer started with
tcp-client will attempt to connect, and if that fails, will sleep for 5  seconds  (adjustable  via  the
--connect-retry  option) and try again infinite or up to N retries (adjustable via the --connect-retry-
max option).  Both TCP client and server will simulate a SIGUSR1 restart signal if either  side  resets
the connection.

Исходная версия DiMoN, :

У меня, например, при указании в конфиге proto tcp - работает как клиент.

Из man openvpn:

For TCP operation, one peer must use --proto tcp-server and the other must use --proto  tcp-client.   A
peer  started  with  tcp-server will wait indefinitely for an incoming connection.  A peer started with
tcp-client will attempt to connect, and if that fails, will sleep for 5  seconds  (adjustable  via  the
--connect-retry  option) and try again infinite or up to N retries (adjustable via the --connect-retry-
max option).  Both TCP client and server will simulate a SIGUSR1 restart signal if either  side  resets
the connection.