мой file rc.firewall
#Clearing any previous configuration
#
# Unless specified, the defaults for INPUT and OUTPUT is ACCEPT
# The default for FORWARD is DROP (REJECT is not a valid policy)
#
echo " Clearing any existing rules and setting default policy.."
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
echo " FWD: Allow all connections OUT and only existing and related ones IN"
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED
-j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG
echo " Enabling SNAT (MASQUERADE) functionality on $EXTIF"
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
echo -e "\nDone.\n"
В сообщении от 13 Январь 2004 00:27 qaz написал(a):
> странно,уточните следующие
>
> echo 1 > /proc/sys/net/ipv4/ip_forward
> /sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
>
> идёт дальше .............
> ........RULE....
> Giti
> Original Message > From: "Selukov Andrey" <unsol_andr***@m*****.ru>
> To: "comp.soft.linux.docs (3446990)" <qaz@a*****.ua>
> Sent: Monday, January 12, 2004 9:46 PM
> Subject: Re: Провайдим mgetty
>
> > Там есть
> > echo 1 > /proc/sys/net/ipv4/ip_forward
> >
> > В сообщении от 12 Январь 2004 23:36 qaz написал(a):
> > > Giti
> > > Original Message > > > From: "Selukov Andrey" <unsol_andr***@m*****.ru>
> > > To: "comp.soft.linux.docs (3446990)" <qaz@a*****.ua>
> > > Sent: Monday, January 12, 2004 9:29 PM
> > > Subject: Re: Провайдим mgetty
> > >
> > > > Наконец настроил свой модем на работе теперь еще и дома в инете ;(
> > > > Спасибо всем кто помогал ;)
> > > >
> > > > незнаю правильно настроил или нет
> > > > расскажу как делал
> > > > 1. Установил mgetty c ключем -DAUTO_PPP
> > > > В каталоге /etc/mg /usr/local/etc/mgetty+sendfax настроил
> > > > login.config В файле login.config должны быть активны только две
> > > > строки:
> > > > #
> > > > /AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options
> > > > #
> > > > * - - /bin/login @
> > > >
> > > > 2. Включил Маскаринг см /usr/doc/Linux-HOWTOs/IP-Masquerade-HOWTO
> > > > в rc.firewall поменял
> > > > EXTIF="ppp0"
> > > > INTIF="eth0"
> > > > echo " External Interface: $EXTIF"
> > > > echo " In ternal Interface: $INTIF"
> > > >
> > > > 3.Изменил настроики ppp
> > > > в /etc/ppp/option
> > > > 192.168.2.40:192.168.2.41
> > > > nodetach
> > > > ms-dns 192.168.10.4
> > > > ms-dns 192.168.10.2
> > > > ms-dns 192.168.0.5
> > > > proxyarp
> > > > modem
> > > > lock
> > > > crtscts
> > > > asyncmap 0
> > > >
> > > >
> > > > Все заработало когда я добавил в /etc/ppp/option
> > > > ktune
> > > >
> > > > man pppd про ktune говорит, что включает forwarding
> > > >
> > > > наверно rc.firewall следует отключить ??
> > > > Почему у меня не получился маскаринг ???
> > >
> > > тебе надо добавить в rc.firewall
> > >
> > > echo 1 > /proc/sys/net/ipv4/ip_forward
> > >
> > > тепер будет у тебя маскаринг :D
> > >
> > > cheers
>
-*Информационный канал Subscribe.Ru
Написать в лист: mailto:comp.soft.linux.docs-list@subscribe.ru
Отписаться: mailto:comp.soft.linux.docs--unsub@subscribe.ru
http://subscribe.ru/ mailto:ask@subscribe.ru