From: roman_tutov@mail.ru To: cornet <mandrake-russian@altlinux.ru> Subject: [mdk-re] Re[2]: [mdk-re] Ликбез Date: Thu Feb 28 12:14:13 2002 Message-ID: <5566534581.20020228122028@mail.ru> (raw) In-Reply-To: <3C7CD056.B4E4CFCE@altlinux.ru> Hello cornet, Wednesday, February 27, 2002, 3:25:58 PM, you wrote: >> >> Объясните пожалуйста барану (мне) основы настройки маскарада >> >> У меня имеется скрипт в котором описаны правила ipchains >> нужно собрать на другой машине систему и привинтить те же правила >> +подсчет трафика. >> >> Скрипты что у меня есть были написаны не ручками (и не мной) >> а сгенерированы какой-то программой . (Вроде pmfirewall но я не >> уверен ) >> >> Скачал/установил ipchains включил в ядре маскарад ,привинтил >> ppp (к провайдеру) соединился и скормил ipchains кучу правил. c> Содержимое файла c> /etc/sysconfig/network c> в студию :-) c> В до кучи выводы c> ifconfig c> и c> route >> Сказал ipchains-save >x . Результат привожу ниже >> >> :input ACCEPT >> :forward DENY >> :output ACCEPT >> :acctboth - >> >> -A input -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j acctboth >> -A input -s 192.168.0.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -j ACCEPT >> -A forward -s 192.168.0.0/255.255.255.0 -d 192.168.0.0/255.255.255.0 -j ACCEPT >> -A forward -s 80.80.107.179/255.255.255.255 -d 0.0.0.0/0.0.0.0 -j ACCEPT >> -A forward -s 192.168.0.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -j MASQ >> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 -j acctboth >> -A output -s 192.168.0.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -j ACCEPT >> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 80:80 -p 6 -t 01 10 >> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 22:22 -p 6 -t 01 10 >> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 23:23 -p 6 -t 01 10 >> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 21:21 -p 6 -t 01 10 >> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 110:110 -p 6 -t 01 10 >> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 25:25 -p 6 -t 01 10 >> -A output -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 20:20 -p 6 -t 01 08 >> -A output -s 192.168.0.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -p 1 -j ACCEPT >> -A acctboth -s 80.80.111.230/255.255.255.255 -d 0.0.0.0/0.0.0.0 >> -A acctboth -s 0.0.0.0/0.0.0.0 -d 80.80.111.230/255.255.255.255 >> -A acctboth -s 80.80.111.230/255.255.255.255 -d 0.0.0.0/0.0.0.0 >> -A acctboth -s 0.0.0.0/0.0.0.0 -d 80.80.111.230/255.255.255.255 >> -A acctboth -s 80.80.111.230/255.255.255.255 -d 0.0.0.0/0.0.0.0 >> -A acctboth -s 0.0.0.0/0.0.0.0 -d 80.80.111.230/255.255.255.255 >> -A acctboth -s 0.0.0.0/0.0.0.0 -d 0.0.0.0/0.0.0.0 >> Добавление : Выборка из перлового скрипка Bandmin'a где он создает цепочки system("/sbin/ipchains","-D","input","-j","acctboth"); system("/sbin/ipchains","-D","output","-j","acctboth"); system("/sbin/ipchains","-N","acctboth"); system("/sbin/ipchains","-F","acctboth"); system("/sbin/ipchains","-I","input","-j","acctboth"); system("/sbin/ipchains","-I","output","-j","acctboth"); system("/sbin/ipchains","-A","acctboth","-s",$ip,"-b","-p","all"); system("/sbin/ipchains","-A","acctboth","-s","0.0.0.0/0","-d","0.0.0.0/0"); -- Best regards, roman mailto:roman_tutov@mail.ru
next prev parent reply other threads:[~2002-02-28 12:14 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-02-27 15:02 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 ` [mdk-re] Ликбе cornet 2002-02-28 14:42 ` [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 ` roman_tutov [this message] 2002-02-27 18:01 ` [mdk-re] Re: [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=5566534581.20020228122028@mail.ru \ --to=roman_tutov@mail.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