[ ¸®´ª½º - SQUID ] client°¡ ftp/http/https¸¦ ¿¬°áÇϱâ À§ÇÏ¿© squidÀÇ default tcp/3128 Æ÷Æ® 1°³¸¦ º¸´Â °ÍÀÌ ¸ÂÀ»·±Áö¿ä ?

   Á¶È¸ 1922   Ãßõ 0    

SQUID를 사용하여 Forward Proxy를 사용시에,

Client ------------> Proxy(SQUID) 연결되는 구조에서, SUQID가 listen 하는 포트는 1개(default 3128)만 열만 되더라구요

1\  Client 입장에서는 ftp/http/https가 보는 IP/Port가 모두 동일해 지는거 같은데 이런 이해가 맞는 것 일런지요 ?
2\ 1번이 맞다면, SQUID에서 본인이 받은 3128 port 로 수신한 프로토콜을 ftp/http/https를 패킷을 까서 안의 내용에 따라서 적절하게 인터넷 해당 서버로 다시 연결하는 건지요 ?

이렇다면, squid가 Deep Packet Inspection(DPI) 기능을 일부 하는 거 같아서요 

아시는 분의 한수 가름침 부탁 드려 봅니다.


#### CLIENT@

# profile
export proxy_socket=http://172.31.11.133:3128/
export ftp_proxy=$proxy_socket
export http_proxy=$proxy_socket
export https_ proxy=$proxy_socket



#### SERVER@

#> more /etc/squid/squid.conf

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8    # RFC1918 possible internal network
acl localnet src 172.16.0.0/12    # RFC1918 possible internal network
....


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


# Recommended minimum Access Permission configuration:
#
# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost


# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128


감사합니다.


ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.


QnA
Á¦¸ñPage 285/5686
2015-12   1513833   ¹é¸Þ°¡
2014-05   4977694   Á¤ÀºÁØ1
2019-12   4158   ÀÌÇö±æ
2022-11   2655   ¿À»óÈÆ
2016-07   3953   °øµ¹ÀÌ¿¡¿ä
2018-10   3515   Àü¼³¼ÓÀǹ̡¦
2011-11   6635   ÀÌÁöÆ÷Åä
2014-02   5178   °¡ºü·Î±¸³ª
2015-06   4698   Àü¼³¼ÓÀǹ̡¦
2018-10   5305   À̶ó´Þ
2014-02   10478   ³ª¿ì¸¶Å©
2011-12   5976   ¿¹°ü½Å±Ô½Ä
07-05   1699   ¹Ú
2011-12   8888   ÇÑŵ¿
2014-03   4095   À©µµ¿ì10
2015-07   3550   ±è°Ç¿ì
2021-03   4716   ÇູÇϼ¼
2022-11   2298   ¿ÀŸ½Å°ø
2012-01   6005   ¹Ì¼ÒÂï»ç
2015-07   3516   Àü¼³¼ÓÀǹ̡¦
2012-01   5695   Á¤»ó¹é
2022-12   1893   Uinx