我目前正在尝试在我的个人笔记本电脑上创建一个 squid 服务器,以便我工作中的几台 PC 通过我笔记本电脑上的 vpn 连接到互联网。
我已经在运行 Debian 9 的笔记本电脑上安装并配置了 squid,并将笔记本电脑连接到工作局域网(IP = 10.75.245.21)。
然后我配置了一台运行 Windows 10 的 PC(IP = 10.75.245.20)以在我的计算机上使用代理(端口 = 3128)。但是当我尝试访问任何互联网页面时,连接失败。
关于如何修复它有什么想法吗?
附加信息
LAN 中的所有计算机都有固定 IP,子网掩码为 255.255.254.0 这里的网络也可以访问互联网,但防火墙非常严格(我想通过 VPN 路由连接的动机)所有计算机和我的笔记本电脑都在同一个子网中我的电脑也连接到无线网络。我在电脑上使用思科协议 VPN
当我尝试打开互联网页面时,我的计算机(服务器)上的命令 netstat -na | grep 3128 显示:
tcp6 0 0 :::3128 :::* LISTEN
tcp6 0 0 10.75.245.21:3128 10.75.245.20:52802 SYN_RECV
tcp6 0 0 10.75.245.21:3128 10.75.245.20:52803 SYN_RECV
tcp6 0 0 10.75.245.21:3128 10.75.245.20:52798 SYN_RECV
tcp6 0 0 10.75.245.21:3128 10.75.245.20:52806 SYN_RECV
tcp6 0 0 10.75.245.21:3128 10.75.245.20:52804 SYN_RECV
tcp6 0 0 10.75.245.21:3128 10.75.245.20:52805 SYN_RECV
tcp6 0 0 10.75.245.21:3128 10.75.245.20:52801 SYN_RECV
tcp6 0 0 10.75.245.21:3128 10.75.245.20:52800 SYN_RECV
tcp6 0 0 10.75.245.21:3128 10.75.245.20:52799 SYN_RECV
客户端中的netstat命令显示:
TCP 10.75.245.20:52798 10.75.245.21:3128 ESTABLISHED
TCP 10.75.245.20:52799 10.75.245.21:3128 ESTABLISHED
TCP 10.75.245.20:52800 10.75.245.21:3128 ESTABLISHED
TCP 10.75.245.20:52801 10.75.245.21:3128 ESTABLISHED
TCP 10.75.245.20:52802 10.75.245.21:3128 ESTABLISHED
TCP 10.75.245.20:52803 10.75.245.21:3128 ESTABLISHED
TCP 10.75.245.20:52804 10.75.245.21:3128 ESTABLISHED
TCP 10.75.245.20:52805 10.75.245.21:3128 ESTABLISHED
TCP 10.75.245.20:52806 10.75.245.21:3128 ESTABLISHED
谢谢您的帮助!
编辑1:cache.log文件:
2018/01/30 10:50:00 kid1| Starting Squid Cache version 3.5.23 for x86_64-pc-linux-gnu...
2018/01/30 10:50:00 kid1| Service Name: squid
2018/01/30 10:50:00 kid1| Process ID 8839
2018/01/30 10:50:00 kid1| Process Roles: worker
2018/01/30 10:50:00 kid1| With 65535 file descriptors available
2018/01/30 10:50:00 kid1| Initializing IP Cache...
2018/01/30 10:50:00 kid1| DNS Socket created at [::], FD 6
2018/01/30 10:50:00 kid1| DNS Socket created at 0.0.0.0, FD 8
2018/01/30 10:50:00 kid1| Adding nameserver 192.10.15.1 from /etc/resolv.conf
2018/01/30 10:50:00 kid1| Logfile: opening log daemon:/var/log/squid/access.log
2018/01/30 10:50:00 kid1| Logfile Daemon: opening log /var/log/squid/access.log
2018/01/30 10:50:00 kid1| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2018/01/30 10:50:00 kid1| Store logging disabled
2018/01/30 10:50:00 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2018/01/30 10:50:00 kid1| Target number of buckets: 1008
2018/01/30 10:50:00 kid1| Using 8192 Store buckets
2018/01/30 10:50:00 kid1| Max Mem size: 262144 KB
2018/01/30 10:50:00 kid1| Max Swap size: 0 KB
2018/01/30 10:50:00 kid1| Using Least Load store dir selection
2018/01/30 10:50:00 kid1| Set Current Directory to /var/spool/squid
2018/01/30 10:50:00 kid1| Finished loading MIME types and icons.
2018/01/30 10:50:00 kid1| HTCP Disabled.
2018/01/30 10:50:00 kid1| Pinger socket opened on FD 13
2018/01/30 10:50:00 kid1| Squid plugin modules loaded: 0
2018/01/30 10:50:00 kid1| Adaptation support is off.
2018/01/30 10:50:00 kid1| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 11 flags=9
2018/01/30 10:50:00| pinger: Initialising ICMP pinger ...
2018/01/30 10:50:00| pinger: ICMP socket opened.
2018/01/30 10:50:00| pinger: ICMPv6 socket opened
2018/01/30 10:50:01 kid1| storeLateRelease: released 0 objects
2018/01/30 11:30:00 kid1| Logfile: opening log stdio:/var/log/squid/netdb.state
2018/01/30 11:30:00 kid1| Logfile: closing log stdio:/var/log/squid/netdb.state
2018/01/30 11:30:00 kid1| NETDB state saved; 0 entries, 0 msec
2018/01/30 11:40:01 kid1| Preparing for shutdown after 0 requests
2018/01/30 11:40:01 kid1| Waiting 30 seconds for active connections to finish
2018/01/30 11:40:01 kid1| Closing HTTP port [::]:3128
2018/01/30 11:40:01 kid1| Closing Pinger socket on FD 13
2018/01/30 11:40:08| Pinger exiting.
2018/01/30 11:40:32 kid1| Shutdown: NTLM authentication.
2018/01/30 11:40:32 kid1| Shutdown: Negotiate authentication.
2018/01/30 11:40:32 kid1| Shutdown: Digest authentication.
2018/01/30 11:40:32 kid1| Shutdown: Basic authentication.
2018/01/30 11:40:32 kid1| Shutting down...