From: andriy <l.andriy@gmail.com> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] NAT+squid Date: Sat, 25 Apr 2009 18:06:23 +0300 Message-ID: <49F326EF.8050308@gmail.com> (raw) In-Reply-To: <9d5146970904232216v7ef4aa3es2dbb2d42ebe367d7@mail.gmail.com> Afanasov Dmitry написав(ла): > 23.04.09, andriy<l.andriy@gmail.com> написал(а): > >> Afanasov Dmitry написав(ла): >> А как правильно, чтоб ходил только 25 и 110? >> > программа минимум: > iptables -P FORWARD DROP > iptables -A FORWARD -p tcp -i eth0 -o eth1 --dport 25 -j ACCEPT > iptables -A FORWARD -p tcp -i eth0 -o eth1 --dport 110 -j ACCEPT > iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source xxx.xxx.xxx.xxx > :-( не работает > можно ещё на всякий: > iptables -A FORWARD -p icmp -j ACCEPT > > с icmp проблем нет и небыло, при старом варианте
next prev parent reply other threads:[~2009-04-25 15:06 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-04-23 5:13 andriy 2009-04-23 14:26 ` Denis Nazarov 2009-04-23 17:11 ` Afanasov Dmitry 2009-04-23 18:20 ` andriy 2009-04-24 5:16 ` Afanasov Dmitry 2009-04-25 15:06 ` andriy [this message] 2009-04-25 15:09 ` Starodumoff Ilya 2009-04-25 16:12 ` Alexey I. Froloff 2009-04-25 16:15 ` Starodumoff Ilya 2009-04-26 17:33 ` Vyatcheslav Perevalov 2009-04-26 18:57 ` Afanasov Dmitry
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=49F326EF.8050308@gmail.com \ --to=l.andriy@gmail.com \ --cc=sysadmins@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 sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git