ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vitaly Gorshkov <vita55555@mail.ru>
To: community@altlinux.ru
Subject: Re[2]: [Comm] шлюз смотрит в другой шлюз
Date: Tue, 12 Jul 2005 08:55:52 +0400
Message-ID: <1077835594.20050712085552@mail.ru> (raw)
In-Reply-To: <1141765004.20050711173249@kuznetsov.org.ua>

ASK> Конечно! на виндовой тачке ставишь шлюзом 0.195, а на линуховой машине
ASK> - 0.1. Также на линуховой настраиваешь iptables приблизительно, как он
ASK> у тебя и настроен.
ASK> Всё будет работать!

линух :
[root@linux_alt sysconfig]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

[root@linux_alt sysconfig]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:76:C1:AF
          inet addr:192.168.0.195  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:80673 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39751 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8294020 (7.9 Mb)  TX bytes:5623098 (5.3 Mb)
          Interrupt:18 Base address:0x1080

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:552 (552.0 b)  TX bytes:552 (552.0 b)


iptables
# Example iptables config file.
# Note the this file uses the format of iptables-save
# What follows is an example of this output.  However,
# the actual rule lines have been commented out.
# DO NOT USE THE -t (table) OPTION IN THIS FILE!
*mangle
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
#-A PREROUTING -p tcp --dport 22 -j TOS --set-tos 0x10
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
#-A FORWARD -i eth0 -j ACCEPT
COMMIT
*nat
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -j MASQUERADE
COMMIT

винда
шлюз 192.168.0.195

не работает, что не так?


-- 
С уважением,
 Vitaly                          mailto:vita55555@mail.ru



  reply	other threads:[~2005-07-12  4:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11 14:06 Vitaly Gorshkov
2005-07-12  0:32 ` Alexey S. Kuznetsov
2005-07-12  4:55   ` Vitaly Gorshkov [this message]
2005-07-12  7:55     ` Nick S. Grechukh
2005-07-12  8:37       ` Re[2]: " Vitaly Gorshkov
2005-07-12 18:40         ` Re[3]: " Alexey S. Kuznetsov
2005-07-12 18:42           ` Re[4]: " Alexey S. Kuznetsov
2005-07-12  9:07             ` Re[5]: " Vitaly Gorshkov
2005-07-12 11:09             ` Vitaly Gorshkov
2005-07-12 12:35               ` [Comm] " Michael Shigorin
2005-07-12 13:18                 ` Vitaly Gorshkov
2005-07-12 18:13                   ` Michael Shigorin
2005-07-13  6:05                     ` Vitaly Gorshkov
2005-07-13  6:27                       ` Michael Shigorin
2005-07-13  7:49                       ` Yuri Ivanov
2005-07-13  9:54                         ` Re[2]: " Vitaly Gorshkov
2005-07-14  4:57                           ` Yuri Ivanov
2005-07-14  5:26                             ` Re[2]: " Vitaly Gorshkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1077835594.20050712085552@mail.ru \
    --to=vita55555@mail.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git