From: "Ларин МН" <lmn@uralnet.ru> To: mandrake-russian@altlinux.ru Subject: [mdk-re] Re: Mandrake-russian digest, Vol 1 #2135 - 16 msgs Date: Thu Oct 11 16:12:13 2001 Message-ID: <3BC59F97.3070907@uralnet.ru> (raw) In-Reply-To: <20011011114312.3D8AE21E8@linux.ru.net> > > >Subject: [mdk-re] Помогите настроить NAT в IPTABLES > >Хочу сделать транспарант прокси для веб сервера во внутренней сети >(192.168.1.100) через Линукс бокс с поднятыми Iptables. Порылся в >доках и нарыл что-то вроде этого: > >INET_IFACE="eth0" >LAN_IFACE="eth1" >IPTABLES="/sbin/iptables" > >$IPTABLES -t nat -A POSTROUTING -o $INET_IFACE -j MASQUERADE > Насколько я помню в описаниях на iptables -j MASQUERADE рекомендуют использовать только при динамическом ip, т.е. на ppp dial-up, при постоянном ip рекомендуют -j SNAT x.y.z.h >$IPTABLES -t nat -A PREROUTING -p tcp -d 1.2.3.4 --dport 80 -j DNAT --to 192.168.1.100 >$IPTABLES -t nat -A POSTROUTING -o $INET_IFACE -j SNAT --to 1.2.3.4 > А ты про forward цепочку не звбыл? Посмотри внимательно примеры и описаловку на netfilter.samba.org, она по подробней man-а будет, если надо могу поделитья конфигом, только уменя в нутрь сети smtp пробрасывалося.
parent reply other threads:[~2001-10-11 16:12 UTC|newest] Thread overview: expand[flat|nested] mbox.gz Atom feed [parent not found: <20011011114312.3D8AE21E8@linux.ru.net>]
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=3BC59F97.3070907@uralnet.ru \ --to=lmn@uralnet.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