아...머리가 터질것 같습니다. 도와 주십시오.

ghostcastle의 이미지

몇 달간 국내외의 모든 포털 사이트를 뒤졌지만, 끝내 해결되지 않아 마지막 희망이라 생각하고 이 곳에 도움을 요청합니다.
현재 Centos5.5로 pptp 방식의 vpn 서버를 구축하여 사용중입니다.
서버 eth0 의 ip는 1.1.1.10 , gateway 1.1.1.1 이라고 가정하고, 랜카드가 하나 밖에 없는 상황에,
추가로 eth0:1 을 만들어 ip 1.1.2.10 , gateway 1.1.2.1 를 할당해서 사용중입니다.
pptpd.conf 의 설정은, localip 1.1.1.10 remoteip 1.1.1.11-20,1.1.2.11-20 이렇게 두 대역으로 설정했습니다.
ppp/chap-secrets 은 각각의 두 대역의 ip를 자동으로 할당받기 위해, aaa pptpd 1111 * , bbb pptpd 2222 * 로 설정 했습니다.
설정을 마치고, 윈도우 client에서 aaa 로 접속을 하니, 1.1.1.11 로 ip를 받아왔습니다.
그런데, 접속자를 바꿔, bbb로 접속을 하니, 1.1.1.12 로 ip가 할당되어 버리더군요.
제가 원했던건, bbb의 경우, 두 번째 할당 대역인, 1.1.2.11 가 되어야 했는데 말입니다.

혹시나 해서, 방화벽과 iptable 을 아래와 같이 설정도 해봤습니다.
ifconfig eth0 1.1.1.10 up
ifconfig eth0:1 1.1.2.10 up
iptables -t nat -A POSTROUTING -s 1.1.1.0/26 -o eth0 -j SNAT --to 1.1.1.10
iptables -t nat -A POSTROUTING -s 1.1.2.0/26 -o eth0 -j SNAT --to 1.1.2.10
결과는 마찬가지였습니다.

그래서 다시, 아래의 방법으로 해봤습니다.
iptables -t mangle -A PREROUTING -s 1.1.1.0/26 -j MARK --set-mark 0xa
ip rule add prio 1 fwmark 0xa table 0xa
ip r replace table 0xa default via 1.1.1.1 dev eth0
iptables -t mangle -A PREROUTING -s 1.1.2.0/26 -j MARK --set-mark 0xb
ip rule add prio 1 fwmark 0xb table 0xb
ip r replace table 0xb default via 1.1.2.1 dev eth0:1
이 마저도 처음과 같은 결론이었습니다.

아... 도저히 모르겠습니다. 어떻게 하면, 제가 지정한 두 번째 bbb의 ID로 두 번째 대역의 ip를 순차적으로 받을 수 있을까요... 이것 때문에 머리가 터질것 같습니다.
꼭좀 도와주십시오.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.