@@ -31,19 +31,19 @@ Test authorization through supplicant on Windows10, Android 4.4.4 and iOS 13.
31
31
32
32
- Setup database
33
33
34
- start pg: ` docker- compose -f docker-compose.yml up pg `
34
+ start pg: ` docker compose -f docker-compose.yml up pg `
35
35
36
36
init database and table data with [ mysql_insert.sql] ( https://github.com/zeroleo12345/radius_server_python/blob/master/data/db/mysql_insert.sql )
37
37
38
38
- For authenticate
39
39
40
40
Build the docker image
41
41
42
- ` docker- compose build auth `
42
+ ` docker compose build auth `
43
43
44
44
Run the docker container
45
45
46
- ` docker- compose up auth `
46
+ ` docker compose up auth `
47
47
48
48
- For accouting
49
49
@@ -55,7 +55,7 @@ Test authorization through supplicant on Windows10, Android 4.4.4 and iOS 13.
55
55
### build lib ` libhostapd.so ` from project ` hostapd `
56
56
57
57
``` bash
58
- docker- compose exec auth bash
58
+ docker compose exec auth bash
59
59
60
60
cd third_party/hostapd-2.10/hostapd/
61
61
cat README.md
@@ -65,7 +65,7 @@ cat README.md
65
65
### build simulator ` eapol_test ` from project ` wpa_supplicant `
66
66
67
67
``` bash
68
- docker- compose exec auth bash
68
+ docker compose exec auth bash
69
69
70
70
cd third_party/wpa_supplicant-2.10/wpa_supplicant/
71
71
cat README.md
@@ -76,7 +76,7 @@ cat README.md
76
76
> ` freeradius ` not support ` OpenSSL 3.0 ` well in debian ` bookworm `
77
77
78
78
``` bash
79
- docker- compose exec auth bash
79
+ docker compose exec auth bash
80
80
81
81
cd third_party/freeradius-3.2.3/
82
82
cat README.md
@@ -87,12 +87,12 @@ cat README.md
87
87
88
88
### Authenticate: ` CHAP `
89
89
90
- enter into authenticate container: ` docker- compose exec auth bash `
90
+ enter into authenticate container: ` docker compose exec auth bash `
91
91
92
92
run simulator in container:
93
93
94
94
``` bash
95
- docker- compose exec simulator bash
95
+ docker compose exec simulator bash
96
96
97
97
radclient -D /app/tools/simulator/etc/dictionary -d /app/etc/dictionary auth:1812 auth ' testing123' < /app/tools/simulator/radius_test/auth/chap.conf
98
98
```
@@ -102,7 +102,7 @@ radclient -D /app/tools/simulator/etc/dictionary -d /app/etc/dictionary auth:181
102
102
103
103
``` bash
104
104
105
- docker- compose exec simulator bash
105
+ docker compose exec simulator bash
106
106
107
107
# docker run --rm -it --network pppoe_system_network_name jumanjiman/radclient:latest \
108
108
radclient -D /app/tools/simulator/etc/dictionary -d /app/etc/dictionary auth:1812 auth ' testing123' < /app/tools/simulator/radius_test/auth/pap.conf
@@ -111,7 +111,7 @@ radclient -D /app/tools/simulator/etc/dictionary -d /app/etc/dictionary auth:181
111
111
112
112
### Authenticate: ` MSCHAPv2 `
113
113
114
- 1 . ` docker- compose up -d auth_test ` , listen on port 2812
114
+ 1 . ` docker compose up -d auth_test ` , listen on port 2812
115
115
116
116
2 . Access Controller route traffic to 2812
117
117
@@ -121,7 +121,7 @@ radclient -D /app/tools/simulator/etc/dictionary -d /app/etc/dictionary auth:181
121
121
122
122
add ` USE_GTC=1 ` in .env and restart docker container
123
123
124
- enter into authenticate container: ` docker- compose exec auth bash `
124
+ enter into authenticate container: ` docker compose exec auth bash `
125
125
126
126
run simulator in container directory ` /app/tools/simulator/bin ` :
127
127
@@ -134,7 +134,7 @@ eapol_test -c /app/tools/simulator/eap_test/eapol_test.conf.peapv1.gtc -a auth -
134
134
135
135
remove ` USE_GTC=0 ` in .env and restart docker container
136
136
137
- enter into authenticate container: ` docker- compose exec auth bash `
137
+ enter into authenticate container: ` docker compose exec auth bash `
138
138
139
139
run simulator in container directory ` /app/tools/simulator/bin ` :
140
140
@@ -146,7 +146,7 @@ run simulator in container directory `/app/tools/simulator/bin`:
146
146
## Send ` Accounting ` request with simulator
147
147
148
148
``` bash
149
- docker- compose exec simulator bash
149
+ docker compose exec simulator bash
150
150
151
151
# i package
152
152
radclient -D /app/tools/simulator/etc/dictionary -d /app/etc/dictionary acct:1813 acct ' testing123' < /app/tools/simulator/radius_test/acct/i.conf
@@ -163,12 +163,12 @@ radclient -D /app/tools/simulator/etc/dictionary -d /app/etc/dictionary acct:181
163
163
164
164
### disconnect
165
165
166
- enter into accounting container: ` docker- compose exec dae bash `
166
+ enter into accounting container: ` docker compose exec dae bash `
167
167
168
168
run simulator in container directory ` /app/tools/simulator/bin ` :
169
169
170
170
``` bash
171
- docker- compose exec simulator bash
171
+ docker compose exec simulator bash
172
172
173
173
radclient -D /app/tools/simulator/etc/dictionary -d /app/etc/dictionary dae:3799 disconnect ' testing123' < /app/tools/simulator/radius_test/dae/disconnect.conf
174
174
```
@@ -182,7 +182,7 @@ gdb /root/.pyenv/shims/python -c core.1
182
182
183
183
## gdb segmentation fault
184
184
``` bash
185
- ENTRYPOINT=" tail -f /dev/null" docker- compose up -d auth_test
185
+ ENTRYPOINT=" tail -f /dev/null" docker compose up -d auth_test
186
186
187
187
apt-get install gdb
188
188
0 commit comments