找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 41|回复: 6

OCserv 遭到阻断?

[复制链接]

18

主题

119

回帖

318

积分

中级会员

积分
318
发表于 2018-7-18 13:44:40 | 显示全部楼层 |阅读模式
近几天才出现的状况,连接后几十秒内会被断开

[ol]
  • ocserv[30087]: worker[me]: *.*.*.* worker-auth.c:708: error connecting to sec-mod socket '/var/run/ocserv-socket.30077': Connection refused
  • tail: /tmp/ocserv.log: file truncated
  • note: setting 'plain' as primary authentication method
  • note: setting 'file' as supplemental config option
  • listening (TCP) on 0.0.0.0:4443...
  • listening (TCP) on [::]:4443...
  • listening (UDP) on 0.0.0.0:4443...
  • listening (UDP) on [::]:4443...
  • ocserv[30113]: main: initialized ocserv 0.11.8
  • ocserv[30115]: sec-mod: reading supplemental config from files
  • ocserv[30115]: sec-mod: sec-mod initialized (socket: /var/run/ocserv-socket.30113)
  • ocserv[30115]: sec-mod: session open but with non-existing SID!
  • ocserv[30113]: main: *.*.*.*:5075 could not open session
  • ocserv[30113]: main: *.*.*.*:5075 failed authentication attempt for user ''
  • ocserv[30116]: worker: *.*.*.*failed cookie authentication attempt
  • ocserv[30113]: main: *.*.*.*:5075 user disconnected (reason: unspecified, rx: 0, tx: 0)
  • ocserv[30115]: sec-mod: error receiving msg head from main
  • ocserv[30115]: sec-mod: error processing async command from main
  • tail: /tmp/ocserv.log: file truncated
  • note: setting 'plain' as primary authentication method
  • note: setting 'file' as supplemental config option
  • [/ol]复制代码
  • 回复

    使用道具 举报

    31

    主题

    379

    回帖

    921

    积分

    高级会员

    积分
    921
    发表于 2018-7-18 13:47:15 | 显示全部楼层
    禁用udp试试
    回复

    使用道具 举报

    333

    主题

    2564

    回帖

    6251

    积分

    论坛元老

    积分
    6251
    发表于 2018-7-18 13:52:26 | 显示全部楼层
    udp干扰,一般是VP N连接后几分钟端开一次,然后再连接就不会断开了
    回复

    使用道具 举报

    23

    主题

    271

    回帖

    657

    积分

    高级会员

    积分
    657
    发表于 2018-7-18 13:56:16 | 显示全部楼层
    udp 的问题
    回复

    使用道具 举报

    18

    主题

    119

    回帖

    318

    积分

    中级会员

    积分
    318
     楼主| 发表于 2018-7-18 14:06:00 | 显示全部楼层
    @hostvps @eategg
    关闭 dtls-legacy 和 udp 后症状依旧。

    [ol]
  • listening (TCP) on 0.0.0.0:4443...
  • listening (TCP) on [::]:4443...
  • ocserv[30565]: main: initialized ocserv 0.11.8
  • ocserv[30567]: sec-mod: reading supplemental config from files
  • ocserv[30567]: sec-mod: sec-mod initialized (socket: /var/run/ocserv-socket.30565)
  • ocserv[30567]: sec-mod: using 'plain' authentication to authenticate user (session: RlatsK)
  • ocserv[30565]: main: *.*.*.*:5148 user disconnected (reason: unspecified, rx: 0, tx: 0)
  • ocserv[30565]: main: *.*.*.*:5149 user disconnected (reason: unspecified, rx: 0, tx: 0)
  • ocserv[30567]: sec-mod: initiating session for user 'me' (session: RlatsK)
  • ocserv[30565]: main[me]: *.*.*.*:5150 new user session
  • ocserv[30572]: worker[me]: *.*.*.*suggesting DPD of 30 secs
  • ocserv[30572]: worker[me]: *.*.*.*configured link MTU is 1500
  • ocserv[30572]: worker[me]: *.*.*.*peer's link MTU is 1500
  • ocserv[30572]: worker[me]: *.*.*.*sending IPv4 192.168.233.15
  • ocserv[30572]: worker[me]: *.*.*.*adding DNS 8.8.8.8
  • ocserv[30572]: worker[me]: *.*.*.*adding DNS 8.8.4.4
  • ocserv[30572]: worker[me]: *.*.*.*Link MTU is 1500 bytes
  • ocserv[30565]: main[me]: *.*.*.*:5150 user logged in
  • ocserv[30567]: sec-mod: error receiving msg head from main
  • ocserv[30567]: sec-mod: error processing sync command from main
  • ocserv[30572]: worker[me]: *.*.*.*worker-auth.c:708: error connecting to sec-mod socket '/var/run/ocserv-socket.30565': Connection refused
  • tail: /tmp/ocserv.log: file truncated
  • note: setting 'plain' as primary authentication method
  • note: setting 'file' as supplemental config option
  • listening (TCP) on 0.0.0.0:4443...
  • listening (TCP) on [::]:4443...
  • ocserv[30600]: main: initialized ocserv 0.11.8
  • ocserv[30602]: sec-mod: reading supplemental config from files
  • ocserv[30602]: sec-mod: sec-mod initialized (socket: /var/run/ocserv-socket.30600)
  • ocserv[30602]: sec-mod: session open but with non-existing SID!
  • ocserv[30600]: main: *.*.*.*:5156 could not open session
  • ocserv[30600]: main: *.*.*.*:5156 failed authentication attempt for user ''
  • ocserv[30603]: worker: *.*.*.*failed cookie authentication attempt
  • ocserv[30600]: main: *.*.*.*:5156 user disconnected (reason: unspecified, rx: 0, tx: 0)
  • [/ol]复制代码
  • 回复

    使用道具 举报

    190

    主题

    1898

    回帖

    4422

    积分

    论坛元老

    积分
    4422
    发表于 2018-7-18 13:58:07 | 显示全部楼层
    用sstp吧 申请一个SSL证书的事
    回复

    使用道具 举报

    333

    主题

    2564

    回帖

    6251

    积分

    论坛元老

    积分
    6251
    发表于 2018-7-18 14:42:17 | 显示全部楼层
    用https://goo.gl/3NUUk6 这个搭建openvp n
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-4-20 04:57 , Processed in 0.018703 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表