[請問]pfSense Proxy Transparent proxy問題。


謝謝樓上兩位大大建議,已照做。但是如果電腦端不指定proxy ip一樣無法上網,小弟真的無計可施,還請幫忙。感謝。

看log連線到127.0.0.1:3128,這樣是正常的嗎?如果是為何無法連到外面網頁。因沒啟用ssl,所以直連有https的網站沒問題


先安裝squidGuard後再裝squid3


設定wan固定ip與gateway


設定lan ip


lan dhcp


NAT


firewall-wan


firwall-lan


default gateway


proxy設定,其他頁沒動




步驟應該全在這,多的我也沒動~(已重回原廠設定好多次)
感謝E大告知行程,我也希望能儘快弄好,不然就慢慢等囉!
在 transparent proxy 這邊你有設定嗎? 如下圖



Transparent HTTP Proxy 打勾
Transparent Proxy Interface(s) 選擇 LAN

bypass 的部分你應該不需要設置.

然後重新開機讓 pfsense reset 它的 state table.
Oneplus 8 Pro• Thinkpad T480s• PVE6+OMV4+NextCloud

dophone wrote:
謝謝樓上兩位大大建...(恕刪)


小弟不是什麼高手,摸過一下子,儘量幫忙,
你可以檢查一下squid.conf的內容,
看有沒有下面這兩行,
http_port 127.0.0.1:3128 intercept
http_port 你的LAN_IP:3128

EluSiOn wrote:
在 transparent...(恕刪)


有設定呀,重開機這步驟我倒是沒有做,可以來試試。

laims wrote:
小弟不是什麼高手,...(恕刪)


感謝幫忙,squid.conf這檔案我找不到
到是在/usr/local/pkg/squid.inc找到相關設定檔
你說的應該是這個?

節錄內容如下--

if (($settings['transparent_proxy'] == 'on')) {
if ($settings['ssl_proxy'] == "on" && count($ssl_ifaces) > 0) {
$conf .= "http_port 127.0.0.1:{$port} intercept {$ssl_interception}\n";
$conf .= "https_port 127.0.0.1:{$ssl_port} intercept {$ssl_interception}\n";
} else {
$conf .= "http_port 127.0.0.1:{$port} intercept\n";

昨天在測試proxy的時候也順便設定QOS功能

依精靈步驟設定完後,發現上下傳速率跟我設定不太一樣,變更後也無做用,索性火大全砍了。

但這個按鈕按了N次還是沒辦法回到最初的狀況,真的很奇怪


雖然已做過Factory defaults ,但其實發現在之前安裝的套件或設定有遺留下來
到底如何做到乾淨的初始設定?如要format hd的話我過程會很麻煩~
你是不是從舊版squid的一路升級上來? 或是有裝過squid2和squid3交換測試過

這個bug好像是上次freebsd升級後才有的(印象中是224版),因為我有一台實驗機也是一樣的錯誤~ 原本都正常運作,升級後就透明代理就失效了,因為是實驗機所以也還沒時間找問題。
dophone wrote:
感謝幫忙,squid...(恕刪)


squid.conf在/usr/pbi/squid-你安裝的版本/etc/squid/裡面,看squid.conf的設定是不是正確,有沒有那兩行,
就如上面網友講的,squid有bug,我也被搞過

twpop wrote:
你是不是從舊版squid...(恕刪)


最先有安裝squid3,之後移掉裝squid
期間有還原原廠設定數次
昨天是先裝squid後移掉,先裝squidGuard後裝squid3
laims wrote:
squid.conf...(恕刪)


有這兩行,設定transparent proxy在設定檔案上我找不到,正常有嗎?
----
更新
剛把transparent proxy取消後重啟http_port 127.0.0.1:3128 intercept
這行就消失,看起來我設定沒問題。難道是我電腦問題???

-----------
# This file is automatically generated by pfSense
# Do not edit manually !

http_port 192.168.66.3:3128
http_port 127.0.0.1:3128 intercept
icp_port 0
dns_v4_first on
pid_filename /var/run/squid/squid.pid
cache_effective_user proxy
cache_effective_group proxy
error_default_language af
icon_directory /usr/pbi/squid-i386/local/etc/squid/icons
visible_hostname localhost
cache_mgr admin@localhost
access_log /var/squid/logs/access.log
cache_log /var/squid/logs/cache.log
cache_store_log none
netdb_filename /var/squid/logs/netdb.state
pinger_enable on
pinger_program /usr/pbi/squid-i386/local/libexec/squid/pinger

logfile_rotate 0
debug_options rotate=0
shutdown_lifetime 3 seconds
# Allow local network(s) on interface(s)
acl localnet src 192.168.66.0/24
forwarded_for on
uri_whitespace strip

acl dynamic urlpath_regex cgi-bin \?
cache deny dynamic

cache_mem 8 MB
maximum_object_size_in_memory 32 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
minimum_object_size 0 KB
maximum_object_size 4 MB
cache_dir ufs /var/squid/cache 1000 16 256
offline_mode off
cache_swap_low 90
cache_swap_high 95
cache allow all
# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320


#Remote proxies


# Setup some default acls
# From 3.2 further configuration cleanups have been done to make things easier and safer. The manager, localhost, and to_localhost ACL definitions are now built-in.
# acl localhost src 127.0.0.1/32
acl allsrc src all
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 3128 3127 1025-65535
acl sslports port 443 563

# From 3.2 further configuration cleanups have been done to make things easier and safer. The manager, localhost, and to_localhost ACL definitions are now built-in.
#acl manager proto cache_object

acl purge method PURGE
acl connect method CONNECT

# Define protocols used for redirects
acl HTTP proto HTTP
acl HTTPS proto HTTPS
http_access allow manager localhost

http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports

# Always allow localhost connections
# From 3.2 further configuration cleanups have been done to make things easier and safer.
# The manager, localhost, and to_localhost ACL definitions are now built-in.
# http_access allow localhost

request_body_max_size 0 KB
delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_initial_bucket_level 100
delay_access 1 allow allsrc

# Reverse Proxy settings


# Custom options before auth


# Setup allowed acls
# Allow local network(s) on interface(s)
http_access allow localnet
# Default block all to be sure
http_access deny allsrc

關閉廣告
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!