[질문]프록시서버를 이용한 리얼웹서버에서의 로그저장

ksy0913의 이미지

안녕하세요 궁금한것 있어서 질문합니다.

리눅스에서 아파치 mod_proxy를 이용해서 홈페이지를 리얼웹서버로 포워딩 시키는

구현을 하고 있습니다.

clint pc ----> proxy server ---> real webserver

프록시서버 : 리눅스
리얼서버 : 윈도우서버

여기서 궁금한것은 기본 설정 구현후 리얼 웹서버에서 웹로그들을 보면 프록시 서버
의 아

이피가 찍힙니다..

근데 리얼서버에서 클라이언트 pc아이피를 저장하고 싶은데 proxy server 에서 어떤

설정을 해줘야 하나요? 아님 리얼서버에서 뭔가 설정해줘야 하나요

mithrandir의 이미지

프록시는 중간에서 대신 연결을 받아서 직접 연결을 하게 되니까 원하시는건 힘들 것 같습니다.

프록시와 웹서버를 수정하셔서 아이피를 넘겨주는 기능을 만드시거나, 프록시 대신 pcap 같은걸로 중간에서 감시만 하시는게 나을 것 같습니다...마는, 많은 웹앱들이 프록시를 이용해서 서비스 하니 뭔가 다른 방법이 있을 것 같기도 하네요. 좋은 답은 다음분께서
.
.

언제나 삽질 - http://tisphie.net/typo/
프로그래밍 언어 개발 - http://langdev.net

언제나 삽질 - http://tisphie.net/typo/
프로그래밍 언어 개발 - http://langdev.net

woonuk의 이미지

ksy0913의 이미지

안녕하세요 mod_rpaf는 리얼서버가 리눅스 일경우 해당 모듈 올려서 하는것 같은데요

전 리얼서버가 윈도우서버라서..

윈도우 서버에서는 어덯게 해야 하나요?

monovision의 이미지

iis 용 isapi filter 모듈이 존재합니다.
검색해 보시면 많이 나옵니다.
X-forwarded-for + iis 등으로 검색하시면 될 겁니다.

김정균의 이미지

mod_rpaf 의 경우 L7 의 inline으로 구성했을 경우, citrix netscaler 같이 L7 <-> Server 간에 Keep Alive를 이용하여 web server pool을 만든 환경을 구성했을 경우 remote addr이 변경 되어야 함에도 변경되지 않는 문제가 있습니다. (말로 쓰려니 쉽지 않군요 ^^) 그래서 제가 있는 회사에서는 별도의 모듈을 하나 만들어서 사용 중입니다.

익명 사용자의 이미지

위와 같은 구성을 하게 되면 rpaf 에서 remote_addr 의 아이피를 client IP로 변경하는데

keep alive 설정에 문제가 생기진 않나요?

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.