Salut !
Je voudrai me faire un serveur proxy perso pour l'utiliser au boulot et contourné les restrictions (rien de bien méchant des sites qui font passé le temps comme Hordes.fr).
Du coup j'ai ressortie ma Raspberry b+ et j'y ai installé Squid et je l'ai paramétré rapidement.
La config :
et pour voir j'ai fait un netstat mais étrange Squid n’apparait pas...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 http_port 3128 #We recommend you to use the following two lines. acl QUERY urlpath_regex cgi-bin \? no_cache deny QUERY cache_mem 8 MBM maximum_object_size_in_memory 8 KB cache_dir ufs /var/spool/squid 100 16 256 cache_access_log /var/log/squid/access.log cache_log /var/log/squid/cache.log cache_store_log /var/log/squid/store.log # Put your FQDN here visible_hostname freeduc-sup.foo.org pid_filename /var/run/squid.pid #Recommended minimum configuration: acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 #Recommended minimum configuration: http_access allow manager localhost http_access allow all
Il semblerai que squid s'arrète juste après le lancement???
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 root@raspberry-pi:~# /etc/init.d/squid start [ ok ] Starting Squid HTTP proxy: squid. root@raspberry-pi:~# netstat -ntpul Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6502 0.0.0.0:* LISTEN 1757/murmurd tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1903/sshd tcp6 0 0 :::64738 :::* LISTEN 1757/murmurd tcp6 0 0 :::22 :::* LISTEN 1903/sshd udp 0 0 0.0.0.0:3259 0.0.0.0:* 1839/dhclient udp 0 0 0.0.0.0:5353 0.0.0.0:* 1661/avahi-daemon: udp 0 0 0.0.0.0:50414 0.0.0.0:* 1661/avahi-daemon: udp 0 0 0.0.0.0:68 0.0.0.0:* 1839/dhclient udp 0 0 192.168.1.10:123 0.0.0.0:* 1722/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 1722/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 1722/ntpd udp6 0 0 :::21127 :::* 1839/dhclient udp6 0 0 :::59345 :::* 1661/avahi-daemon: udp6 0 0 :::64738 :::* 1757/murmurd udp6 0 0 :::5353 :::* 1661/avahi-daemon: udp6 0 0 fe80::ba27:ebff:fe6:123 :::* 1722/ntpd udp6 0 0 ::1:123 :::* 1722/ntpd udp6 0 0 :::123 :::* 1722/ntpd
Merci d'avance pour vos lumière!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 root@raspberry-pi:~# /etc/init.d/squid start [ ok ] Starting Squid HTTP proxy: squid. root@raspberry-pi:~# ps -e | grep squid 2375 ? 00:00:00 squid root@raspberry-pi:~# netstat -ntpul Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6502 0.0.0.0:* LISTEN 1757/murmurd tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1903/sshd tcp6 0 0 :::64738 :::* LISTEN 1757/murmurd tcp6 0 0 :::22 :::* LISTEN 1903/sshd udp 0 0 0.0.0.0:3259 0.0.0.0:* 1839/dhclient udp 0 0 0.0.0.0:5353 0.0.0.0:* 1661/avahi-daemon: udp 0 0 0.0.0.0:50414 0.0.0.0:* 1661/avahi-daemon: udp 0 0 0.0.0.0:68 0.0.0.0:* 1839/dhclient udp 0 0 192.168.1.10:123 0.0.0.0:* 1722/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 1722/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 1722/ntpd udp6 0 0 :::21127 :::* 1839/dhclient udp6 0 0 :::59345 :::* 1661/avahi-daemon: udp6 0 0 :::64738 :::* 1757/murmurd udp6 0 0 :::5353 :::* 1661/avahi-daemon: udp6 0 0 fe80::ba27:ebff:fe6:123 :::* 1722/ntpd udp6 0 0 ::1:123 :::* 1722/ntpd udp6 0 0 :::123 :::* 1722/ntpd root@raspberry-pi:~# ps -e | grep squid root@raspberry-pi:~#
Partager