Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Problem z konfiguracją sieci domowej - pomocy: msg#00009

linux.ubuntu.user.polish

Subject: Re: Problem z konfiguracją sieci domowej - pomocy

cześć wszystkim
tu masz fragment mojego pliku pomocniczego :), wiadomko miniesz te repozytoria i poszukaj se odpowiednich plików w swoim systemie. pod ubuntu nie musze uruchamiać maskarady, acha jescze pamiętaj w squidzie w "linji visible_hostname" koniecznie musisz dopisać nazwe swojego kompa, zamiast gedita używasz swojego edytora :))))

powodzenia


=============UBUNTU 5.10 (wwlod) 27.08.2005 ()===================
### instalacja systemu

### repozytoria, zawartość pliku /etc/apt/sources.list

deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted
deb http://pl.archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu breezy main restricted
deb http://pl.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb http://pl.archive.ubuntu.com/ubuntu breezy universe
deb-src http://pl.archive.ubuntu.com/ubuntu breezy universe
deb http://pl.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb-src http:u.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com///pl.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
deb http://security.ubuntu.com/ubuntu breezy-security universe
deb-src http://security.ubuntu.com/ubuntu breezy-security universe
# od grabarza
deb http://pl.archive.ubuntu.com/ubuntu hoary-updates main restricted multiverse universe
deb http://archive.ubuntu.com/ubuntu/ hoary universe main restricted multiverse
deb http://debian.bootsplash.de/ unstable main # Debian Bootsplash
deb http://www.janw.easynet.be/rox/ i386/ # Rox-session
# moje stare
deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted
deb http://security.ubuntubuntu hoary-security universe
deb http://security.ubuntu.com/ubuntu hoary-security main restricted multiverse universe
deb http://archive.ubuntu.com/ubuntu/ hoary universe main restricted multiverse
deb http://www.sommitrealweird.co.uk/debian/ unstable scrobbler
deb-src http://www.sommitrealweird.co.uk/debian/ unstable scrobbler
deb http://home.planet.nl/~autar022/ ./
deb-src http://home.planet.nl/~autar022/ ./
deb http://gb.archive.ubuntu.com/ubuntu/ hoary main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ hoary main restricted
deb http://gb.archive.ubuntu.com/ubuntu/ hoary-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ hoary-updates main restricted
deb http://pl.archive.ubuntu.com/ubuntu hoary main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu hoary main restricted universe multiverse
deb http://pl.archive.ubuntu.com/ubuntu hoary-updates main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu hoary-updates main restricted universe multiverse

=============== dalej =====================
ustawić rozdzielczość (1152x864x85hz) dla wygody, ustawić co tam komu wygodnie w systemie

system/administracja/ustawienia sieci odpalić eth0 (ustawić statika lub dynamika i aktywować karte) 192.168.0.1/255.255.255.0 brama 192.168.0.255
================ server dhcp ==============================
zainstaluj dhcp3-server, wyedytuj plik /etc/default/dhcp3-servwer i dopisz jedną linie z deklaracją karty sieciowej

#gedit /etc/default/dhcp3-servwer

INTERFACES="eth0" (zapisz plik)

teraz edycja pliku /etc/dhcp3/dhcpd.conf i wpisz tam poniższy fragmęt:

ddns-update-style none;
log-facility local7;
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option domain-name-servers 202.188.0.133, 202.188.1.5;
option domain-name "wwlod.net.my";
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
default-lease-time 600;
max-lease-time 7200;
}


===================== teraz squid ==========================
zainstalować przy pomocy system/administracja/synaptic menadżer pakietów: squida;
tak ma wyglądać zawartość pliku /etc/squid/squid.conf:

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 32 MB
visible_hostname nazwa_twojego_kompa
#Umiejscowienie logow squida.
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
cache_swap_log /var/log/squid/swap.log
#Ile razy rotowac logi przed usunieciem (wiecej szczegolow w FAQ)
logfile_rotate 10
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
cache_peer w3cache.tpnet.pl parent 8080 8082 no-query default
acl all src 192.168.0.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow all
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
store_avg_object_size 8 KB
acl FTP proto FTP
always_direct allow FTP
error_directory /usr/share/squid/errors/Polish
coredump_dir /var/spool/squid

======== KONIEC ======================
--
ubuntu-pl mailing list
ubuntu-pl@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-pl



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe