Ubuntu 14.04
Установил squid3, прописал в автозагрузку
Сеть - через роутер 192.168.10.1
который в свою очередь подключен к модему 4G 192.168.1.1
Интернет работает без network manager
Проблема в том, что при запуске компьютера сети сначала нет. Включаещшь модем с роутером - нет сети, потом перезагрузил комп (модем и роутер включены) - сеть есть.
Если отключить squid3 то сеть нормальная.
Подскажите, будьте добры, как настроить правильно файл squid3.conf и другие данные, чтобы запускалась сеть. Чтобы сеть запускалась первой, а squid3 второй.
Вот мои файлы:
/etc/network/interfaces
auto lo
iface lo inet loopback
mtu 1500
allow-hotplug eth0
iface eth0 inet dhcp
/etc/squid3/squid.conf
http_port 192.168.10.1:3128 transparent
icp_port 0
htcp_port 0
http_access allow localhost
acl localhost src 127.0.0.1/255.255.255.255
acl localnet src 192.168.10.0/24
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
cache_dir ufs /var/spool/squid3 300 16 256
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl myip src 198.162.10.0/24
http_access allow myip
http_access deny all
http_reply_access allow all
icp_access deny all
htcp_access deny all
email_err_data off
error_directory /usr/share/squid3/errors/Russian-koi8-r
coredump_dir /var/spool/squid3
root@d:/home/p# ifconfig
eth0 Link encap:Ethernet HWaddr 1c:1b:0d:5e:29:5c
inet addr:192.168.10.125 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8808 errors:0 dropped:0 overruns:0 frame:0
TX packets:7988 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6020876 (5.7 MiB) TX bytes:1315802 (1.2 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:43 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20796 (20.3 KiB) TX bytes:20796 (20.3 KiB)
root@d:/home/p#
root@d:/home/p# systemctl status squid3
● squid3.service - LSB: Squid HTTP Proxy version 3.x
Loaded: loaded (/etc/init.d/squid3)
Active: active (exited) since Ср 2018-12-19 22:22:59 +07; 9s ago
Process: 2859 ExecStop=/etc/init.d/squid3 stop (code=exited, status=0/SUCCESS)
Process: 2918 ExecStart=/etc/init.d/squid3 start (code=exited, status=0/SUCCESS)
дек 19 22:22:59 d squid3[2918]: 2018/12/19 22:22:59| WARNING: because of...le
дек 19 22:22:59 d squid3[2918]: 2018/12/19 22:22:59| WARNING: You should...l'
дек 19 22:22:59 d squid3[2918]: 2018/12/19 22:22:59| aclParseAclLine: AC...e.
дек 19 22:22:59 d squid3[2918]: FATAL: Bungled /etc/squid3/squid.conf li...ct
дек 19 22:22:59 d squid3[2918]: Squid Cache (Version 3.4.8): Terminated ...y.
дек 19 22:22:59 d squid3[2918]: CPU Usage: 0.000 seconds = 0.000 user + ...ys
дек 19 22:22:59 d squid3[2918]: Maximum Resident Size: 37920 KB
дек 19 22:22:59 d squid3[2918]: Page faults with physical i/o: 0
дек 19 22:22:59 d systemd[1]: Started LSB: Squid HTTP Proxy version 3.x.
дек 19 22:22:59 d squid3[2918]: failed!
Hint: Some lines were ellipsized, use -l to show in full.
root@d:/home/p#