Primera página Regresar Continuar Última página Resumen Imagen
Implementación. Filtrado	III
- Como filtrar, algunos ejemplos:
- iptables -A FORWARD -d POLLUX -p tcp --dport 22   -j ACCEPT # SSH 
- iptables -A FORWARD -d POLLUX -p tcp --dport 21   -j ACCEPT # FTP
- iptables –A FORWARD –s POLLUX –i eth1 –j ACCEPT
- iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
- iptables –P FORWARD DROP
- iptables -A INPUT -s PRIVATE -p tcp --dport 22    -j ACCEPT # SSH 
- iptables -A OUTPUT –d PRIVATE –p tcp -–sport 22 –J ACCEPT # SSH out 
- iptables –P INPUT DROP
- iptables –P OUTPUT DROP
Notas: