Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
YiRanCN committed Nov 7, 2023
1 parent baa9d79 commit beb4270
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/study/net/OpenVPN.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,22 @@ topology subnet

完全按照 tun 模式的 1 来分配。

### 脚本创建 client

脚本创建 client,自动输入 ca 密码,

```shell
#!/usr/bin/expect

set timeout 30

spawn ./easyrsa build-client-full client014 nopass
expect "pass"
send "weichuang"
send "\n"
interact
```

### 问题:连接成功后,客户端无法正常访问其他网站

将 server.conf 的
Expand Down
7 changes: 7 additions & 0 deletions docs/study/system/shell编程智expect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### expect

expect 是一个免费的编程工具,用来实现自动的交互式任务,而无需人为干预。

这个工具在处理调用其他工具,输入密码之类的交互,非常有用。

- [CSDN-shell 编程之 expect](https://blog.csdn.net/givenchy_yzl/article/details/118079170)

0 comments on commit beb4270

Please sign in to comment.