From: cornet <cornet@altlinux.ru> To: mandrake-russian@altlinux.ru Subject: [mdk-re] Ликбе Date: Thu Feb 28 13:47:05 2002 Message-ID: <3C7E0BD4.D131F3A5@altlinux.ru> (raw) In-Reply-To: <360062795.20020228103236@mail.ru> roman_tutov@mail.ru wrote: > > Hello cornet, > > Wednesday, February 27, 2002, 3:25:58 PM, you wrote: > > >> Объясните пожалуйста барану (мне) основы настройки маскарада > >> > >> У меня имеется скрипт в котором описаны правила ipchains > >> нужно собрать на другой машине систему и привинтить те же правила > >> +подсчет трафика. > >> > >> Скрипты что у меня есть были написаны не ручками (и не мной) > >> а сгенерированы какой-то программой . (Вроде pmfirewall но я не > >> уверен ) > >> > >> Скачал/установил ipchains включил в ядре маскарад ,привинтил > >> ppp (к провайдеру) соединился и скормил ipchains кучу правил. > > c> Содержимое файла > c> /etc/sysconfig/network > c> в студию :-) > > NETWORKING=yes > FORWARD_IPV4=yes > HOSTNAME=localhost.localdomain > DOMAINNAME=localdomain > GATEWAYDEV=ppp0 Нормально. > c> В до кучи выводы > c> ifconfig > Не обнаружен От root'а его надо, или /sbin/ifconfig > c> и > c> route > > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > c6.rmts.aaanet. * 255.255.255.255 UH 0 0 0 ppp0 > 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 > 127.0.0.0 * 255.0.0.0 U 0 0 0 lo > default c6.rmts.aaanet. 0.0.0.0 UG 0 0 0 ppp0 Вполне. Попробуйте выполнить такой скрипт: <BEGIN> #!/bin/sh modprobe ipchains IPCHAINS=/sbin/ipchains Any="0.0.0.0/0" $IPCHAINS -P input ACCEPT $IPCHAINS -P forward ACCEPT $IPCHAINS -P output ACCEPT $IPCHAINS -F $IPCHAINS -X # input rules # forward rules $IPCHAINS -A forward -s 192.168.0.0/24 -d $Any -j MASQ # output rules <EOF> Это _простейший_ маскарад, который тупо маскарадит все из внутренней подсети наружу. -- Власенко Олег. Отдел технической поддержки ALT Linux Team. mailto:cornet@altlinux.ru
next prev parent reply other threads:[~2002-02-28 13:47 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-02-27 15:02 [mdk-re] Ликбез roman_tutov 2002-02-27 15:18 ` cornet 2002-02-28 10:33 ` [mdk-re] Re[2]: " roman_tutov 2002-02-28 11:00 ` "Баталов Григорий" 2002-02-28 13:47 ` cornet [this message] 2002-02-28 14:42 ` [mdk-re] Re: [mdk-re] Ликбе roman_tutov 2002-02-28 15:29 ` cornet 2002-02-28 16:40 ` [mdk-re] Re[2]: " roman_tutov 2002-02-28 12:14 ` [mdk-re] Re[2]: [mdk-re] Ликбез roman_tutov 2002-02-27 18:01 ` [mdk-re] " Чужой 2002-02-28 10:42 ` [mdk-re] " roman_tutov 2002-02-28 11:44 ` [mdk-re] Re: [mdk-re] Dmitry Lebkov 2002-02-28 19:54 ` [mdk-re] Re: [mdk-re] Re: [mdk-re] Re: [mdk-re] Ликб Чужой
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=3C7E0BD4.D131F3A5@altlinux.ru \ --to=cornet@altlinux.ru \ --cc=mandrake-russian@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