[ SlackList ] [ WkikiSlack ]



Jak postawic tego DSLa? ....albo ja jestem taki debil...albo....

From: Tomasz Krawczyk <computers@o2.pl>
Date: Sat Jun 07 2003 - 00:08:52 CEST
[slacklist] Jak postawic tego DSLa? ....albo ja jestem taki = </HEAD> <BODY> <!-- Converted from text/plain format --> <P><FONT SIZE=2>Witam i przepraszam z gory za lamerstwo.</FONT> </P> <P><FONT SIZE=2>A wiec mam zainstalowane slacka 9.0 i wpisany skrypt = nadeslany przez Luko do</FONT> <BR><FONT SIZE=2>pliku rc.inet1:</FONT> </P> <P><FONT SIZE=2># rc.inet</FONT> <BR><FONT SIZE=2>#! /bin/sh</FONT> </P> <P><FONT SIZE=2>#Tutaj niec nie zmieniaj to poprostu musi tak byc = :D</FONT> <BR><FONT SIZE=2>echo "Set up the loopback interface"</FONT> <BR><FONT SIZE=2>/sbin/ifconfig lo 127.0.0.1</FONT> <BR><FONT SIZE=2>/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 = lo</FONT> </P> <P><FONT SIZE=2>#Interfejs podpiety do routerka i kolejno ip abonenta = (czyli to Twoje) i</FONT> <BR><FONT SIZE=2>maska to jest akuratnio dla dslka 512 jak masz 1Mbit = to sobie sprawdz jaka</FONT> <BR><FONT SIZE=2>jest maska</FONT> <BR><FONT SIZE=2>echo "Set up the eth0 interface"</FONT> <BR><FONT SIZE=2>/sbin/ifconfig eth0 80.55.134.102 netmask = 255.255.255.252 # u mnie jest to</FONT> <BR><FONT SIZE=2>80.55.87.106 (adres ip abonenta)</FONT> </P> <P><FONT SIZE=2>#Interfejs na siec jak chesz to sobie zmien ip jak = masz w sieci komy z puli</FONT> <BR><FONT SIZE=2>innej jak 192.168.1.x</FONT> <BR><FONT SIZE=2>echo "Set up the eth1 interface"</FONT> <BR><FONT SIZE=2>/sbin/ifconfig eth1 192.168.1.1 netmask = 255.255.255.0</FONT> </P> <P><FONT SIZE=2># I to zalatwia zebys mial neta na serwerku zmien ip = na swoje :) tzn na</FONT> <BR><FONT SIZE=2>adres ip swojego routera to takie czarne co dostales = od tpsy:D</FONT> <BR><FONT SIZE=2>echo "Set up the gateway interface"</FONT> <BR><FONT SIZE=2>/sbin/route add default gw 80.55.134.101 metric 1 # w = moim przypadku jest to</FONT> <BR><FONT SIZE=2>80.55.87.105 czyli adres modmu dsl</FONT> </P> <P><FONT SIZE=2>#EOF</FONT> </P> <BR> <P><FONT SIZE=2>nastepnie utworzylem plik wykonywalny rc.masq, do = ktorego wrzucilem skrypt</FONT> <BR><FONT SIZE=2>Luko:</FONT> </P> <P><FONT SIZE=2>#maskarada</FONT> <BR><FONT SIZE=2>#!/bin/sh</FONT> </P> <P><FONT SIZE=2>/usr/sbin/iptables -F -t nat</FONT> <BR><FONT SIZE=2>/usr/sbin/iptables -X -t nat</FONT> <BR><FONT SIZE=2>/usr/sbin/iptables -F -t filter</FONT> <BR><FONT SIZE=2>/usr/sbin/iptables -X -t filter</FONT> </P> <P><FONT SIZE=2>echo "1" > = /proc/sys/net/ipv4/ip_forward</FONT> </P> <P><FONT SIZE=2>iptables -t nat -A POSTROUTING -o eth0 -j SNAT -s = 192.168.1.0/24 -d</FONT> <BR><FONT SIZE=2>0/0 --to 80.55.134.102 # u mnie 80.55.87.106(adres ip = abonenta)</FONT> </P> <P><FONT SIZE=2>#EOF</FONT> </P> <P><FONT SIZE=2>oraz dodalem w pliku rc.local nastepujace = wpisy:</FONT> </P> <P><FONT SIZE=2>#DHCP</FONT> <BR><FONT SIZE=2>if [ -x /usr/sbin/dhcpd ]; then</FONT> <BR><FONT SIZE=2>echo" Starting DHCP Server"</FONT> <BR><FONT SIZE=2>dhcpd eth1;</FONT> <BR><FONT SIZE=2>fi</FONT> </P> <P><FONT SIZE=2>#MASQUERADE</FONT> <BR><FONT SIZE=2>echo 1 > /proc/sys/net/ipv4/ip_dynaddr</FONT> <BR><FONT SIZE=2>echo 1 > /proc/sys/net/ipv4/ip_forward</FONT> </P> <P><FONT SIZE=2>iptables -t nat -A POSTROUTING -o eth0 -j = MASQUERADE</FONT> </P> <BR> <BR> <P><FONT SIZE=2>Na koniec ustawienia pliku dhcpd.conf :</FONT> </P> <P><FONT SIZE=2>ddns-update-style ad-hoc;</FONT> <BR><FONT SIZE=2>option domain-name-servers 194.204.159.1, = 194.204.152.34;</FONT> <BR><FONT SIZE=2>option domain-name "internetdsl.pl";</FONT> <BR><FONT SIZE=2>default-lease-time 18000;</FONT> <BR><FONT SIZE=2>max-lease-time 36000;</FONT> </P> <P><FONT SIZE=2>#A# Koniec parametrów globalnych</FONT> </P> <P><FONT SIZE=2>#A# Komputery konfigurowane dynamicznie</FONT> </P> <P><FONT SIZE=2>subnet 192.168.1.0 netmask 255.255.255.0</FONT> <BR><FONT SIZE=2>{</FONT> <BR><FONT SIZE=2>  range 192.168.1.150 192.168.1.199;</FONT> <BR><FONT SIZE=2>  authoritative;</FONT> <BR><FONT SIZE=2>  option routers 192.168.1.1;</FONT> <BR><FONT SIZE=2>  option subnet-mask 255.255.255.0;</FONT> <BR><FONT SIZE=2>  option broadcast-address 192.168.1.255;</FONT> <BR><FONT SIZE=2>}</FONT> </P> <P><FONT SIZE=2>#A# Komputery, którym przydzielamy zawsze ten sam = adres IP</FONT> <BR><FONT SIZE=2>i tutaj nazwy komputerow</FONT> </P> <BR> <P><FONT SIZE=2>na koniec jeszcze ustawienia</FONT> <BR><FONT SIZE=2>ifconfig eth0 80.55.87.106 netmask 255.255.255.252 = broadcast 80.255.255.255</FONT> <BR><FONT SIZE=2>ifconfig eth1 192.168.1.1 netmask 255.255.255.0 = broadcast 192.168.1.255</FONT> <BR><FONT SIZE=2>.....</FONT> </P> <P><FONT SIZE=2>to sa konfigi i pomimo tego ze powinno nadal nie chce = <BR><FONT SIZE=2>mowiac nie mam pojecia gdzie jest blad :(</FONT> </P> <P><FONT SIZE=2>zastanawiam sie rowniez po co na tym formularzu sa = login i haslo ??</FONT> </P> <P><FONT SIZE=2>bede wdzieczny za kazda pomoc.</FONT> </P> <P><FONT SIZE=2>pozro for all</FONT> </P> <P><FONT SIZE=2>tomo</FONT> </P> <P><FONT SIZE=2>mail: computers@o2.pl</FONT> <BR><FONT SIZE=2>gg: 2401222</FONT> </P> <BR> </BODY> <span id="received"><dfn>Received on</dfn> Sat Feb 21 03:42:25 2004 </span> </div> <!-- body="end" --> <div class="foot"> <map id="navbarfoot" name="navbarfoot" title="Related messages"> <ul class="links"> <li><dfn>This message</dfn>: [ <a href="#start">Message body</a> ]</li> <!-- lnext="start" --> <li><dfn>Next message</dfn>: <a href="5658.html" title="Next message in the list">Luko: "Re: komunikaty przy starcie slacka"</a></li> <li><dfn>Previous message</dfn>: <a href="5656.html" title="Previous message in the list">Luko: "Re: Jak postawic tego DSLa? ....albo ja jestem taki debil...albo...."</a></li> <!-- lnextthread="start" --> <!-- lreply="end" --> </ul> <ul class="links"> <li><a name="options2" id="options2"></a><dfn>Contemporary messages sorted</dfn>: [ <a href="date.html#5657" title="Contemporary messages by date">By Date</a> ] [ <a href="index.html#5657" title="Contemporary discussion threads">By Thread</a> ] [ <a href="subject.html#5657" title="Contemporary messages by subject">By Subject</a> ] [ <a href="author.html#5657" title="Contemporary messages by author">By Author</a> ] [ <a href="attachment.html" title="Contemporary messages by attachment">By messages with attachments</a> ]</li> </ul> </map> </div> <!-- trailer="footer" --> <small><small> <em>This archive was generated by <a href="http://www.hypermail.org/">hypermail 2.1.8</a>. </em></small></small> <a href="http://shackleton2014.pl">Wyprawa Shackleton 2014</a></body> </html>