-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
30 lines (20 loc) · 837 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## Starting in namespace
```bash
cd /app/vnfs/cache-squid
ip netns exec netovs0 sh install.sh
ip netns exec netovs0 sh config.sh
ip netns exec netovs0 sh start.sh
```
## Testing
Try the blocked rule `curl -v --max-time 5 http://www.example.org` the response headers should show some cache information. Some like below or `curl -v --max-time 5 http://detectportal.firefox.com/success.txt` or `curl -v --max-time 5 http://captive.apple.com`
```
< X-Cache: MISS from b345639b6a3e
< X-Cache-Lookup: NONE from b345639b6a3e:3128
```
Check logs to see if the cache was access
```bash
cat /var/log/squid/access.log
```
**Useful resources**
- [Linux traffic Interception using REDIRECT](https://wiki.squid-cache.org/ConfigExamples/Intercept/LinuxRedirect)
- [Feature: TPROXY version 4.1+](https://wiki.squid-cache.org/Features/Tproxy4)