Solved how to test the shadowsocks work normal in freebsd14.2 ?

dear all:
i have build shadowsocks ssserver-rust service in vps , and running shadowsocks sslocal-rust service in homepc. the double service work normal. when i use below command to test this proxy. no work.
Code:
curl -vvv --proxy localhost:1080 http://bing.com/
curl -vvv --proxy localhost:1080 http://bing.com
09:03:59.427769 [0-x] == Info: [READ] client_reset, clear readers
09:03:59.427942 [0-0] == Info: Host localhost:1080 was resolved.
09:03:59.428023 [0-0] == Info: IPv6: ::1
09:03:59.428064 [0-0] == Info: IPv4: 127.0.0.1
09:03:59.428109 [0-0] == Info: [SETUP] added
09:03:59.428187 [0-0] == Info:   Trying [::1]:1080...
09:03:59.428387 [0-0] == Info: connect to ::1 port 1080 from ::1 port 12387 failed: Connection refused
09:03:59.428502 [0-0] == Info:   Trying 127.0.0.1:1080...
09:03:59.428631 [0-0] == Info: Connected to localhost (127.0.0.1) port 1080
09:03:59.428704 [0-0] == Info: using HTTP/1.x
09:03:59.428787 [0-0] => Send header, 117 bytes (0x75)
0000: GET [URL]http://bing.com/[/URL] HTTP/1.1
001f: Host: bing.com
002f: User-Agent: curl/8.11.1
0048: Accept: */*
0055: Proxy-Connection: Keep-Alive
0073: 
09:03:59.429004 [0-0] == Info: Request completely sent off
09:03:59.609388 [0-0] <= Recv header, 32 bytes (0x20)
0000: HTTP/1.1 301 Moved Permanently
09:03:59.609495 [0-0] == Info: [WRITE] cw_out, wrote 32 header bytes -> 32
09:03:59.609582 [0-0] == Info: [WRITE] download_write header(type=c, blen=32) -> 0
09:03:59.609663 [0-0] == Info: [WRITE] client_write(type=c, len=32) -> 0
09:03:59.609745 [0-0] <= Recv header, 31 bytes (0x1f)
0000: Location: [URL]http://cn.bing.com/[/URL]
09:03:59.609835 [0-0] == Info: [WRITE] header_collect pushed(type=1, len=31) -> 0
09:03:59.609918 [0-0] == Info: [WRITE] cw_out, wrote 31 header bytes -> 31
09:03:59.610000 [0-0] == Info: [WRITE] download_write header(type=4, blen=31) -> 0
09:03:59.610093 [0-0] == Info: [WRITE] client_write(type=4, len=31) -> 0
09:03:59.610166 [0-0] <= Recv header, 104 bytes (0x68)
0000: X-MSEdge-Ref: Ref A: 7EE822D4B30F41FCADF4E8132D5EF567 Ref B: SIN
0040: 30EDGE0507 Ref C: 2025-02-11T01:01:48Z
09:03:59.610386 [0-0] == Info: [WRITE] header_collect pushed(type=1, len=104) -> 0
09:03:59.610481 [0-0] == Info: [WRITE] cw_out, wrote 104 header bytes -> 104
09:03:59.610559 [0-0] == Info: [WRITE] download_write header(type=4, blen=104) -> 0
09:03:59.610655 [0-0] == Info: [WRITE] client_write(type=4, len=104) -> 0
09:03:59.610737 [0-0] <= Recv header, 37 bytes (0x25)
0000: Date: Tue, 11 Feb 2025 01:01:48 GMT
09:03:59.610844 [0-0] == Info: [WRITE] header_collect pushed(type=1, len=37) -> 0
09:03:59.610935 [0-0] == Info: [WRITE] cw_out, wrote 37 header bytes -> 37
09:03:59.611014 [0-0] == Info: [WRITE] download_write header(type=4, blen=37) -> 0
09:03:59.611097 [0-0] == Info: [WRITE] client_write(type=4, len=37) -> 0
09:03:59.611176 [0-0] <= Recv header, 19 bytes (0x13)
0000: Content-Length: 0
09:03:59.611270 [0-0] == Info: [WRITE] header_collect pushed(type=1, len=19) -> 0
09:03:59.611351 [0-0] == Info: [WRITE] cw_out, wrote 19 header bytes -> 19
09:03:59.611425 [0-0] == Info: [WRITE] download_write header(type=4, blen=19) -> 0
09:03:59.611511 [0-0] == Info: [WRITE] client_write(type=4, len=19) -> 0
09:03:59.611585 [0-0] <= Recv header, 2 bytes (0x2)
0000: 
09:03:59.611653 [0-0] == Info: [WRITE] header_collect pushed(type=1, len=2) -> 0
09:03:59.611744 [0-0] == Info: [WRITE] cw_out, wrote 2 header bytes -> 2
09:03:59.611826 [0-0] == Info: [WRITE] download_write header(type=4, blen=2) -> 0
09:03:59.611930 [0-0] == Info: [WRITE] client_write(type=4, len=2) -> 0
09:03:59.612009 [0-0] == Info: [WRITE] xfer_write_resp(len=225, eos=0) -> 0
09:03:59.612094 [0-0] == Info: [WRITE] cw-out is notpaused
09:03:59.612171 [0-0] == Info: [WRITE] cw-out done
09:03:59.612221 [0-0] == Info: [READ] client_reset, clear readers
09:03:59.612297 [0-0] == Info: Connection #0 to host localhost left intact
game@notepad:~ $
looks like the proxy was not work. how to sure the sslocal connected with ssserver ? thanks.
 
DEar all:
problems was solve by myself. sslocal service will use lo interface to create network port .so your firewall must be done with below line in pf.conf
#options -------------------------------------------------
set skip on lo


we can use command curl -I --proxy localhost:1080 http://bing.com/ to test . thanks.
 
Back
Top