Skip to content

[Linux] Proxy 서버 설정하기

조회 수 17098 추천 수 0 2014.06.17 06:55:44

서버중 외부로 나가는 트래픽이 막혀있는 서버가 있다면 프록시를 통해 외부로 나가는 요청을 할수가 있습니다.

 

 

1. 로그인 세션 동안만 유지되는 방법


텔넷이나 ssh에 로그인 되어있는동안만 프록시를 사용하고 있다면 다음과 같이 사용하면 됩니다.

 


# 프록시 서버 설정
export http_proxy=http://www.yourproxyserver.com:port
export https_proxy=http://www.yourproxyserver.com:port
#프록시서버 해제
unset http_proxy
unset https_proxy
 

 

2. 로그인 세션이 종료된 후에도 프록시를 유지시키는 방법

 

 


 
여기서는 .bashrc에 작업했지만 .profile, .bash_profile, .bashrc_profile 어디에 설정해도 동일합니다.
vi ~/.bashrc
 
아래내용 추가
export http_proxy=http://www.yourproxyserver.com:port
export https_proxy=http://www.yourproxyserver.com:port
저장후
 
source ~/.bashrc
 


이후 wget이나 curl로 외부로 요청이 되었을때 데이터를 제대로 가져오면 프록시 설정이 제대로 된것입니다.

 

 
wget www.daum.net
혹은
curl -0 www.daum.net
 

profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/327922/ad6/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수

CentOS 6.5 에서 VirtualBox 4.3 설치후 VirtualBox 구동...

VirtualBox 4.3 Released – Install on RHEL/CentOS/Fedor...

ctime, mtime, atime 다른 점 설명

ZFS 파일에 ACL 설정

ll 명령시 날짜 전체가 보이도록 하기

ModSecurity 로그파일의 사이즈가 너무 큰데 이를 날짜나 ... file

top 화면 내용중 load average와 PRI : priority(우선순위...

hddtemp와 mrtg를 이용한 하드디스크 온도 체크 file

tar 압축을 실수로 디렉토리 생성 안하고 풀었을때 대처법

windows smartctl

HDD Guardian (a graphical user interface for smartctl)

리눅스 벤치마크 프로그램 목록

Adaptec 컨트롤러 StorMan 에러 및 각종 확인 방법

linux 커널 파라메터 수정

특정 데몬의 메모리 점유율 확인하기

make 정리

What are the bandwidth requirements for running a BigB...

스트리밍 서비스 위한 각 회사 와우자,어도비,마이크로 ...

파일비교 명령어 diff 사용법

웹서버 트래픽 시각화 logstalgia

  • l2zeo
  • 2013-05-03
  • 조회 수 6090

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234