From: "Maria Shakhova" <inlvenok@mail.ru> To: community@altlinux.ru Subject: [Comm] Настройка NAT Date: Wed, 07 May 2003 16:11:43 +0400 Message-ID: <E19DNlv-000OYh-00.inlvenok-mail-ru@f11.mail.ru> (raw) Уважаемое комьюнити! Помогите советом... Есть локальная сеть, есть роутер под Linux c 2 сетевыми картами,1 смотрит в локальную сеть ,вторая --в интернет (соединение через ADSL) необходимо сделать так, чтобы все люди в локальной сети могли получать и отправлять почту и пользоваться ICQ. Но у меня не получается настроить nat. Настраиваю я его так: в скрипт, сгенеренный guarddog'ом, дописываю подгрузку модулей, строки echo 1 > /proc/sys/net/ipv4/ip_forward и iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 81.195.221.166 но почта не работает.... Чтение man iptables, iptables reference и сообщений на различных форумах не просветлила...Что я делаю не так? ifconfig eth0 Link encap:Ethernet HWaddr 00:80:48:1B:A2:02 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3505 errors:0 dropped:0 overruns:0 frame:0 TX packets:3152 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:391504 (382.3 Kb) TX bytes:2159393 (2.0 Mb) Interrupt:11 Base address:0x6000 eth1 Link encap:Ethernet HWaddr 00:80:48:1C:26:B7 inet addr:81.195.221.166 Bcast:81.195.221.167 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6290 errors:0 dropped:0 overruns:0 frame:0 TX packets:6060 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:5194639 (4.9 Mb) TX bytes:598094 (584.0 Kb) Interrupt:5 Base address:0xf000 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:4106 errors:0 dropped:0 overruns:0 frame:0 TX packets:4106 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2134347 (2.0 Mb) TX bytes:2134347 (2.0 Mb) -- С уважением, Мария
next reply other threads:[~2003-05-07 12:11 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-05-07 12:11 Maria Shakhova [this message] 2003-05-07 12:38 ` Sergey Solomonov 2003-05-07 12:43 ` Arkadiy Pavlik 2003-05-07 13:27 ` Yuri Hramov 2003-05-07 14:59 ` Pavel S. Khmelinsky 2003-05-07 21:28 ` Maria Shakhova 2003-05-08 6:04 ` Владимир 2003-05-08 11:28 ` Maria Shakhova 2003-05-08 8:22 ` Владимир 2003-05-08 9:05 ` Andriy Dobrovol's'kii 2003-05-10 0:50 ` Mulder 2003-05-12 16:47 ` Maria Shakhova
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=E19DNlv-000OYh-00.inlvenok-mail-ru@f11.mail.ru \ --to=inlvenok@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