From: "Mikhail Kuligin" <mail4network@gmail.com> To: "ALT Linux Community general discussions" <community@lists.altlinux.org> Subject: Re: [Comm] Создание шлюза Date: Thu, 31 Jan 2008 10:47:01 +0200 Message-ID: <e9913ae20801310047s38fd2100n572098f6d59516a8@mail.gmail.com> (raw) In-Reply-To: <200801280843.12982.hj@acoustics.ru> День добрый в продолжение "о шлюзе" пытаюсь настроить nat gпо предідущим постам "[Comm] Создание шлюза" > на шлюзе: > iptables -A PREROUTING -t nat -s 192.168.0.1/24 -o eth0 -j SNAT 192.168.x.51 > echo 1 > /proc/sys/net/ipv4/ip_forward eth0 172.16.0.1/16 домашняя сеть eth1 192.168.16.132/22 городская сеть route Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 * 255.255.252.0 U 0 0 0 eth1 172.16.0.0 * 255.255.0.0 U 0 0 0 eth0 192.168.0.0 192.168.16.1 255.255.0.0 UG 0 0 0 eth1 default 192.168.16.188 0.0.0.0 UG 0 0 0 eth1 даю такую команду # iptables -A PREROUTING -t nat -s 172.16.0.1/24 -o eth1 -j SNAT 192.168.16.132 Bad argument `192.168.16.132' Try `iptables -h' or 'iptables --help' for more information. при этом в /etc/rc.d/init.d/ сервиса nat нет Motsyo Gennadi aka Drool <motsyo@gmail.com> выложил свой файл nat, но хочу разобраться с самого начала? где его брать? с каким пакетом приходит скрипт nat, запускаемый из /etc/rc.d/init.d? или nat всего лишь параметр передаваемый в команде iptables > Закинуть nat в /etc/rc.d/init.d откуда? читаю 2 книги "Использование Linux, Дэвид Бэндел", "Линукс сервер своими руками, Д Колисниченко", но прочтение дает понимание теории, но не применения на практике :(
next prev parent reply other threads:[~2008-01-31 8:47 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-01-26 15:51 Alexandr Petukhov 2008-01-28 3:43 ` Мерзляков Евгений Анатольевич 2008-01-29 8:22 ` Sergey 2008-01-31 8:47 ` Mikhail Kuligin [this message] 2008-01-31 9:03 ` Владимир Гусев 2008-01-31 9:10 ` Владимир Гусев 2008-01-31 9:14 ` Владимир Гусев 2008-01-31 9:25 ` Алексей Шенцев 2008-01-31 10:47 ` Мерзляков Евгений Анатольевич 2008-01-31 10:52 ` Мерзляков Евгений Анатольевич 2008-01-31 10:58 ` Motsyo Gennadi aka Drool 2008-01-31 12:06 ` Владимир Гусев 2008-02-01 19:44 ` Mikhail Kuligin 2008-02-01 19:58 ` Slava Dubrovskiy 2008-02-01 20:34 ` Motsyo Gennadi aka Drool 2008-01-31 15:10 ` Vladimir V. Kamarzin
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=e9913ae20801310047s38fd2100n572098f6d59516a8@mail.gmail.com \ --to=mail4network@gmail.com \ --cc=community@lists.altlinux.org \ /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