background image

 

UBUNTU.PL

 

Sieci

 

Software-Sieć

 Konfiguracja Ubuntu Serwer

Witaj, dedopl.
Ostatnio zalogowany: Dzisiaj o 

10:40

Prywatne Wiadomości

: nieprzeczytanych: 0, Razem 1.

Regulamin

Czytelnia

Gry

Słowa kluczowe

Zapomniałeś hasła?

Ustawienia

FAQ

Użytkownicy

Kalendarz

Nowe Posty

Szukaj 

Szybkie Menu 

Wyloguj się

Software-Sieć 

Instalacja i konfiguracja oprogramowania sieciowego.

Słowa kluczowe: 

se rve r routing

 

Narzędzia wątku 

Przeszukaj ten wątek 

Oceń Wątek 

Wygląd 

 24-07-2008, 12:49

 

   #

1

Gain_DarkSoul

 
Płeć: 
Posty: 6
System: 8.04
Środowisko: GNOME

Konfiguracja Ubuntu Serwer

W itam . O d tygodnia walcze  z se rwe re m  Ubuntu a m ianowicie  z je go k onfiguracja.
Posiadam :

-k om pute r A z 2 sie ciówk am i i zainstalowanym  Ubuntu se rve r
-k om pute r B

sche m at połącze nia sie ci je st nastę pujący:

- k om pute r A inte rfe jse m  eth0 je st podłączony do route ra k tóry idzie  na świat inte rfe js
eth1 powie nie n m i robić za bram e  dla innych k om pute rów w sie ci
- k om pute r B je st podłączony be zpośre dnio do k om pute ra A

plik i k onfiguacyjne :

/etc/network/interfaces

Kod:

Konfiguracja Ubuntu Serwer - UBUNT U.PL

http://forum.ubuntu.pl/showthread.php?t=79129

1 of 4

26.10.2008 19:20

background image

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.138.5
gateway 192.168.138.1
netmask 255.255.255.0
network 192.168.138.0
broadcast 192.168.138.255
name INTERNET

auto eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.0.0.0    
network 10.0.0.0
broadcast 10.255.255.255
name LAN

route  -n

Kod:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use If
192.168.138.0   0.0.0.0         255.255.255.0   U     0      0        0 et
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 et
0.0.0.0         192.168.138.1   0.0.0.0         UG    100    0        0 et

sysctl.conf

Kod:

Konfiguracja Ubuntu Serwer - UBUNT U.PL

http://forum.ubuntu.pl/showthread.php?t=79129

2 of 4

26.10.2008 19:20

background image

#
# /etc/sysctl.conf - Configuration file for setting system variables
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com

# the following stops low-level messages on console
kernel.printk = 4 4 1 7

# enable /proc/$pid/maps privacy so that memory relocations are not
# visible to other users.  (Added in kernel 2.6.22.)
kernel.maps_protect = 1

# Increase inotify availability
fs.inotify.max_user_watches = 524288

# protect bottom 64k of memory from mmap to prevent NULL-dereference
# attacks against potential future kernel security vulnerabilities.
# (Added in kernel 2.6.23.)
vm.mmap_min_addr = 65536

##############################################################3
# Functions previously found in netbase
#

# Comment the next two lines to disable Spoof protection (reverse-path fil
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# This disables TCP Window Scaling (http://lkml.org/lkml/2008/2/5/167)
net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#net.ipv6.ip_forward=1

do te go fire wall m am  wyłączony.

W  czym  tk wi proble m ?

Z Se rve raUbuntu (k om p A) wszystk o śm iga pingi, www itp a k om pa b m oge  wypingować
inte rfe js eth0 i eth1 ale  już route ra do sie ci (192.168.138.1) już nie . z k om pute ra k tóry
je st wpię ty do sie ci 192.168.138.0 nie  je ste m  w stanie  wypingować k om pute ra B.

Pom óżcie ......

Ostatnio edytowane przez frklin : 29-07-2008 o 

01:37

. Powód: ort :P

 

 

 24-08-2008, 22:02

 

   #

2

marek_skwarek

 

Odp: Konfiguracja Ubuntu Serwer

tu by ci się  chyba przydała jak aś sprytna tablica routingu i nie  wie m  czy tylk o an k om p
A czy te ż przypadk ie m  nie  na B. Tak  sobie  tylk o m yślę . Poprawcie  je śli nie  m am  racji.

Konfiguracja Ubuntu Serwer - UBUNT U.PL

http://forum.ubuntu.pl/showthread.php?t=79129

3 of 4

26.10.2008 19:20

background image

Płeć: 
Posty: 115
System: 8.04
Środowisko: GNOME

__________________
we sprzyj ak cje :
używajcie  link ów na forum  - forum .ubuntu.pl/showthre ad.php?t=66324
dodaje m y [solve d] - forum .ubuntu.pl/showthre ad.php?t=63205

 

 

« 

Poprzedni wątek

 | 

Następny wątek

 »

Szybka odpowiedź

Wiadomość:

 

Opcje

Zacytować wiadomość podczas odpowiedzi?

 

Zasady Postowania

Możesz wysyłać nowe wątki
Możesz wysyłać odpowiedzi
Możesz wysyłać załączniki
Możesz edytować swoje posty

vB code

 jest Wł.

Uśmieszki

 są Wł.

kod 

[IMG]

 jest Wł.

kod HTML jest Wył.

Skocz do forum

Czasy w strefie GMT +1. Teraz jest 

19:15

.

Kontakt

 - 

Polskie forum użytkowników Ubuntu

 - 

Archiwum

 - 

Na górę

Powered by: vBulletin Version 3.6.7

Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Konfiguracja Ubuntu Serwer - UBUNT U.PL

http://forum.ubuntu.pl/showthread.php?t=79129

4 of 4

26.10.2008 19:20