From: Aleksandr Blohin <sass@uustoll.ee> To: sisyphus@altlinux.ru Subject: [sisyphus] Re: [sisyphus] Настройка элементарного маскарада Date: Sat, 9 Mar 2002 19:43:56 +0200 Message-ID: <20020309194356.0d61e602.sass@uustoll.ee> (raw) In-Reply-To: <20020309134847.741B19276@VL3143.spb.edu> On Sat, 9 Mar 2002 16:48:47 +0300 Vitaly Lipatov <LAV@VL3143.spb.edu> wrote: VL> На худой конец может кто может файлом VL> /etc/rc.d/rc.firewall.inet_sharing VL> готовым поделится. #----------------------------------------------------------------- #!/bin/sh insmod ip_conntrack insmod ip_conntrack_ftp # Interface to Internet EXTIF=ppp+ ANY=0.0.0.0/0 localnet="192.168.0.0/24" firewallhost="192.168.0.8/32" localhost_localdomain="127.0.0.1/32" iptables -P INPUT ACEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD DROP iptables -F INPUT iptables -F OUTPUT iptables -F FORWARD # Deny TCP and UDP packets to privileged ports iptables -A INPUT -i $EXTIF -d $ANY -p udp -dport 0:1023 -j DROP iptables -A INPUT -i $EXTIF -d $ANY -p tcp -dport 0:1023 -j DROP # Маскарадим ppp0. iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE # Включаем маршрутизацию пакетов. echo 1 > /proc/sys/net/ipv4/ip_forward #----------------------------------------------------------------- -- Best regards AB -- ... In nomine Altli, et Ctrli, et Spititus Deli, Reset!
next prev parent reply other threads:[~2002-03-09 17:43 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-03-09 13:48 Vitaly Lipatov 2002-03-09 17:43 ` Aleksandr Blohin [this message] 2002-03-09 19:51 ` [sisyphus] " Vitaly Lipatov 2002-03-09 20:00 ` [sisyphus] " Aleksandr Blohin 2002-03-09 21:34 ` Vitaly Lipatov 2002-03-10 11:18 ` [sisyphus] " Aleksandr Blohin 2002-03-10 15:55 ` Vitaly Lipatov 2002-03-10 12:07 ` [sisyphus] " Michael Shigorin 2002-03-10 12:27 ` [sisyphus] " Aleksandr Blohin 2002-03-09 18:28 ` [sisyphus] Re: [sisyphus] " cornet 2002-03-09 22:26 ` Vitaly Lipatov 2002-03-10 10:43 ` Любимов А.В. 2002-03-10 11:20 ` cornet 2002-03-10 15:59 ` [sisyphus] Re: [sisyphus] Настройка элементарногомаскарада Vitaly Lipatov 2002-03-10 16:31 ` cornet 2002-03-10 18:00 ` [sisyphus] Re: [sisyphus] Настройка элементарного маскарада Valek Filippov 2002-03-10 18:43 ` cornet 2002-03-09 21:21 ` Valery 2002-03-10 15:56 ` Vitaly Lipatov 2002-03-10 16:20 ` Valery
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=20020309194356.0d61e602.sass@uustoll.ee \ --to=sass@uustoll.ee \ --cc=sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git