Автор Гілка: Доступ до сайтів  (Прочитано 12578 раз)

Відсутній Gespenst

  • Дописувач
  • **
  • дописів: 94
  • Карма: +0/-0
    • Веб-записничок
Доступ до сайтів
« : 2013-03-13 11:21:14 »
Доброго дня! Виникла така ситуація. В офісі три машини, об’єднані в мережу. Інтернет роздається по мережі з машини яка має Ubuntu 12.04 на борту. Інтернет розшарювався способом, що описаний тут http://www.ko3ak.in.ua/%D1%81%D0%B5%D1%80%D0%B5%D0%B4%D0%BE%D0%B2%D0%B8%D1%89%D0%B5-linux/%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0/501-yak-rozdaty-internet-po-lokalnii-merezhi-v-ubuntu.html. Проблема з’ясувалася нещодавно, як виявляється клієнтські машини, а вони мають одна Ubuntu 11.04 а інша WindowsXP на борту не можуть зайти на деякі сайти, в той час як машина з якої роздається Інтернет має доступ усюди. Підкажіть будь ласка де і що прописати потрібно?

Відсутній peinguin

  • Літератор
  • ******
  • дописів: 1418
  • Карма: +0/-0
Re: Доступ до сайтів
« Відповідей #1 : 2013-03-13 18:59:20 »
traceroute покажіть із клієнтських машин.

Відсутній Gespenst

  • Дописувач
  • **
  • дописів: 94
  • Карма: +0/-0
    • Веб-записничок
Re: Доступ до сайтів
« Відповідей #2 : 2013-03-14 09:17:51 »
traceroute
veteran@veteran-desktop:~$ traceroute
Usage:
  traceroute [ -46dFITnreAUV ] [ -f first_ttl ] [ -g gate,... ] [ -i device ] [ -m max_ttl ] [ -N squeries ] [ -p port ] [ -t tos ] [ -l flow_label ] [ -w waittime ] [ -q nqueries ] [ -s src_addr ] [ -z sendwait ] host [ packetlen ]
Options:
  -4                          Use IPv4
  -6                          Use IPv6
  -d  --debug                 Enable socket level debugging
  -F  --dont-fragment         Do not fragment packets
  -f first_ttl  --first=first_ttl
                              Start from the first_ttl hop (instead from 1)
  -g gate,...  --gateway=gate,...
                              Route packets through the specified gateway
                              (maximum 8 for IPv4 and 127 for IPv6)
  -I  --icmp                  Use ICMP ECHO for tracerouting
  -T  --tcp                   Use TCP SYN for tracerouting
  -i device  --interface=device
                              Specify a network interface to operate with
  -m max_ttl  --max-hops=max_ttl
                              Set the max number of hops (max TTL to be
                              reached). Default is 30
  -N squeries  --sim-queries=squeries
                              Set the number of probes to be tried
                              simultaneously (default is 16)
  -n                          Do not resolve IP addresses to their domain names
  -p port  --port=port        Set the destination port to use. It is either
                              initial udp port value for "default" method
                              (incremented by each probe, default is 33434), or
                              initial seq for "icmp" (incremented as well,
                              default from 1), or some constant destination
                              port for other methods (with default of 80 for
                              "tcp", 53 for "udp", etc.)
  -t tos  --tos=tos           Set the TOS (IPv4 type of service) or TC (IPv6
                              traffic class) value for outgoing packets
  -l flow_label  --flowlabel=flow_label
                              Use specified flow_label for IPv6 packets
  -w waittime  --wait=waittime
                              Set the number of seconds to wait for response to
                              a probe (default is 5.0). Non-integer (float
                              point) values allowed too
  -q nqueries  --queries=nqueries
                              Set the number of probes per each hop. Default is
                              3
  -r                          Bypass the normal routing and send directly to a
                              host on an attached network
  -s src_addr  --source=src_addr
                              Use source src_addr for outgoing packets
  -z sendwait  --sendwait=sendwait
                              Minimal time interval between probes (default 0).
                              If the value is more than 10, then it specifies a
                              number in milliseconds, else it is a number of
                              seconds (float point values allowed too)
  -e  --extensions            Show ICMP extensions (if present), including MPLS
  -A  --as-path-lookups       Perform AS path lookups in routing registries and
                              print results directly after the corresponding
                              addresses
  -M name  --module=name      Use specified module (either builtin or external)
                              for traceroute operations. Most methods have
                              their shortcuts (`-I' means `-M icmp' etc.)
  -O OPTS,...  --options=OPTS,...
                              Use module-specific option OPTS for the
                              traceroute module. Several OPTS allowed,
                              separated by comma. If OPTS is "help", print info
                              about available options
  --sport=num                 Use source port num for outgoing packets. Implies
                              `-N 1'
  -U  --udp                   Use UDP to particular port for tracerouting
                              (instead of increasing the port per each probe),
                              default port is 53
  -UL                         Use UDPLITE for tracerouting (default dest port
                              is 53)
  -P prot  --protocol=prot    Use raw packet of protocol prot for tracerouting
  --mtu                       Discover MTU along the path being traced. Implies
                              `-F -N 1'
  --back                      Guess the number of hops in the backward path and
                              print if it differs
  -V  --version               Print version info and exit
  --help                      Read this help and exit

Arguments:
+     host          The host to traceroute to
      packetlen     The full packet length (default is the length of an IP
                    header plus 40). Can be ignored or increased to a minimal
                    allowed value

Відсутній peinguin

  • Літератор
  • ******
  • дописів: 1418
  • Карма: +0/-0
Re: Доступ до сайтів
« Відповідей #3 : 2013-03-14 09:20:46 »
вибачте. Не досить ясно сказав.

треба traceroute з усих 3х комп’ютерів до сайтів, які не відображаються.

Відсутній Gespenst

  • Дописувач
  • **
  • дописів: 94
  • Карма: +0/-0
    • Веб-записничок
Re: Доступ до сайтів
« Відповідей #4 : 2013-03-14 09:36:19 »
вибачте. Не досить ясно сказав.

треба traceroute з усих 3х комп’ютерів до сайтів, які не відображаються.
Не відображаються лише на двох, на одному з них вінда. Тобто ще зробити traceroute  з "інтернетороздаючої" машини? А на "інтернетороздаючої"  його і немає  :o. зараз встановлю.

Відсутній peinguin

  • Літератор
  • ******
  • дописів: 1418
  • Карма: +0/-0
Re: Доступ до сайтів
« Відповідей #5 : 2013-03-14 09:37:38 »
Та робіть з усих. Буде не зайвим. Пінгувати теж можна з усих трьох.

Відсутній Gespenst

  • Дописувач
  • **
  • дописів: 94
  • Карма: +0/-0
    • Веб-записничок
Re: Доступ до сайтів
« Відповідей #6 : 2013-03-14 09:39:57 »
інтернетороздаюча машина

banzay@banzay-desktop:~$ traceroute
Usage:
  traceroute [ -46dFITnreAUV ] [ -f first_ttl ] [ -g gate,... ] [ -i device ] [ -m max_ttl ] [ -N squeries ] [ -p port ] [ -t tos ] [ -l flow_label ] [ -w waittime ] [ -q nqueries ] [ -s src_addr ] [ -z sendwait ] [ --fwmark=num ] host [ packetlen ]
Options:
  -4                          Use IPv4
  -6                          Use IPv6
  -d  --debug                 Enable socket level debugging
  -F  --dont-fragment         Do not fragment packets
  -f first_ttl  --first=first_ttl
                              Start from the first_ttl hop (instead from 1)
  -g gate,...  --gateway=gate,...
                              Route packets through the specified gateway
                              (maximum 8 for IPv4 and 127 for IPv6)
  -I  --icmp                  Use ICMP ECHO for tracerouting
  -T  --tcp                   Use TCP SYN for tracerouting (default port is 80)
  -i device  --interface=device
                              Specify a network interface to operate with
  -m max_ttl  --max-hops=max_ttl
                              Set the max number of hops (max TTL to be
                              reached). Default is 30
  -N squeries  --sim-queries=squeries
                              Set the number of probes to be tried
                              simultaneously (default is 16)
  -n                          Do not resolve IP addresses to their domain names
  -p port  --port=port        Set the destination port to use. It is either
                              initial udp port value for "default" method
                              (incremented by each probe, default is 33434), or
                              initial seq for "icmp" (incremented as well,
                              default from 1), or some constant destination
                              port for other methods (with default of 80 for
                              "tcp", 53 for "udp", etc.)
  -t tos  --tos=tos           Set the TOS (IPv4 type of service) or TC (IPv6
                              traffic class) value for outgoing packets
  -l flow_label  --flowlabel=flow_label
                              Use specified flow_label for IPv6 packets
  -w waittime  --wait=waittime
                              Set the number of seconds to wait for response to
                              a probe (default is 5.0). Non-integer (float
                              point) values allowed too
  -q nqueries  --queries=nqueries
                              Set the number of probes per each hop. Default is
                              3
  -r                          Bypass the normal routing and send directly to a
                              host on an attached network
  -s src_addr  --source=src_addr
                              Use source src_addr for outgoing packets
  -z sendwait  --sendwait=sendwait
                              Minimal time interval between probes (default 0).
                              If the value is more than 10, then it specifies a
                              number in milliseconds, else it is a number of
                              seconds (float point values allowed too)
  -e  --extensions            Show ICMP extensions (if present), including MPLS
  -A  --as-path-lookups       Perform AS path lookups in routing registries and
                              print results directly after the corresponding
                              addresses
  -M name  --module=name      Use specified module (either builtin or external)
                              for traceroute operations. Most methods have
                              their shortcuts (`-I' means `-M icmp' etc.)
  -O OPTS,...  --options=OPTS,...
                              Use module-specific option OPTS for the
                              traceroute module. Several OPTS allowed,
                              separated by comma. If OPTS is "help", print info
                              about available options
  --sport=num                 Use source port num for outgoing packets. Implies
                              `-N 1'
  --fwmark=num                Set firewall mark for outgoing packets
  -U  --udp                   Use UDP to particular port for tracerouting
                              (instead of increasing the port per each probe),
                              default port is 53
  -UL                         Use UDPLITE for tracerouting (default dest port
                              is 53)
  -P prot  --protocol=prot    Use raw packet of protocol prot for tracerouting
  --mtu                       Discover MTU along the path being traced. Implies
                              `-F -N 1'
  --back                      Guess the number of hops in the backward path and
                              print if it differs
  -V  --version               Print version info and exit
  --help                      Read this help and exit

Arguments:
+     host          The host to traceroute to
      packetlen     The full packet length (default is the length of an IP
                    header plus 40). Can be ignored or increased to a minimal
                    allowed value

Відсутній Gespenst

  • Дописувач
  • **
  • дописів: 94
  • Карма: +0/-0
    • Веб-записничок
Re: Доступ до сайтів
« Відповідей #7 : 2013-03-14 09:46:15 »
це відповідь інтернетороздаючої машини (на ній цей сайт відкривається) Трохи згодом дам і інші, вони зараз зайняті.

banzay@banzay-desktop:~$ traceroute mail6.freehost.com.ua
traceroute to mail6.freehost.com.ua (194.0.200.224), 30 hops max, 60 byte packets
 1  192.168.9.1 (192.168.9.1)  1.390 ms  1.366 ms  1.447 ms
 2  gw.alba.dp.ua (193.151.12.65)  2.430 ms  2.417 ms  2.403 ms
 3  194.44.14.137 (194.44.14.137)  8.617 ms  8.604 ms  8.670 ms
 4  datagroup-ix.giganet.ua (91.245.221.20)  8.655 ms  8.642 ms  8.628 ms
 5  80.91.186.218 (80.91.186.218)  9.157 ms  9.144 ms  9.130 ms
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
« Змінено: 2013-03-14 09:47:43 від Gespenst »

Відсутній Gespenst

  • Дописувач
  • **
  • дописів: 94
  • Карма: +0/-0
    • Веб-записничок
Re: Доступ до сайтів
« Відповідей #8 : 2013-03-14 10:14:29 »
клієнтська машина
veteran@veteran-desktop:~$ traceroute mail6.freehost.com.ua
traceroute to mail6.freehost.com.ua (194.0.200.225), 30 hops max, 60 byte packets
 1  banzay-desktop.local (10.42.0.1)  0.122 ms  0.085 ms  0.101 ms
 2  192.168.9.1 (192.168.9.1)  1.450 ms  1.421 ms  1.563 ms
 3  gw.alba.dp.ua (193.151.12.65)  2.492 ms  2.464 ms  2.431 ms
 4  194.44.14.137 (194.44.14.137)  8.374 ms  8.388 ms  8.353 ms
 5  datagroup-ix.giganet.ua (91.245.221.20)  8.319 ms  8.431 ms  8.250 ms
 6  80.91.186.218 (80.91.186.218)  8.827 ms  9.490 ms  9.471 ms
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

Відсутній peinguin

  • Літератор
  • ******
  • дописів: 1418
  • Карма: +0/-0
Re: Доступ до сайтів
« Відповідей #9 : 2013-03-14 10:19:16 »
та вродь нормально все. А telnet на 80й порт?

Відсутній Gespenst

  • Дописувач
  • **
  • дописів: 94
  • Карма: +0/-0
    • Веб-записничок
Re: Доступ до сайтів
« Відповідей #10 : 2013-03-14 10:22:26 »
друга клієнтська машина
Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.

C:\WINDOWS\system32>tracert mail6.freehost.com.ua

Трассировка маршрута к mail6.freehost.com.ua [194.0.200.225]
с максимальным числом прыжков 30:

  1    <1 мс    <1 мс    <1 мс  10.42.0.1
  2     1 ms     1 ms    <1 мс  192.168.9.1
  3     1 ms     1 ms     1 ms  gw.alba.dp.ua [193.151.12.65]
  4     7 ms     8 ms    37 ms  194.44.14.137
  5     8 ms     8 ms     8 ms  datagroup-ix.giganet.ua [91.245.221.20]
  6     8 ms     9 ms     9 ms  80.91.186.218
  7     8 ms     8 ms     9 ms  mail6.freehost.com.ua [194.0.200.225]

Трассировка завершена.

C:\WINDOWS\system32>

Відсутній Gespenst

  • Дописувач
  • **
  • дописів: 94
  • Карма: +0/-0
    • Веб-записничок
Re: Доступ до сайтів
« Відповідей #11 : 2013-03-14 10:25:14 »
та вродь нормально все. А telnet на 80й порт?
А де це можна глянути? Можливо це тому що у мене на машині встановлений і налаштований віртуальний хост (для тестування шаблонів жумли)?

Відсутній peinguin

  • Літератор
  • ******
  • дописів: 1418
  • Карма: +0/-0
Re: Доступ до сайтів
« Відповідей #12 : 2013-03-14 10:26:51 »
віртуальний хост нічого не міняє.

на всих 3х машинах пропишіть

telnet mail6.freehost.com.ua 80

і на тій, що роздає ще напишіть

sudo iptables-save

Відсутній Gespenst

  • Дописувач
  • **
  • дописів: 94
  • Карма: +0/-0
    • Веб-записничок
Re: Доступ до сайтів
« Відповідей #13 : 2013-03-14 11:08:46 »
Ось що мені видали машини на telnet. Гадаю щось тут не те.
banzay@banzay-desktop:~$ telnet mail6.freehost.com.ua 80
Trying 194.0.200.225...
Connected to mail6.freehost.com.ua.
Escape character is '^]'.
Connection closed by foreign host.

Відсутній peinguin

  • Літератор
  • ******
  • дописів: 1418
  • Карма: +0/-0
Re: Доступ до сайтів
« Відповідей #14 : 2013-03-14 11:12:50 »
та це якраз те. Доступ на порт є. Значить сайт має грузитись