From: "Dmytro O. Redchuk" <dor@ldc.net> To: community@altlinux.ru Subject: Re: [Comm] TROUBLE WITH MASQURADING Date: Mon, 21 Mar 2005 13:38:46 +0200 Message-ID: <20050321113846.GH5526@ldc.net> (raw) In-Reply-To: <75485982.20050321111650@kuznetsov.org.ua> On Mon, Mar 21, 2005 at 11:16:50AM -0800, Alexey S. Kuznetsov wrote: > Привет всем! > У меня такая странная проблема....стоит сервер на нём: > ALT Linux Castle (build 20010806) > Kernel 2.4.7-alt2-up on an i686 > Он служит роутером для пользователей локальной сети.. > в этом сервере стоит 2 сетевые карты: > > # ifconfig > eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx > inet addr:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.XXX Mask:255.255.255.248 [...] > eth1 Link encap:Ethernet HWaddr 00:02:44:6D:4E:FD > inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 [...] > Стоит ipchains c таким вот правилом: ipchains -I forward -s 192.168.2.0/24 -j MASQ > # trafshow -i eth0 -n > показывает трафик НЕЗАШЕЙПЕНЫЙ и опять же с удалённых адреов на > локальные....хотя должно показывать только коннекты на мой реальный > IP. Раньше так и было. Каким образом вообще на внешнем интерфейсы > могут оказаться внутренние ip?? Обычно я делал ещё (могу уже "путать педали" -- пишу по памяти): # # запретить форвардинг из внешнего мира: ipchains -A forward -i eth0 -o eth1 -l DENY # # разрешить input на внешний интерфейс только для "ответов" маскарадингу # (гляньте в доке адреса используемых маскарадом портов): ipchains -A input -i eth0 -d XXX.XXX.XXX.XXX --dport 60000:61000 -j ACCEPT # # запретить всё остальное на внешнем интерфейсе # (**BE SURE** to разрешить то, что действительно нужно): ipchains -A input -i eth0 -j DENY > > Кто-нибудь сталкивался с такой ситуацией?? Нет :-) Переходите на iptables, ну его в баню. Не пожалеете. > > -- > Sincerely, > Alexey S. Kuznetsov > AK2351-RIPE -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk
prev parent reply other threads:[~2005-03-21 11:38 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-03-21 19:16 Alexey S. Kuznetsov 2005-03-21 11:02 ` Alexandr R. Ogurtzoff 2005-03-21 21:19 ` Re[2]: " Alexey S. Kuznetsov 2005-03-21 11:38 ` Dmytro O. Redchuk [this message]
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=20050321113846.GH5526@ldc.net \ --to=dor@ldc.net \ --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