Linux за българи: Форуми

Linux секция за начинаещи => Настройка на програми => Темата е започната от: LxNew в Mar 01, 2004, 10:41



Титла: WinXp -> Linux(SuSe9) -> Internet
Публикувано от: LxNew в Mar 01, 2004, 10:41
Zdravejte, na vsichki koito prekarvat bezsunni noshti na operacionnata sistema Linux.
Az ot njakolko dena se zanimavam s Linux i se chistvam dobre s nego. Estestveno za njakolko dena ne se stava guru no mislja che burzo napredvam. Porednija vupros koito malko me zatrudni e slednija:

Imam Linux Suse9:
eth0 -> kum WAN (internen - no problem)
eth1 koito polzvam za subnet mreza sus winxp.
DHCP server - work O.K.
Samba surver - eork O.K
.............................................
Problema: - Dvata komputera se vidat bezgrizno. WinXp otchita DCHP servera na linuxa i si vzima korekten adres. Sub-Mrezata raboti, bezgrizno.
Obache ne mog da pusna winxp da polzva internet
...............................................
Shte buda mnogo blagodaren ako me nasochite kude e problema. //predpolagam che e gw...


Титла: WinXp -> Linux(SuSe9) -> Internet
Публикувано от: zazzko в Mar 01, 2004, 17:01
Трябва да чрез iptables да пуснеш Интернета от едната карта към другата. Потърси PREROUTING във форума и ще разбреш как става.


Титла: WinXp -> Linux(SuSe9) -> Internet
Публикувано от: Йордан в Mar 01, 2004, 21:32
http://www.linux-bg.org/cgi-bin....6349746

http://www.linux-bg.org/cgi-bin....6349834


Титла: WinXp -> Linux(SuSe9) -> Internet
Публикувано от: LxNew в Mar 01, 2004, 21:51
Blagodarja za prepratkite ........ ochakvah malko prakticheski suveti kakto napravi. OMA (oma@abv.bg)Това се прави с iptables който оправлява директно
netfilter-а.
 Ето ти помощни няколко реда за NAT (Network Adress
Translation), пък другото ще си го прочетеш сам.

# enable routing for local net (eth0)
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

 #Turn on Internet connection sharing option (IP Forwarding)
of the kernel
echo 1 > /proc/sys/net/ipv4/ip_forward

Във файла: /etc/sysconfig/network
GATEWAYDEV=eth0
FORWARD_IPV4=true


Za suzalenie ne vsichko mi ejasno po tezi komandi.
Ako ima zelaesh da mi gi objasni i da produlzim napred...


Титла: WinXp -> Linux(SuSe9) -> Internet
Публикувано от: kennedy в Mar 01, 2004, 21:56
понеже си с сусе. пусни си
YAST -> Network Services -> Routing и виж дали ще ти свърши работа или от настройките за firewall май беше.
Цитат
Routing in SuSE Linux

The routing table is set up in SuSE Linux via the configuration files /etc/sysconfig/network/routes and /etc/sysconfig/network/ifroute-*.

All the static routes required by the various system tasks can be entered in the /etc/sysconfig/network/routes file: routes to a host, routes to a host via a gateway, and routes to a network. For each interface that need individual routing, define an additional configuration file: /etc/sysconfig/network/ifroute-*. Replace `*' with the name of the interface. The entries in the routing configuration files look like this:


DESTINATION           GATEWAY NETMASK   INTERFACE [ TYPE ] [ OPTIONS ]
DESTINATION           GATEWAY PREFIXLEN INTERFACE [ TYPE ] [ OPTIONS ]
DESTINATION/PREFIXLEN GATEWAY -         INTERFACE [ TYPE ] [ OPTIONS ]

To omit GATEWAY, NETMASK, PREFIXLEN, or INTERFACE, write `-' instead. The entries TYPE and OPTIONS may just be omitted.

    * The route's destination is in the first column. This column may contain the IP address of a network or host or, in the case of reachable name servers, the fully qualified network or host name.

    * The second column contains the default gateway or a gateway through which a host or a network can be accessed.

    * The third column contains the netmask for networks or hosts behind a gateway. The mask is 255.255.255.255, for example, for a host behind a gateway.

    * The last column is only relevant for networks connected to the local host such as loopback, ethernet, ISDN, PPP, and dummy device. The device name must be entered here.

The following scripts in the directory /etc/sysconfig/network/scripts/ assist with the handling of routes:

ifup-route
    for setting up a route
ifdown-route
    for disabling a route
ifstatus-route
    for checking the status of the routes



Титла: WinXp -> Linux(SuSe9) -> Internet
Публикувано от: в Mar 02, 2004, 18:55
В YaST-a в настройките на защитната стена :
1. избираш външния интерфейс с който си закачен към ISP-to
2. вътрешния на който ти е закачено XP-to
 цъкаш си кутийката за НАТ между двете и нямаш грижи.
  Поздрави.


Титла: WinXp -> Linux(SuSe9) -> Internet
Публикувано от: в Mar 13, 2004, 19:54
Thamks za otgovorite .............. SuSe se okaza lesna rabota ..... zatova burzo minah na Slack 9.1 ......tuka se kopae dosta po zdravo

Blagodarja za vsichki otgovori