The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Соеденить 2 машины: линукс и вин92, !*! ugoday, 10-Дек-05, 16:07  [смотреть все]
Есть машинка с линуксом и стримом. Рядом стоит машинка с 98 виндой.
Задача: сделать так, чтобы из под винды можно было ходить в сеть через стрим. Было принято решение соеденить две машинки напрямую с помощью crossover ethernet. В машинку с линуксом засунули дополнительную сетевую карточку и сказали
#ifconfig eth1 192.168.1.34 up

У eth0 адрес 192.168.1.33.
На виндовой машинке:
ip 192.168.1.35
netmask 255.255.255.0
шлюз 192.168.1.1

с виндовой машины ip 192.168.1.35 пингуется, а другеи (33 и 34) нет.

с линуксовой ip (33 и 34) пингуются, а

/home/ugoday# ping 192.168.1.35
PING 192.168.1.35 (192.168.1.35) 56(84) bytes of data.
ping: sendmsg: Operation not permitted

хотя

/home/ugoday# cat /etc/hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5), hosts_options(5)
#                   and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: LOCAL @some_netgroup
#             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
# /usr/share/doc/portmap/portmapper.txt.gz for further information.
#

ALL: LOCAL

/home/ugoday# cat /etc/hosts.deny
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5), hosts_options(5)
#                  and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: some.host.name, .some.domain
#             ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
# and /usr/doc/portmap/portmapper.txt.gz for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.

# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID

#ALL: ALL
#ALL: LOCAL
#ALL: 127.0.0.1


Вопрос: где косяк и что делать?

  • Соеденить 2 машины: линукс и вин92, !*! MoS, 16:59 , 10-Дек-05 (1)
    >Есть машинка с линуксом и стримом. Рядом стоит машинка с 98 виндой.
    >
    >Задача: сделать так, чтобы из под винды можно было ходить в сеть
    >через стрим. Было принято решение соеденить две машинки напрямую с помощью
    >crossover ethernet. В машинку с линуксом засунули дополнительную сетевую карточку и
    >сказали
    >#ifconfig eth1 192.168.1.34 up
    >
    >У eth0 адрес 192.168.1.33.
    >На виндовой машинке:
    >ip 192.168.1.35
    >netmask 255.255.255.0
    >шлюз 192.168.1.1
    >
    >с виндовой машины ip 192.168.1.35 пингуется, а другеи (33 и 34) нет.
    >
    >
    >с линуксовой ip (33 и 34) пингуются, а
    >
    >/home/ugoday# ping 192.168.1.35
    >PING 192.168.1.35 (192.168.1.35) 56(84) bytes of data.
    >ping: sendmsg: Operation not permitted
    >
    >хотя
    >
    >/home/ugoday# cat /etc/hosts.allow
    ># /etc/hosts.allow: list of hosts that are allowed to access the system.
    >
    >#            
    >       See the manual pages
    >hosts_access(5), hosts_options(5)
    >#            
    >       and /usr/doc/netbase/portmapper.txt.gz
    >#
    ># Example:    ALL: LOCAL @some_netgroup
    >#            
    > ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
    >#
    ># If you're going to protect the portmapper use the name "portmap"
    >for the
    ># daemon name. Remember that you can only use the keyword "ALL"
    >and IP
    ># addresses (NOT host or domain names) for the portmapper, as well
    >as for
    ># rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
    ># /usr/share/doc/portmap/portmapper.txt.gz for further information.
    >#
    >
    >ALL: LOCAL
    >
    >/home/ugoday# cat /etc/hosts.deny
    ># /etc/hosts.deny: list of hosts that are _not_ allowed to access the
    >system.
    >#            
    >      See the manual pages hosts_access(5),
    >hosts_options(5)
    >#            
    >      and /usr/doc/netbase/portmapper.txt.gz
    >#
    ># Example:    ALL: some.host.name, .some.domain
    >#            
    > ALL EXCEPT in.fingerd: other.host.name, .other.domain
    >#
    ># If you're going to protect the portmapper use the name "portmap"
    >for the
    ># daemon name. Remember that you can only use the keyword "ALL"
    >and IP
    ># addresses (NOT host or domain names) for the portmapper. See portmap(8)
    >
    ># and /usr/doc/portmap/portmapper.txt.gz for further information.
    >#
    ># The PARANOID wildcard matches any host whose name does not match
    >its
    ># address.
    >
    ># You may wish to enable this to ensure any programs that
    >don't
    ># validate looked up hostnames still leave understandable logs. In past
    ># versions of Debian this has been the default.
    ># ALL: PARANOID
    >
    >#ALL: ALL
    >#ALL: LOCAL
    >#ALL: 127.0.0.1
    >
    >
    >Вопрос: где косяк и что делать?

    Лень сейчас думать. Но если не глючу шлюз на win машине должен быть указан
    как 192.168.1.35, т.е. eth1 linux машины.
    Ну и включить форвардинг между интерфейсами на линукс машине.

    • Соеденить 2 машины: линукс и вин92, !*! ugoday, 17:32 , 10-Дек-05 (2)
      >Лень сейчас думать. Но если не глючу шлюз на win машине должен
      >быть указан
      >как 192.168.1.35, т.е. eth1 linux машины.


      192.168.1.35 это ip win машины.

      Пробовал в качестве шлюза использовать 192.168.1.34 (ip карточки, в которую воткнута витая пара между вин и лин машинами) и 192.168.1.33 (ip карточки, соединённой с модемом). Не помогает.

      >Ну и включить форвардинг между интерфейсами на линукс машине.

      ~ugoday# cat /proc/sys/net/ipv4/ip_forward
      1

      Это оно?


      • Соеденить 2 машины: линукс и вин92, !*! MoS, 10:54 , 12-Дек-05 (4)
        >>Лень сейчас думать. Но если не глючу шлюз на win машине должен
        >>быть указан
        >>как 192.168.1.35, т.е. eth1 linux машины.
        >
        >
        >192.168.1.35 это ip win машины.
        >
        >Пробовал в качестве шлюза использовать 192.168.1.34 (ip карточки, в которую воткнута витая
        >пара между вин и лин машинами) и 192.168.1.33 (ip карточки, соединённой
        >с модемом). Не помогает.
        >
        >>Ну и включить форвардинг между интерфейсами на линукс машине.
        >
        >~ugoday# cat /proc/sys/net/ipv4/ip_forward
        >1
        >
        >Это оно?

        Угу. Мтак. Разбрасываем инет и лан по разным подсетям.
        Т.е. eth0 и модем на адрес допустим 192.168.1.x.
        eth1 и win машину на 192.168.2.x.
        Настраиваем роутинг по сетям и форвардинг между ними. Получаем нужный результат.При необходимости натим черз iptables.
        ps. Когда-то, когда занимался настройкой роутеров и серверов писал статью
        по этому делу. Не знаю в фидо-эхе ru.linux.chainik может и сохранилась.
        Хотя врядли, прошло более 5 лет как я покинул сообщество фидошников.:)


  • Соеденить 2 машины: линукс и вин92, !*! EL, 20:30 , 10-Дек-05 (3)
    >Вопрос: где косяк и что делать?

    "Косячек" скорее всего в нежелании что-то читать. Вам, уважаемый, самое время почитать что-нибудь по маршрутизации/адресации в IP сетях для начинающих, к примеру на citforum.ru или здесь





Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру