$IPTABLES -A INPUT -p ALL -i $LO_IFACE -s $LO_IP -j ACCEPT $IPTABLES -A INPUT -p ALL -i $LO_IFACE -s $INET_IP -j ACCEPT $IPTABLES -A INPUT -p ALL -d $INET_IP -m state --state ESTABLISHED,RELATED \ -j ACCEPT $IPTABLES -A INPUT -p TCP -i $INET_IFACE -j tcp_packets $IPTABLES -A INPUT -p UDP -i $INET_IFACE -j udpincoming_packets $IPTABLES -A INPUT -p ICMP -i $INET_IFACE -j icmp_packets
Entonces, $INET_IP tendra mi direccion IP, la que debo cambiar dependiendo de la red en la que este.
Me contesto solo:meter todo en un script bash que llame a mi rc.firewall....
(o_ Pablo A. Wolter N. //\ Usuario Registrado #284649 V_/_ Linux Debian Sid Kernel 2.6.8
"Pienso....luego instalo Linux....entonces existo."
Miguel Angel J�lvez wrote:
No se si se puede hacer con iptables, yo eso mismo lo hago directamente en el archivo /etc/network/interfaes, lo puedes poner asi:
iface inet home static ~ address 192.168.0.30 ~ network 192........
iface inet work dhcp
iface inet isp dhcp
Entones luego, para levantar la red haces un $ifup eth0=home, y tendr�s configurada la de home. En bulma creo recordar q hay un articulo para q la interfaz detecte a q red esta enganchada y se autoconfigure
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

