Pular para o conteúdo

Postrouting/Prerouting no iptables (UBUNTU) [RESOLVIDO]

Responder tópico
  • Denunciar
  • Indicar

1. Postrouting/Prerouting no iptables (UBUNTU) [RESOLVIDO]

Enviado em 12/03/2011 - 20:44h

Pessoal,

Eu tenho um iptables rodando no fedora, ele possui regras de input,output,forward(filter) e regras de postrouting e prerouting(nat)

estou tentando aplicar todas as regras no iptables do ubuntu...

eis meu problema, o iptables do ubuntu n está aceitando postrouting e prerouting, ele diz que não existe esses chains, e quando eu tento criar, ele diz que ja existe. segue ai como ele fala

root@rafael:~# iptables -A POSTROUTING -s 10.81.0.0/255.255.248.0 -o eth1 -j MASQUERADE
iptables: No chain/target/match by that name.

root@rafael:~# iptables -t nat -N PREROUTING
iptables: Chain already exists.

Responder tópico

2. Re: Postrouting/Prerouting no iptables (UBUNTU) [RESOLVIDO]

Enviado em 12/03/2011 - 23:09h

Rafael,

Tenta inserir a regra da seguinte maneira:

iptables -t nat -A POSTROUTING -s 10.81.0.0/21 -o eth1 -j MASQUERADE

Espero ter ajudado.

3. Re: Postrouting/Prerouting no iptables (UBUNTU) [RESOLVIDO]

Enviado em 12/03/2011 - 23:12h

vlw ai cara :D

agora foi!

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder