<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Huha ez igy veszelyes lesz. Mivel nem te vagy az igazi nevszerver, a
zona valtozasokat nem fogod kovetni. Ha pedig te vagy a nevszervere a
domainnek akkor felrepublikalod a vilagot es kivulrol nem lesz elerheto.<br>
<br>
En nem tennem ezt.<br>
<br>
Andras<br>
<br>
<br>
<blockquote
 cite="mid:AANLkTinE5GLik6M-oBQ4eOLI2luSQM_4vHb66rwy-hVn@mail.gmail.com"
 type="cite">Már egyszer ezt kérdeztem, csak felejtettem. A megoldás
saját névszerver működtetése (named).<br>
  <br>
Kb így:<br>
  <br>
echo 'nameserver 172.20.0.1\<br>
search <a moz-do-not-send="true" href="http://stageline.hu">stageline.hu</a>'
>
/etc/resolv.conf<br>
  <br>
touch /var/log/named.log<br>
chown -R bind:bind /var/log/named.log<br>
  <br>
ee /etc/namedb/named.conf<br>
  <blockquote>logging<br>
{<br>
    <div style="margin-left: 40px;">channel log_file<br>
{<br>
    </div>
    <div style="margin-left: 40px;">
    <div style="margin-left: 40px;">file "/var/log/named.log" size 10M;<br>
severity info;<br>
    </div>
    </div>
    <div style="margin-left: 40px;">};<br>
category queries { log_file; };<br>
category xfer-in { log_file; };<br>
category xfer-out { log_file; };<br>
category default { log_file; };<br>
    </div>
};<br>
options<br>
{<br>
    <div style="margin-left: 40px;">directory "/etc/namedb";<br>
    </div>
    <div style="margin-left: 40px;">listen-on<br>
{<br>
    </div>
    <div style="margin-left: 80px;">any;<br>
    </div>
    <div style="margin-left: 40px;">};<br>
allow-query<br>
{<br>
    </div>
    <div style="margin-left: 80px;">any;<br>
    </div>
    <div style="margin-left: 40px;">};<br>
    </div>
}<br>
zone "<a moz-do-not-send="true" href="http://stageline.hu">stageline.hu</a>"<br>
{<br>
    <div style="margin-left: 40px;">type master;<br>
    </div>
    <div style="margin-left: 40px;">file "master/<a
 moz-do-not-send="true" href="http://stageline.hu">stageline.hu</a>";<br>
    </div>
};<br>
  </blockquote>
ee /etc/namedb/master/<a moz-do-not-send="true"
 href="http://stageline.hu">stageline.hu</a><br>
  <blockquote><a moz-do-not-send="true" href="http://stageline.hu">stageline.hu</a>.
IN     
SOA    
    <a moz-do-not-send="true" href="http://ns1.stageline.hu">ns1.stageline.hu</a>.

    <a moz-do-not-send="true" href="http://postmaster.stageline.hu">postmaster.stageline.hu</a>.
(<br>
                              2003080800 ; se = serial number<br>
                              3h         ; ref = refresh<br>
                              15m        ; ret = update retry<br>
                              3w         ; ex = expiry<br>
                              3h      ; min = minimum<br>
)<br>
              IN      NS      <a moz-do-not-send="true"
 href="http://ns1.stageline.hu">ns1.stageline.hu</a>.<br>
              IN      NS      <a moz-do-not-send="true"
 href="http://ns2.stageline.hu">ns2.stageline.hu</a>.<br>
              IN      MX  10  <a moz-do-not-send="true"
 href="http://mail.stageline.hu">mail.stageline.hu</a>.<br>
ns1           IN      A       127.0.0.1<br>
ns2           IN      A       127.0.0.1<br>
mail          IN      A       172.20.0.3</blockquote>
/usr/local/etc/rc.d/named start<br>
  <br>
Köszi<br>
  <br>
  <div class="gmail_quote">2010. június 7. 0:29 Illó Gábor írta, <span
 dir="ltr"><<a moz-do-not-send="true"
 href="mailto:stageline@gmail.com">stageline@gmail.com</a>></span>:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ez
érdekes,
továbbra
is eldobálja, pedig már rá tudok nyitni lásd lentebb,
    <div><br>
    </div>
    <div>
    <div>Jun  6 22:25:50 www sendmail[11540]: o56MPopX011540:
Authentication-Warning: <a moz-do-not-send="true"
 href="http://www.stageline.hu" target="_blank">www.stageline.hu</a>:
www set sender to ***@<a moz-do-not-send="true"
 href="http://mouseoleum.hu" target="_blank">mouseoleum.hu</a> using -f</div>
    <div><br>
    </div>
    <div>Jun  6 22:25:50 www sendmail[11540]: o56MPopX011540: from=****@<a
 moz-do-not-send="true" href="http://mouseoleum.hu" target="_blank">mouseoleum.hu</a>,
size=1096,
class=0,
nrcpts=1, msgid=<<a moz-do-not-send="true"
 href="mailto:201006062225.o56MPopX011540@www.stageline.hu"
 target="_blank">201006062225.o56MPopX011540@www.stageline.hu</a>>,
relay=www@localhost</div>
    <div><br>
    </div>
    <div>Jun  6 22:25:50 www sm-mta[11541]: o56MPo46011541:
from=<****@<a moz-do-not-send="true" href="http://mouseoleum.hu"
 target="_blank">mouseoleum.hu</a>>, size=1444, class=0, nrcpts=1,
msgid=<<a moz-do-not-send="true"
 href="mailto:201006062225.o56MPopX011540@www.stageline.hu"
 target="_blank">201006062225.o56MPopX011540@www.stageline.hu</a>>,
proto=ESMTP, daemon=IPv4, relay=wwwserver [172.20.0.1]</div>
    <div><br>
    </div>
    <div>Jun  6 22:25:50 www sendmail[11540]: o56MPopX011540: to=****@<a
 moz-do-not-send="true" href="http://stageline.hu" target="_blank">stageline.hu</a>,
ctladdr=****@<a moz-do-not-send="true" href="http://mouseoleum.hu"
 target="_blank">mouseoleum.hu</a> (80/80), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=31096, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (o56MPo46011541 Message accepted for
delivery)</div>
    <div><br>
    </div>
    <div>Jun  6 22:25:50 www sm-mta[11543]: o56MPo46011541: to=<****@<a
 moz-do-not-send="true" href="http://stageline.hu" target="_blank">stageline.hu</a>>,
delay=00:00:00,
xdelay=00:00:00,
mailer=esmtp, pri=31444, relay=<a moz-do-not-send="true"
 href="http://mail.stageline.hu" target="_blank">mail.stageline.hu</a>.
[195.228.156.104],
dsn=4.0.0, stat=Deferred: Connection refused by <a
 moz-do-not-send="true" href="http://mail.stageline.hu" target="_blank">mail.stageline.hu</a>.</div>
    <div><br>
    </div>
    <div>
    <div class="im">
    <div>www# telnet <a moz-do-not-send="true"
 href="http://mail.stageline.hu" target="_blank">mail.stageline.hu</a>
25</div>
    </div>
    <div class="im">
    <div>Trying 172.20.0.3...</div>
    </div>
    <div>Connected to mailserver.</div>
    <div class="im">
    <div>Escape character is '^]'.</div>
    <div>220 <a moz-do-not-send="true" href="http://mail.stageline.hu"
 target="_blank">mail.stageline.hu</a> ESMTP Postfix</div>
    </div>
    <div>ehlo localhost</div>
    <div><a moz-do-not-send="true" href="http://250-mail.stageline.hu"
 target="_blank">250-mail.stageline.hu</a></div>
    <div>250-PIPELINING</div>
    <div>250-SIZE 10240000</div>
    <div>250-VRFY</div>
    <div>250-ETRN</div>
    <div>250-STARTTLS</div>
    <div>250-ENHANCEDSTATUSCODES</div>
    <div>250-8BITMIME</div>
    <div>250 DSN</div>
    <div class="im">
    <div>QUIT</div>
    <div>221 2.0.0 Bye</div>
    <div>Connection closed by foreign host.</div>
    </div>
    </div>
    <br>
    <div class="gmail_quote">
    <div class="im">2010/6/6 Andras POTOCZKY <span dir="ltr"><<a
 moz-do-not-send="true" href="mailto:andras-ml@wertz.hu" target="_blank">andras-ml@wertz.hu</a>></span><br>
    </div>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div bgcolor="#ffffff" text="#000000">hi,
      <div>
      <div class="h5"><br>
      <br>
pf-hez nem ertek, de ipfilterben lehet olyat is megadni, hogy interface
nelkul mindenfele 25-os port forgalmat atiranyitom a megfelelo helyre.
Ezzel a problema igy kivedheto.<br>
Ha a pf nem tud ilyet (nem hinnem hogy nem tud), akkor is megteheted
azt hogy a hosts fajlba felveszed magadnak a belso ip cimed a <a
 moz-do-not-send="true" href="http://mail.stageline.hu" target="_blank">mail.stageline.hu</a>
nevhez.<br>
Szerintem nincs jelentosege a problemanak, inkabb csak kenyelmi
funckio, hogy konzolbol ssh-val ra tudj telnetelni.<br>
      <br>
Tapasztaltal egyeb gyakorlati hibat is?<br>
      <br>
      <br>
Andras<br>
      <br>
      <br>
      <blockquote type="cite">
        <div>
        <div>Üdv.
        <div><br>
        </div>
        <div>ezjail-t használok, minden szolgáltatásnak külön, mysql,
www,
mail stb..</div>
        <div><br>
        </div>
        <div>Amikor a www jailből igyekszem kapcsolódni a szintén
jailben
futó mail szerverre akkor ez történik</div>
        <div><br>
        </div>
        <div>
        <div>www# telnet <a moz-do-not-send="true"
 href="http://mail.stageline.hu" target="_blank">mail.stageline.hu</a>
25</div>
        <div>Trying 195.228.156.104...</div>
        <div>telnet: connect to address <a moz-do-not-send="true"
 href="http://195.228.156.104" target="_blank">195.228.156.104</a>:
Connection refused</div>
        <div>telnet: Unable to connect to remote host</div>
        <div><br>
        </div>
        <div>Viszont ha a "belső" ip címet írom, akkor jó</div>
        <div><br>
        </div>
        <div>www# telnet 172.20.0.3 25</div>
        <div>Trying 172.20.0.3...</div>
        <div>Connected to 172.20.0.3.</div>
        <div>Escape character is '^]'.</div>
        <div>220 <a moz-do-not-send="true"
 href="http://mail.stageline.hu" target="_blank">mail.stageline.hu</a>
ESMTP Postfix</div>
        <div>QUIT</div>
        <div>221 2.0.0 Bye</div>
        <div>Connection closed by foreign host.</div>
        <div><br>
        </div>
        </div>
        <div>A tűzfal erre vonatkozó része a jaileket futtató "fő"
rendszeren:</div>
        <div><br>
        </div>
        <div>int_if="em0"</div>
        <div><br>
        </div>
        <div>
        <div>rdr pass on $int_if proto tcp from any to any port 25
->
$mailserver</div>
        <div>rdr pass on $int_if proto tcp from any to any port 465
->
$mailserver</div>
        </div>
        <div><br>
        </div>
        <div>Van erre valakinek ötlete, hogy ez mitől van?</div>
        <div><br>
-- <br>
Best Regards<br>
Gábor Illó<br>
        </div>
        </div>
        </div>
        <pre><fieldset></fieldset>
_______________________________________________
BSD levlista
<a moz-do-not-send="true" href="mailto:BSD@hu.freebsd.org"
 target="_blank">BSD@hu.freebsd.org</a>
<a moz-do-not-send="true"
 href="https://lists.hu.freebsd.org/mailman/listinfo/bsd"
 target="_blank">https://lists.hu.freebsd.org/mailman/listinfo/bsd</a></pre>
      </blockquote>
      <br>
      </div>
      </div>
      </div>
      <div>
      <div class="h5"><br>
_______________________________________________<br>
BSD levlista<br>
      <a moz-do-not-send="true" href="mailto:BSD@hu.freebsd.org"
 target="_blank">BSD@hu.freebsd.org</a><br>
      <a moz-do-not-send="true"
 href="https://lists.hu.freebsd.org/mailman/listinfo/bsd"
 target="_blank">https://lists.hu.freebsd.org/mailman/listinfo/bsd</a><br>
      </div>
      </div>
    </blockquote>
    </div>
    <br>
    <br clear="all">
    <br>
-- <br>
Best Regards<br>
Gábor Illó<br>
    </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Best Regards<br>
Gábor Illó<br>
  <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
BSD levlista
<a class="moz-txt-link-abbreviated" href="mailto:BSD@hu.freebsd.org">BSD@hu.freebsd.org</a>
<a class="moz-txt-link-freetext"
 href="https://lists.hu.freebsd.org/mailman/listinfo/bsd">https://lists.hu.freebsd.org/mailman/listinfo/bsd</a></pre>
</blockquote>
<br>
</body>
</html>