Commit Graph

27 Commits

Author SHA1 Message Date
Hagb
ea1cf7c42a Add support for timed pinging
It helps to keep connection longer. Tested by @ethanfun.
2023-07-26 15:42:14 +08:00
Hagb
e13ece4db1 Use qemu-user >= 8.0.0 which fixes a memory leak bug
https://gitlab.com/qemu-project/qemu/-/issues/866

In docker-easyconnect, it was first mentioned in #128.
2023-07-26 15:16:46 +08:00
Hagb
676631a228 Refactor and prepare to add aTrust
- Change most of `EC` to `VPN` in the source code, since this project will not
  be only for EasyConnect
- Dehardcode
- Refactor for more than one type of Sangfor VPN
2023-07-16 01:51:01 +08:00
Hagb
b93d0d5aaf Merge branch 'master' into develop 2023-03-08 00:42:20 +08:00
Hagb
530b7d5be5 Expose 54530 port
This port is used by EasyConnect for web api, called by EasyConnect GUI
and/or web page of VPN server.

Close #143
2023-01-24 22:36:09 +08:00
Hagb
f533949090 Support non-amd64 deb package of EasyConnect
Since non-amd64 deb packages of EasyConnect are proved to exist
(https://github.com/Hagb/docker-easyconnect/issues/25#issuecomment-1233369467),
the deb package should not be assume to be amd64 and architecture
specific code should be rewritten:

- Add EC_HOST build argument to tell Dockerfile the architecture of
  EasyConnect package
- Whether to install cross toolchain and qemu-user and which package
  should be install, is determined by EC_HOST and the local architecture
  now, more specifically by build-scripts/get-echost-names.sh (no longer
  hard-code amd64 cross toolchain)
- fake-hwaddr.so should follow the architecture of the EC deb, so
  fake-hwaddr/Makefile uses CC envirnoment variable instead of
  hard-coded x86_64-linux-gnu-gcc as c compiler now
- qemu_args is removed now. It was used to pass LD_PRELOAD to foreign
  binaries under qemu-user, but now we pass LD_PRELOAD to the qemu
  wrapper and wrapper will pass the LD_PRELOAD to the simulated
  binaries
2022-09-24 08:52:32 +08:00
Hagb
12409d7739 Install CA certificates for TLS certificate validation 2022-09-21 06:34:33 +08:00
Hagb
32cac7c846 Compile tinyproxy for websocket support
Prepare for noVNC, which uses websocket.
2022-09-20 23:03:58 +08:00
Hagb
e746bc4879 Set ftp.cn.debian.org as the default mirror 2022-09-20 10:55:09 +08:00
Hagb
2fc81f4eaa Clean up build scripts 2022-09-20 10:44:43 +08:00
Hagb
007d391e4a Rename Dockerfile.fake-hwaddr to Dockerfile.build
Not only fake-hwaddr.so, there will be more things to be compiled.

- The image name of building stage is hagb/docker-easyconnect:build now
- Every independent building result will be in /root/name/, which will
  be an empty folder if turned off by user.
2022-09-20 08:58:31 +08:00
Hagb
ba974b02cd Merge branch 'master' into develop 2022-09-19 15:38:55 +08:00
redjumper
9c7a332bc6 fix danted not start if host disable ipv6 2022-08-06 01:49:11 +08:00
Hagb Green (Guo Junyu)
502bccac2f Add a workaround for qemu-user memory leak
qemu-user bug: https://gitlab.com/qemu-project/qemu/-/issues/866

https://github.com/Hagb/docker-easyconnect/issues/128#issuecomment-1074058067
2022-03-22 01:13:17 +08:00
Hagb Green (Guo Junyu)
72cbfc2ccc Refactor dockerfiles and add support for non-amd64 GUI
- split common part of dockerfiles to shell scripts in build-scripts
  folder
- add support for non-amd64 GUI by replacing the electron binary with the
  native one
2022-03-21 02:32:19 +08:00
Hagb Green (Guo Junyu)
63dafe1f04 Keep the compatibility with OCI format of dockerfile 2022-03-21 02:29:43 +08:00
Hagb
0e141e9000 Add support for non-amd64 architecture via qemu-user 2022-02-09 03:54:05 +08:00
Hagb
80920259b4 Add FAKE_HWADDR variable for rootless podman
没有 root 权限的 podman 无法设置静态的虚拟网卡的 MAC 地址,每次启动都会产生不同的 MAC 地址,从而 EasyConnect
需要提交硬件新的硬件 ID。这个 commit 用 LD_PRELOAD 劫持了用于获取 MAC 地址的 loctl 函数,将获取的 MAC 地址指定为
用户指定的 FAKE_HWADDR 环境变量的值。
2022-02-06 04:20:50 +08:00
lishoujun
532f2c3b50 change local mirror to aliyun 2022-02-03 09:37:49 +08:00
shoujun.li
647ce5f813 clean apt cache 2022-01-30 16:21:53 +08:00
morooi
8581a0244d add Github Actions - build and push docker image to Docker Hub 2021-08-28 17:18:55 +08:00
ztongxue
70cbff0415 Add tinyproxy to support http&https proxy 2021-08-04 02:23:27 +08:00
Hagb Green
345eac297f Improve the method to set route for open ports
Fix #20
2021-07-19 16:01:23 +08:00
Hagb Green
36d3cabc08 Fix Dockerfile.cli 2021-03-08 19:21:06 +08:00
Hagb Green
cf4050d2c4 Improve cli version 2021-03-08 18:44:34 +08:00
Hagb Green
7c1f5ad259 Add CLI_OPTS variable and support to persisting data in cli 2021-03-07 03:43:11 +08:00
Hagb Green
11981d405a Add cli version
Thank @shmilee for providing cli easyconn #35
2021-03-06 23:46:32 +08:00