Commit Graph

282 Commits

Author SHA1 Message Date
Hagb
71f1b24974 Fix aTrust on podman and other potential errors about aTrust
On docker, `/proc/self/loginuid` is -1 by default, while on podman it is
0 (root), which makes aTrust services refuse to start, because after they
use `getlogin_r`, which is affected by `/proc/self/loginuid`, to get the
username successfully, they give up trying any other way (such as
`loginctl`) to get the non-root user used to start the http server (port
54631), even if the username they got is root.

This commit adds a LD_PRELOAD hook named fake-getlogin, which hooks
`getlogin` and `getlogin_r` to provide the non-root username directly.

This commit also:
- reduces errors when running postinst script of aTrust;
- uses LD_LIBRARY_PATH to make aTrust use its versions of libraries,
  especially those very old and no longer getatable from debian
  packages.
2024-07-07 07:01:50 +08:00
redjumper
99285e3f3a Change the danted internal server address binding to IP address (#351)
Fix #339
2024-05-22 00:18:24 +08:00
JHees
a351f1fe80 Merge pull request #350 from yuantuo666/patch-1
Fix port examples of env FORWARD config
2024-05-15 15:24:20 +08:00
Yuan_Tuo
e5d04643c5 Fix port examples of env FORWARD config 2024-05-14 11:28:00 +08:00
Hagb
f0bb9f2540 Want maintainer 2024-05-07 01:02:34 +08:00
Hagb
3cb2d5d8be Fix incorrect build arguments of atrust-2.3.10_sp4 2024-05-07 00:35:41 +08:00
Hagb (Junyu Guo 郭俊余)
3753fa80f8 Merge pull request #321 from aimuz/patch-1
fixed: action build fail
2024-05-07 00:33:37 +08:00
Hagb
0a08c6616a Update pkg_version.xml manually 2024-05-07 00:18:28 +08:00
Hagb
f69afae148 Add write permission for the action checking version 2024-03-30 01:46:33 +08:00
aimuz
fd5d3d0e55 fixed: action build fail 2024-01-15 10:22:36 +08:00
Hagb
e9a7b2323b Update aTrust client to 2.3.10_sp3
Resolve https://github.com/docker-easyconnect/docker-easyconnect/issues/318
2024-01-04 02:29:46 +08:00
Hagb
ec1c17ece4 Merge pull request #308 from redjumper/master 2023-11-15 14:48:14 +08:00
github-actions
a571dcf8e5 Update pkg_version.xml 2023-10-28 03:30:54 +00:00
redjumper
4e4d45ebe9 Update images when there is a new easyConnect version 2023-10-28 09:21:59 +08:00
Hagb
b58674f04c Fix dependencies conflict 2023-10-18 17:46:11 +08:00
Hagb
c369e9d637 Add empty workflow in preparation for checking easyconnect versions 2023-10-15 00:47:17 +08:00
Hagb
f81ff9eec2 Fix github action 2023-07-26 20:00:15 +08:00
Hagb
077f74ea65 Merge branch 'develop' 2023-07-26 16:56:37 +08:00
Hagb
00f8dd735b Set max open files to a working value
@rikaunite https://github.com/Hagb/docker-easyconnect/issues/245

Solve #245
2023-07-26 16:52:10 +08:00
Hagb
9c1dd38207 Update document and output about tun
tun0 and utun7 is interface (接口) but not device (设备)
2023-07-26 16:28:59 +08:00
Hagb
47350c0948 Add document about mac address
Resolve #235
2023-07-26 15:59:41 +08:00
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
fe1fd0acb7 Fix deps when using qemu-user 2023-07-26 15:17:09 +08:00
Hagb
35fb64248c Reserve /tmp/.X11-unix when remove /tmp/ 2023-07-26 15:17:05 +08:00
Hagb
41a77072f4 Fix syntax error 2023-07-26 15:16:57 +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
604c6ef779 Add document about routing 2023-07-26 11:46:16 +08:00
Hagb
2b603c087b Add development document 2023-07-26 04:35:06 +08:00
Hagb
b7d1e8a27a Clean up some examples 2023-07-26 04:33:08 +08:00
Hagb
e1e248f179 Delete hooks for building image in DockerHub
Now images are built by Github Actions. I cannot afford to build image
in DockerHub.
2023-07-26 03:52:08 +08:00
Hagb
64891dd7e4 Rename env variable ECPASSWORD to CLIP_TEXT and add related document
ECPASSWORD is used to set clipboard text in VNC, but its name is
confusing. So rename it to a more exact name.

This issue also adds document about clipboard in VNC.

Solve #251.
2023-07-26 03:14:52 +08:00
Hagb
5a3e0fd549 Add document about EasyConnect versions matching 2023-07-26 02:23:14 +08:00
Hagb
6bf6ad7a02 doc: docker run with --rm 2023-07-25 02:09:00 +08:00
Hagb
b3127cbab0 Use https to download EasyConnect 2023-07-21 16:45:56 +08:00
Hagb
7f076a670b Clean up doc/usage.md 2023-07-21 16:43:49 +08:00
Hagb
4cc0ac4495 Fix EasyConnect configuration synchronization 2023-07-19 19:40:44 +08:00
Hagb
86850950e9 Make danted log only errors and print to stderr 2023-07-19 07:19:20 +08:00
Hagb
5f2a983384 Unhardcode X display argument and use stalonetray to show systray
Simply closing aTrust windows is just hiding it into systray. A systray
implementation is necessary for closing the frontend of aTrust via GUI.
2023-07-19 07:07:20 +08:00
Hagb
940e82b532 Add /usr/sbin/dmidecode as a dummy command
A component of aTrust, /usr/share/sangfor/aTrust/resources/bin/dmidecode_processor_tool,
seems to search for and try to run dmidecode in /usr/{bin,sbin}.
Exactly, it runs `sh -c 'path-to-dmidecode -t processor'` periodically
(or it is called periodically). If there is no dmidecode command in
/usr/bin or /usr/sbin, it runs `sh -c '-t processor'` instead, which
throws the `sh: 1: -t: not found` spam in console.

This commit creates a symbolic link to /bin/false in /usr/sbin/dmidecode
to suppress the spam.
2023-07-19 06:02:37 +08:00
Hagb
d679b62f7f Set vpn configuration variables to envirnoment variables
Some of them should be passed to our other scripts.
2023-07-19 06:02:14 +08:00
Hagb
70b990a7b2 Start services parallelly 2023-07-19 06:01:26 +08:00
Hagb
eb323718e3 Create temporary tun device for danted
To start danted successfully, all network interfaces listed in the
configuration of danted should occur and has ip(s). After started
successfully, danted can run without troubles even after the status
of thoes network interfaces is changed (such as deleted and recreated).

This commit creates a temporary tun interface with same name as Sangfor
VPN, assigns an ip, starts danted, and then deletes the interface.
2023-07-19 05:39:41 +08:00
Hagb
bb7571fcde Mention more related projects 2023-07-18 02:41:41 +08:00
Hagb
9fa4dd31c3 Fix typo 2023-07-18 00:41:49 +08:00
Hagb
9014201e81 Fix action 2023-07-17 23:41:27 +08:00
Hagb
ed4cb8abac Fix aTrust image tagging in GitHub Action 2023-07-17 21:41:52 +08:00
Hagb
67db766be9 Fix github action
There are 'Illegal instruction' errors causing postinst of aTrust failed
in mips64el. So don't build the image of aTrust mips64el in the action.
2023-07-17 20:17:07 +08:00
Hagb
5a7a4d4a1d Build aTrust image in GitHub Actions 2023-07-17 17:41:54 +08:00
Hagb
aa8a1e370a Merge branch 'atrust' into develop 2023-07-17 17:13:12 +08:00
Hagb
199dae85b1 Add document about certificate in EasyConnect arm64 or mips64el
@jiangliuhong https://github.com/Hagb/docker-easyconnect/issues/250#issuecomment-1633692467
2023-07-17 17:11:28 +08:00